Skip to content

Commit b521bd3

Browse files
committed
CS
1 parent 9da58ae commit b521bd3

File tree

180 files changed

+2
-513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+2
-513
lines changed

SlevomatCodingStandard/Helpers/AnnotationConstantExpressionHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class AnnotationConstantExpressionHelper
1515
{
1616

1717
/**
18-
* @param ConstExprNode $contantExpressionNode
1918
* @return array<int, ConstFetchNode>
2019
*/
2120
public static function getConstantFetchNodes(ConstExprNode $contantExpressionNode): array

SlevomatCodingStandard/Helpers/AnnotationHelper.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,7 @@ public static function getAnnotationConstantExpressions(Annotation $annotation):
125125

126126
/**
127127
* @internal
128-
* @param File $phpcsFile
129128
* @param VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation $annotation
130-
* @param TypeNode $typeNode
131-
* @param TypeNode $fixedTypeNode
132-
* @return string
133129
*/
134130
public static function fixAnnotationType(File $phpcsFile, Annotation $annotation, TypeNode $typeNode, TypeNode $fixedTypeNode): string
135131
{
@@ -140,11 +136,7 @@ public static function fixAnnotationType(File $phpcsFile, Annotation $annotation
140136

141137
/**
142138
* @internal
143-
* @param File $phpcsFile
144139
* @param VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation $annotation
145-
* @param ConstFetchNode $node
146-
* @param ConstFetchNode $fixedNode
147-
* @return string
148140
*/
149141
public static function fixAnnotationConstantFetchNode(
150142
File $phpcsFile,
@@ -200,9 +192,6 @@ public static function fixAnnotationConstantFetchNode(
200192
}
201193

202194
/**
203-
* @param File $phpcsFile
204-
* @param int $pointer
205-
* @param string $annotationName
206195
* @return (VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation|GenericAnnotation)[]
207196
*/
208197
public static function getAnnotationsByName(File $phpcsFile, int $pointer, string $annotationName): array
@@ -213,8 +202,6 @@ public static function getAnnotationsByName(File $phpcsFile, int $pointer, strin
213202
}
214203

215204
/**
216-
* @param File $phpcsFile
217-
* @param int $pointer
218205
* @return (VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation|GenericAnnotation)[][]
219206
*/
220207
public static function getAnnotations(File $phpcsFile, int $pointer): array
@@ -380,13 +367,8 @@ static function () use ($phpcsFile, $pointer): array {
380367
}
381368

382369
/**
383-
* @param File $phpcsFile
384-
* @param int $functionPointer
385-
* @param TypeHint|null $typeHint
386370
* @param ReturnAnnotation|ParameterAnnotation|VariableAnnotation $annotation
387371
* @param array<int, string> $traversableTypeHints
388-
* @param bool $enableUnionTypeHint
389-
* @return bool
390372
*/
391373
public static function isAnnotationUseless(
392374
File $phpcsFile,
@@ -487,9 +469,6 @@ public static function isAnnotationUseless(
487469

488470
/**
489471
* @param VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation|TypeAliasAnnotation|TypeImportAnnotation $annotation
490-
* @param TypeNode $typeNode
491-
* @param TypeNode $fixedTypeNode
492-
* @return Annotation
493472
*/
494473
private static function fixAnnotation(Annotation $annotation, TypeNode $typeNode, TypeNode $fixedTypeNode): Annotation
495474
{

SlevomatCodingStandard/Helpers/AnnotationTypeHelper.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class AnnotationTypeHelper
3636
{
3737

3838
/**
39-
* @param TypeNode $typeNode
4039
* @return IdentifierTypeNode[]|ThisTypeNode[]
4140
*/
4241
public static function getIdentifierTypeNodes(TypeNode $typeNode): array
@@ -111,7 +110,6 @@ public static function getIdentifierTypeNodes(TypeNode $typeNode): array
111110
}
112111

113112
/**
114-
* @param TypeNode $typeNode
115113
* @return ConstTypeNode[]
116114
*/
117115
public static function getConstantTypeNodes(TypeNode $typeNode): array
@@ -184,7 +182,6 @@ public static function getConstantTypeNodes(TypeNode $typeNode): array
184182
}
185183

186184
/**
187-
* @param TypeNode $typeNode
188185
* @return UnionTypeNode[]
189186
*/
190187
public static function getUnionTypeNodes(TypeNode $typeNode): array
@@ -254,7 +251,6 @@ public static function getUnionTypeNodes(TypeNode $typeNode): array
254251
}
255252

256253
/**
257-
* @param TypeNode $typeNode
258254
* @return ArrayTypeNode[]
259255
*/
260256
public static function getArrayTypeNodes(TypeNode $typeNode): array
@@ -324,7 +320,6 @@ public static function getArrayTypeNodes(TypeNode $typeNode): array
324320

325321
/**
326322
* @param IdentifierTypeNode|ThisTypeNode $typeNode
327-
* @return string
328323
*/
329324
public static function getTypeHintFromNode(TypeNode $typeNode): string
330325
{
@@ -539,11 +534,7 @@ public static function containsJustTwoTypes(TypeNode $typeNode): bool
539534
}
540535

541536
/**
542-
* @param TypeNode $typeNode
543-
* @param File $phpcsFile
544-
* @param int $pointer
545537
* @param array<int, string> $traversableTypeHints
546-
* @return bool
547538
*/
548539
public static function containsTraversableType(TypeNode $typeNode, File $phpcsFile, int $pointer, array $traversableTypeHints): bool
549540
{
@@ -586,12 +577,7 @@ public static function containsTraversableType(TypeNode $typeNode, File $phpcsFi
586577
}
587578

588579
/**
589-
* @param TypeNode $typeNode
590-
* @param File $phpcsFile
591-
* @param int $pointer
592580
* @param array<int, string> $traversableTypeHints
593-
* @param bool $inTraversable
594-
* @return bool
595581
*/
596582
public static function containsItemsSpecificationForTraversable(
597583
TypeNode $typeNode,
@@ -701,8 +687,6 @@ public static function containsItemsSpecificationForTraversable(
701687

702688
/**
703689
* @param CallableTypeNode|GenericTypeNode|IdentifierTypeNode|ThisTypeNode|ArrayTypeNode|ArrayShapeNode|ConstTypeNode $typeNode
704-
* @param bool $enableUnionTypeHint
705-
* @return string
706690
*/
707691
public static function getTypeHintFromOneType(TypeNode $typeNode, bool $enableUnionTypeHint = false): string
708692
{
@@ -757,10 +741,7 @@ public static function getTypeHintFromOneType(TypeNode $typeNode, bool $enableUn
757741

758742
/**
759743
* @param UnionTypeNode|IntersectionTypeNode $typeNode
760-
* @param File $phpcsFile
761-
* @param int $pointer
762744
* @param array<int, string> $traversableTypeHints
763-
* @param bool $enableUnionTypeHint
764745
* @return string[]
765746
*/
766747
public static function getTraversableTypeHintsFromType(
@@ -801,7 +782,6 @@ public static function getTraversableTypeHintsFromType(
801782

802783
/**
803784
* @param UnionTypeNode|IntersectionTypeNode $typeNode
804-
* @return ?TypeNode
805785
*/
806786
public static function getItemsSpecificationTypeFromType(TypeNode $typeNode): ?TypeNode
807787
{

SlevomatCodingStandard/Helpers/CatchHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public static function getTryEndPointer(File $phpcsFile, int $catchPointer): int
3636
}
3737

3838
/**
39-
* @param File $phpcsFile
4039
* @param array<string, array<int, int|string>|int|string> $catchToken
4140
* @return string[]
4241
*/

SlevomatCodingStandard/Helpers/ClassHelper.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public static function getName(File $phpcsFile, int $classPointer): string
6060
}
6161

6262
/**
63-
* @param File $phpcsFile
6463
* @return array<int, string>
6564
*/
6665
public static function getAllNames(File $phpcsFile): array
@@ -81,8 +80,6 @@ public static function getAllNames(File $phpcsFile): array
8180
}
8281

8382
/**
84-
* @param File $phpcsFile
85-
* @param int $classPointer
8683
* @return int[]
8784
*/
8885
public static function getTraitUsePointers(File $phpcsFile, int $classPointer): array
@@ -108,7 +105,6 @@ public static function getTraitUsePointers(File $phpcsFile, int $classPointer):
108105
}
109106

110107
/**
111-
* @param File $phpcsFile
112108
* @return array<int>
113109
*/
114110
private static function getAllClassPointers(File $phpcsFile): array

SlevomatCodingStandard/Helpers/ConstantHelper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public static function getFullyQualifiedName(File $phpcsFile, int $constantPoint
3636
}
3737

3838
/**
39-
* @param File $phpcsFile
4039
* @return string[]
4140
*/
4241
public static function getAllNames(File $phpcsFile): array
@@ -61,8 +60,6 @@ static function (int $constantPointer) use ($phpcsFile): bool {
6160
}
6261

6362
/**
64-
* @param File $phpcsFile
65-
* @param int $previousConstantPointer
6663
* @return Generator<int>
6764
*/
6865
private static function getAllConstantPointers(File $phpcsFile, int &$previousConstantPointer): Generator

SlevomatCodingStandard/Helpers/DocCommentHelper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ public static function getDocComment(File $phpcsFile, int $pointer): ?string
5757
}
5858

5959
/**
60-
* @param File $phpcsFile
61-
* @param int $pointer
6260
* @return Comment[]|null
6361
*/
6462
public static function getDocCommentDescription(File $phpcsFile, int $pointer): ?array

SlevomatCodingStandard/Helpers/FunctionHelper.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ public static function findClassPointer(File $phpcsFile, int $functionPointer):
167167
}
168168

169169
/**
170-
* @param File $phpcsFile
171-
* @param int $functionPointer
172170
* @return string[]
173171
*/
174172
public static function getParametersNames(File $phpcsFile, int $functionPointer): array
@@ -188,8 +186,6 @@ public static function getParametersNames(File $phpcsFile, int $functionPointer)
188186
}
189187

190188
/**
191-
* @param File $phpcsFile
192-
* @param int $functionPointer
193189
* @return (TypeHint|null)[]
194190
*/
195191
public static function getParametersTypeHints(File $phpcsFile, int $functionPointer): array
@@ -317,8 +313,6 @@ public static function hasReturnTypeHint(File $phpcsFile, int $functionPointer):
317313
}
318314

319315
/**
320-
* @param File $phpcsFile
321-
* @param int $functionPointer
322316
* @return ParameterAnnotation[]
323317
*/
324318
public static function getParametersAnnotations(File $phpcsFile, int $functionPointer): array
@@ -329,8 +323,6 @@ public static function getParametersAnnotations(File $phpcsFile, int $functionPo
329323
}
330324

331325
/**
332-
* @param File $phpcsFile
333-
* @param int $functionPointer
334326
* @return array<string, ParameterAnnotation>
335327
*/
336328
public static function getValidParametersAnnotations(File $phpcsFile, int $functionPointer): array
@@ -352,8 +344,6 @@ public static function getValidParametersAnnotations(File $phpcsFile, int $funct
352344
}
353345

354346
/**
355-
* @param File $phpcsFile
356-
* @param int $functionPointer
357347
* @return array<string, ParameterAnnotation>
358348
*/
359349
public static function getValidPrefixedParametersAnnotations(File $phpcsFile, int $functionPointer): array
@@ -391,8 +381,6 @@ public static function findReturnAnnotation(File $phpcsFile, int $functionPointe
391381
}
392382

393383
/**
394-
* @param File $phpcsFile
395-
* @param int $functionPointer
396384
* @return ReturnAnnotation[]
397385
*/
398386
public static function getValidPrefixedReturnAnnotations(File $phpcsFile, int $functionPointer): array
@@ -414,7 +402,6 @@ public static function getValidPrefixedReturnAnnotations(File $phpcsFile, int $f
414402
}
415403

416404
/**
417-
* @param File $phpcsFile
418405
* @return string[]
419406
*/
420407
public static function getAllFunctionNames(File $phpcsFile): array
@@ -435,8 +422,6 @@ static function (int $functionOrMethodPointer) use ($phpcsFile): bool {
435422
}
436423

437424
/**
438-
* @param File $file
439-
* @param int $functionPosition
440425
* @param int $flags optional bitmask of self::LINE_INCLUDE_* constants
441426
*/
442427
public static function getFunctionLengthInLines(File $file, int $functionPosition, int $flags = 0): int
@@ -519,8 +504,6 @@ public static function getFunctionLengthInLines(File $file, int $functionPositio
519504
}
520505

521506
/**
522-
* @param File $phpcsFile
523-
* @param int $previousFunctionPointer
524507
* @return Generator<int>
525508
*/
526509
private static function getAllFunctionOrMethodPointers(File $phpcsFile, int &$previousFunctionPointer): Generator

SlevomatCodingStandard/Helpers/IndentationHelper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ public static function getOneIndentationLevel(string $identation): string
4848
}
4949

5050
/**
51-
* @param File $phpcsFile
5251
* @param int[] $codePointers
53-
* @param string $defaultIndentation
54-
* @return string
5552
*/
5653
public static function fixIndentation(File $phpcsFile, array $codePointers, string $defaultIndentation): string
5754
{

SlevomatCodingStandard/Helpers/NamespaceHelper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class NamespaceHelper
3030
public const NAMESPACE_SEPARATOR = '\\';
3131

3232
/**
33-
* @param File $phpcsFile
3433
* @return int[]
3534
*/
3635
public static function getAllNamespacesPointers(File $phpcsFile): array
@@ -69,7 +68,6 @@ public static function hasNamespace(string $typeName): bool
6968
}
7069

7170
/**
72-
* @param string $name
7371
* @return string[]
7472
*/
7573
public static function getNameParts(string $name): array

0 commit comments

Comments
 (0)