Skip to content

Commit 3e2609a

Browse files
committed
Remove redundant doc blocks
Signed-off-by: George Steel <george@net-glue.co.uk>
1 parent 7614170 commit 3e2609a

File tree

15 files changed

+0
-62
lines changed

15 files changed

+0
-62
lines changed

src/Attribute.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class Attribute
4141
/**
4242
* Sets a LDAP attribute.
4343
*
44-
* @param array $data
4544
* @param string $attribName
4645
* @param string|array|Traversable $value
4746
* @param bool $append
@@ -78,7 +77,6 @@ public static function setAttribute(array &$data, $attribName, $value, $append =
7877
/**
7978
* Gets a LDAP attribute.
8079
*
81-
* @param array $data
8280
* @param string $attribName
8381
* @param int $index
8482
* @return array|mixed
@@ -111,7 +109,6 @@ public static function getAttribute(array $data, $attribName, $index = null)
111109
/**
112110
* Checks if the given value(s) exist in the attribute
113111
*
114-
* @param array $data
115112
* @param string $attribName
116113
* @param mixed|array $value
117114
* @return bool
@@ -140,7 +137,6 @@ public static function attributeHasValue(array &$data, $attribName, $value)
140137
/**
141138
* Removes duplicate values from a LDAP attribute
142139
*
143-
* @param array $data
144140
* @param string $attribName
145141
* @return void
146142
*/
@@ -156,7 +152,6 @@ public static function removeDuplicatesFromAttribute(array &$data, $attribName)
156152
/**
157153
* Remove given values from a LDAP attribute
158154
*
159-
* @param array $data
160155
* @param string $attribName
161156
* @param mixed|array $value
162157
* @return void
@@ -221,7 +216,6 @@ private static function valueFromLdap($value)
221216
/**
222217
* Sets a LDAP password.
223218
*
224-
* @param array $data
225219
* @param string $password
226220
* @param string $hashType Optional by default MD5
227221
* @param string $attribName Optional
@@ -298,7 +292,6 @@ public static function createPassword($password, $hashType = self::PASSWORD_HASH
298292
/**
299293
* Sets a LDAP date/time attribute.
300294
*
301-
* @param array $data
302295
* @param string $attribName
303296
* @param int|array|Traversable $value
304297
* @param bool $utc
@@ -345,7 +338,6 @@ private static function valueToLdapDateTime($value, $utc)
345338
/**
346339
* Gets a LDAP date/time attribute.
347340
*
348-
* @param array $data
349341
* @param string $attribName
350342
* @param int $index
351343
* @return array|int

src/Collection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ public function current()
132132
/**
133133
* Creates the data structure for the given entry data
134134
*
135-
* @param array $data
136135
* @psalm-param array{dn: string, ...} $data
137136
* @return TItem
138137
*/

src/Dn.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ public static function fromString($dn, $caseFold = null)
103103
/**
104104
* Creates a DN from an array
105105
*
106-
* @param array $dn
107106
* @param string|null $caseFold
108107
* @return Dn
109108
* @throws Exception\LdapException
@@ -116,7 +115,6 @@ public static function fromArray(array $dn, $caseFold = null)
116115
/**
117116
* Constructor
118117
*
119-
* @param array $dn
120118
* @param string|null $caseFold
121119
*/
122120
protected function __construct(array $dn, $caseFold)
@@ -195,7 +193,6 @@ public function get($index, $length = 1, $caseFold = null)
195193
* Set a DN part
196194
*
197195
* @param int $index
198-
* @param array $value
199196
* @return Dn Provides a fluent interface
200197
* @throws Exception\LdapException If index is illegal.
201198
*/
@@ -229,7 +226,6 @@ public function remove($index, $length = 1)
229226
/**
230227
* Append a DN part
231228
*
232-
* @param array $value
233229
* @return Dn Provides a fluent interface
234230
*/
235231
public function append(array $value)
@@ -242,7 +238,6 @@ public function append(array $value)
242238
/**
243239
* Prepend a DN part
244240
*
245-
* @param array $value
246241
* @return Dn Provides a fluent interface
247242
*/
248243
public function prepend(array $value)
@@ -256,7 +251,6 @@ public function prepend(array $value)
256251
* Insert a DN part
257252
*
258253
* @param int $index
259-
* @param array $value
260254
* @return Dn Provides a fluent interface
261255
* @throws Exception\LdapException If index is illegal.
262256
*/
@@ -291,7 +285,6 @@ protected function assertIndex($index)
291285
/**
292286
* Assert if value is in a correct RDN format
293287
*
294-
* @param array $value
295288
* @return void
296289
* @throws Exception\LdapException
297290
*/
@@ -350,7 +343,6 @@ public function toArray($caseFold = null)
350343
/**
351344
* Do a case folding on a RDN
352345
*
353-
* @param array $part
354346
* @param string $caseFold
355347
* @return array
356348
*/
@@ -370,7 +362,6 @@ protected static function caseFoldRdn(array $part, $caseFold)
370362
/**
371363
* Do a case folding on a DN ort part of it
372364
*
373-
* @param array $dn
374365
* @param string $caseFold
375366
* @return array
376367
*/
@@ -688,7 +679,6 @@ public static function checkDn(
688679
* This method supports the creation of multi-valued RDNs
689680
* $part must contain an even number of elements.
690681
*
691-
* @param array $part
692682
* @param string $caseFold
693683
* @return string
694684
* @throws Exception\LdapException
@@ -720,7 +710,6 @@ public static function implodeRdn(array $part, $caseFold = null)
720710
* array("dc" => "org")
721711
* )
722712
*
723-
* @param array $dnArray
724713
* @param string $caseFold
725714
* @param string $separator
726715
* @return string

src/Filter/AbstractLogicalFilter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ abstract class AbstractLogicalFilter extends AbstractFilter
2525
/**
2626
* Creates a new grouping filter.
2727
*
28-
* @param array $subfilters
2928
* @param string $symbol
3029
* @throws Exception\FilterException
3130
*/

src/Filter/AndFilter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ class AndFilter extends AbstractLogicalFilter
99
{
1010
/**
1111
* Creates an 'and' grouping filter.
12-
*
13-
* @param array $subfilters
1412
*/
1513
public function __construct(array $subfilters)
1614
{

src/Filter/OrFilter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ class OrFilter extends AbstractLogicalFilter
99
{
1010
/**
1111
* Creates an 'or' grouping filter.
12-
*
13-
* @param array $subfilters
1412
*/
1513
public function __construct(array $subfilters)
1614
{

src/Ldap.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Laminas\Ldap;
44

5-
use Laminas\Ldap\Collection;
6-
use Laminas\Ldap\Exception;
75
use LDAP\Connection;
86
use Traversable;
97

@@ -179,7 +177,6 @@ public function getLastErrorCode()
179177
* Return the LDAP error message of the last LDAP command
180178
*
181179
* @param int $errorCode
182-
* @param array $errorMessages
183180
* @return string
184181
*/
185182
public function getLastError(&$errorCode = null, ?array &$errorMessages = null)
@@ -1096,7 +1093,6 @@ protected function reconnectSleep()
10961093
* @param string|Filter\AbstractFilter|array $filter
10971094
* @param string|Dn|null $basedn
10981095
* @param int $scope
1099-
* @param array $attributes
11001096
* @param string|null $sort
11011097
* @param string|null $collectionClass
11021098
* @param int $sizelimit
@@ -1279,7 +1275,6 @@ public function exists($dn)
12791275
* @param string|Filter\AbstractFilter|array $filter
12801276
* @param string|Dn|null $basedn
12811277
* @param int $scope
1282-
* @param array $attributes
12831278
* @param string|null $sort
12841279
* @param bool $reverseSort
12851280
* @param int $sizelimit
@@ -1320,7 +1315,6 @@ public function searchEntries(
13201315
* Get LDAP entry by DN
13211316
*
13221317
* @param string|Dn $dn
1323-
* @param array $attributes
13241318
* @param bool $throwOnNotFound
13251319
* @return array
13261320
* @throws null|Exception\LdapException
@@ -1349,7 +1343,6 @@ public function getEntry($dn, array $attributes = [], $throwOnNotFound = false)
13491343
/**
13501344
* Prepares an ldap data entry array for insert/update operation
13511345
*
1352-
* @param array $entry
13531346
* @throws Exception\InvalidArgumentException
13541347
* @return void
13551348
*/
@@ -1397,7 +1390,6 @@ public static function prepareLdapEntryArray(array &$entry)
13971390
* Add new information to the LDAP repository
13981391
*
13991392
* @param string|Dn $dn
1400-
* @param array $entry
14011393
* @return Ldap Provides a fluid interface
14021394
* @throws Exception\LdapException
14031395
*/
@@ -1457,7 +1449,6 @@ public function add($dn, array $entry)
14571449
* Update LDAP registry
14581450
*
14591451
* @param string|Dn $dn
1460-
* @param array $entry
14611452
* @return Ldap Provides a fluid interface
14621453
* @throws Exception\LdapException
14631454
*/
@@ -1515,7 +1506,6 @@ public function update($dn, array $entry)
15151506
* {@link exists()}.
15161507
*
15171508
* @param string|Dn $dn
1518-
* @param array $entry
15191509
* @return Ldap Provides a fluid interface
15201510
* @throws Exception\LdapException
15211511
*/
@@ -1573,7 +1563,6 @@ public function delete($dn, $recursively = false)
15731563
* Add one or more attributes to the specified dn
15741564
*
15751565
* @param string|Dn $dn
1576-
* @param array $attributes
15771566
* @param bool $allowEmptyAttributes
15781567
* @return Ldap Provides a fluid interface
15791568
* @throws Exception\LdapException
@@ -1611,7 +1600,6 @@ public function addAttributes($dn, array $attributes, $allowEmptyAttributes = fa
16111600
* Update one or more attributes to the specified dn
16121601
*
16131602
* @param string|Dn $dn
1614-
* @param array $attributes
16151603
* @param bool $allowEmptyAttributes
16161604
* @return Ldap Provides a fluid interface
16171605
* @throws Exception\LdapException

src/Ldif/Encoder.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ protected function _decode($string)
120120

121121
/**
122122
* Pushes a decoded attribute to the stack
123-
*
124-
* @param array $attribute
125-
* @param array $entry
126123
*/
127124
protected function pushAttribute(array $attribute, array &$entry)
128125
{
@@ -279,7 +276,6 @@ protected function encodeAttribute($name, $value)
279276
*
280277
* @link http://www.faqs.org/rfcs/rfc2849.html
281278
*
282-
* @param array $attributes
283279
* @return string
284280
*/
285281
protected function encodeAttributes(array $attributes)

src/Node.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class Node extends Node\AbstractNode implements Iterator, RecursiveIterator
7979
/**
8080
* Constructor is protected to enforce the use of factory methods.
8181
*
82-
* @param array $data
8382
* @param bool $fromDataSource
8483
* @throws Exception\LdapException
8584
*/
@@ -219,7 +218,6 @@ protected function triggerEvent($event, $argv = [])
219218
}
220219

221220
/**
222-
* @param array $data
223221
* @param bool $fromDataSource
224222
* @throws Exception\LdapException
225223
*/
@@ -240,7 +238,6 @@ protected function loadData(array $data, $fromDataSource)
240238
* Factory method to create a new detached Laminas\Ldap\Node for a given DN.
241239
*
242240
* @param string|array|Dn $dn
243-
* @param array $objectClass
244241
* @return Node
245242
* @throws Exception\LdapException
246243
*/
@@ -286,7 +283,6 @@ public static function fromLdap($dn, Ldap $ldap)
286283
/**
287284
* Factory method to create a detached Laminas\Ldap\Node from array data.
288285
*
289-
* @param array $data
290286
* @param bool $fromDataSource
291287
* @return Node
292288
* @throws Exception\LdapException

src/Node/AbstractNode.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ abstract class AbstractNode implements ArrayAccess, Countable
6868
/**
6969
* Constructor is protected to enforce the use of factory methods.
7070
*
71-
* @param array $data
7271
* @param bool $fromDataSource
7372
*/
7473
protected function __construct(Ldap\Dn $dn, array $data, $fromDataSource)
@@ -78,7 +77,6 @@ protected function __construct(Ldap\Dn $dn, array $data, $fromDataSource)
7877
}
7978

8079
/**
81-
* @param array $data
8280
* @param bool $fromDataSource
8381
*/
8482
protected function loadData(array $data, $fromDataSource)

0 commit comments

Comments
 (0)