diff --git a/SlevomatCodingStandard/Helpers/AnnotationConstantExpressionHelper.php b/SlevomatCodingStandard/Helpers/AnnotationConstantExpressionHelper.php index c58770bb2..00acfd399 100644 --- a/SlevomatCodingStandard/Helpers/AnnotationConstantExpressionHelper.php +++ b/SlevomatCodingStandard/Helpers/AnnotationConstantExpressionHelper.php @@ -15,7 +15,6 @@ class AnnotationConstantExpressionHelper { /** - * @param ConstExprNode $contantExpressionNode * @return array */ public static function getConstantFetchNodes(ConstExprNode $contantExpressionNode): array diff --git a/SlevomatCodingStandard/Helpers/AnnotationHelper.php b/SlevomatCodingStandard/Helpers/AnnotationHelper.php index 5e733827e..4f2541f7f 100644 --- a/SlevomatCodingStandard/Helpers/AnnotationHelper.php +++ b/SlevomatCodingStandard/Helpers/AnnotationHelper.php @@ -125,11 +125,7 @@ public static function getAnnotationConstantExpressions(Annotation $annotation): /** * @internal - * @param File $phpcsFile * @param VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation $annotation - * @param TypeNode $typeNode - * @param TypeNode $fixedTypeNode - * @return string */ public static function fixAnnotationType(File $phpcsFile, Annotation $annotation, TypeNode $typeNode, TypeNode $fixedTypeNode): string { @@ -140,11 +136,7 @@ public static function fixAnnotationType(File $phpcsFile, Annotation $annotation /** * @internal - * @param File $phpcsFile * @param VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation $annotation - * @param ConstFetchNode $node - * @param ConstFetchNode $fixedNode - * @return string */ public static function fixAnnotationConstantFetchNode( File $phpcsFile, @@ -200,9 +192,6 @@ public static function fixAnnotationConstantFetchNode( } /** - * @param File $phpcsFile - * @param int $pointer - * @param string $annotationName * @return (VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation|GenericAnnotation)[] */ public static function getAnnotationsByName(File $phpcsFile, int $pointer, string $annotationName): array @@ -213,8 +202,6 @@ public static function getAnnotationsByName(File $phpcsFile, int $pointer, strin } /** - * @param File $phpcsFile - * @param int $pointer * @return (VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation|GenericAnnotation)[][] */ public static function getAnnotations(File $phpcsFile, int $pointer): array @@ -380,13 +367,8 @@ static function () use ($phpcsFile, $pointer): array { } /** - * @param File $phpcsFile - * @param int $functionPointer - * @param TypeHint|null $typeHint * @param ReturnAnnotation|ParameterAnnotation|VariableAnnotation $annotation * @param array $traversableTypeHints - * @param bool $enableUnionTypeHint - * @return bool */ public static function isAnnotationUseless( File $phpcsFile, @@ -487,9 +469,6 @@ public static function isAnnotationUseless( /** * @param VariableAnnotation|ParameterAnnotation|ReturnAnnotation|ThrowsAnnotation|PropertyAnnotation|MethodAnnotation|TemplateAnnotation|ExtendsAnnotation|ImplementsAnnotation|UseAnnotation|MixinAnnotation|TypeAliasAnnotation|TypeImportAnnotation $annotation - * @param TypeNode $typeNode - * @param TypeNode $fixedTypeNode - * @return Annotation */ private static function fixAnnotation(Annotation $annotation, TypeNode $typeNode, TypeNode $fixedTypeNode): Annotation { diff --git a/SlevomatCodingStandard/Helpers/AnnotationTypeHelper.php b/SlevomatCodingStandard/Helpers/AnnotationTypeHelper.php index 1fdb2adc8..9eaa9f7ad 100644 --- a/SlevomatCodingStandard/Helpers/AnnotationTypeHelper.php +++ b/SlevomatCodingStandard/Helpers/AnnotationTypeHelper.php @@ -36,7 +36,6 @@ class AnnotationTypeHelper { /** - * @param TypeNode $typeNode * @return IdentifierTypeNode[]|ThisTypeNode[] */ public static function getIdentifierTypeNodes(TypeNode $typeNode): array @@ -111,7 +110,6 @@ public static function getIdentifierTypeNodes(TypeNode $typeNode): array } /** - * @param TypeNode $typeNode * @return ConstTypeNode[] */ public static function getConstantTypeNodes(TypeNode $typeNode): array @@ -184,7 +182,6 @@ public static function getConstantTypeNodes(TypeNode $typeNode): array } /** - * @param TypeNode $typeNode * @return UnionTypeNode[] */ public static function getUnionTypeNodes(TypeNode $typeNode): array @@ -254,7 +251,6 @@ public static function getUnionTypeNodes(TypeNode $typeNode): array } /** - * @param TypeNode $typeNode * @return ArrayTypeNode[] */ public static function getArrayTypeNodes(TypeNode $typeNode): array @@ -324,7 +320,6 @@ public static function getArrayTypeNodes(TypeNode $typeNode): array /** * @param IdentifierTypeNode|ThisTypeNode $typeNode - * @return string */ public static function getTypeHintFromNode(TypeNode $typeNode): string { @@ -539,11 +534,7 @@ public static function containsJustTwoTypes(TypeNode $typeNode): bool } /** - * @param TypeNode $typeNode - * @param File $phpcsFile - * @param int $pointer * @param array $traversableTypeHints - * @return bool */ public static function containsTraversableType(TypeNode $typeNode, File $phpcsFile, int $pointer, array $traversableTypeHints): bool { @@ -586,12 +577,7 @@ public static function containsTraversableType(TypeNode $typeNode, File $phpcsFi } /** - * @param TypeNode $typeNode - * @param File $phpcsFile - * @param int $pointer * @param array $traversableTypeHints - * @param bool $inTraversable - * @return bool */ public static function containsItemsSpecificationForTraversable( TypeNode $typeNode, @@ -701,8 +687,6 @@ public static function containsItemsSpecificationForTraversable( /** * @param CallableTypeNode|GenericTypeNode|IdentifierTypeNode|ThisTypeNode|ArrayTypeNode|ArrayShapeNode|ConstTypeNode $typeNode - * @param bool $enableUnionTypeHint - * @return string */ public static function getTypeHintFromOneType(TypeNode $typeNode, bool $enableUnionTypeHint = false): string { @@ -757,10 +741,7 @@ public static function getTypeHintFromOneType(TypeNode $typeNode, bool $enableUn /** * @param UnionTypeNode|IntersectionTypeNode $typeNode - * @param File $phpcsFile - * @param int $pointer * @param array $traversableTypeHints - * @param bool $enableUnionTypeHint * @return string[] */ public static function getTraversableTypeHintsFromType( @@ -801,7 +782,6 @@ public static function getTraversableTypeHintsFromType( /** * @param UnionTypeNode|IntersectionTypeNode $typeNode - * @return ?TypeNode */ public static function getItemsSpecificationTypeFromType(TypeNode $typeNode): ?TypeNode { diff --git a/SlevomatCodingStandard/Helpers/CatchHelper.php b/SlevomatCodingStandard/Helpers/CatchHelper.php index 8b2de055d..3aa6bb4c0 100644 --- a/SlevomatCodingStandard/Helpers/CatchHelper.php +++ b/SlevomatCodingStandard/Helpers/CatchHelper.php @@ -36,7 +36,6 @@ public static function getTryEndPointer(File $phpcsFile, int $catchPointer): int } /** - * @param File $phpcsFile * @param array|int|string> $catchToken * @return string[] */ diff --git a/SlevomatCodingStandard/Helpers/ClassHelper.php b/SlevomatCodingStandard/Helpers/ClassHelper.php index 86aec8205..90dec7dae 100644 --- a/SlevomatCodingStandard/Helpers/ClassHelper.php +++ b/SlevomatCodingStandard/Helpers/ClassHelper.php @@ -60,7 +60,6 @@ public static function getName(File $phpcsFile, int $classPointer): string } /** - * @param File $phpcsFile * @return array */ public static function getAllNames(File $phpcsFile): array @@ -81,8 +80,6 @@ public static function getAllNames(File $phpcsFile): array } /** - * @param File $phpcsFile - * @param int $classPointer * @return int[] */ public static function getTraitUsePointers(File $phpcsFile, int $classPointer): array @@ -108,7 +105,6 @@ public static function getTraitUsePointers(File $phpcsFile, int $classPointer): } /** - * @param File $phpcsFile * @return array */ private static function getAllClassPointers(File $phpcsFile): array diff --git a/SlevomatCodingStandard/Helpers/ConstantHelper.php b/SlevomatCodingStandard/Helpers/ConstantHelper.php index 60980225f..dda06b73a 100644 --- a/SlevomatCodingStandard/Helpers/ConstantHelper.php +++ b/SlevomatCodingStandard/Helpers/ConstantHelper.php @@ -36,7 +36,6 @@ public static function getFullyQualifiedName(File $phpcsFile, int $constantPoint } /** - * @param File $phpcsFile * @return string[] */ public static function getAllNames(File $phpcsFile): array @@ -61,8 +60,6 @@ static function (int $constantPointer) use ($phpcsFile): bool { } /** - * @param File $phpcsFile - * @param int $previousConstantPointer * @return Generator */ private static function getAllConstantPointers(File $phpcsFile, int &$previousConstantPointer): Generator diff --git a/SlevomatCodingStandard/Helpers/DocCommentHelper.php b/SlevomatCodingStandard/Helpers/DocCommentHelper.php index 2fe4fd3fb..05c1cf541 100644 --- a/SlevomatCodingStandard/Helpers/DocCommentHelper.php +++ b/SlevomatCodingStandard/Helpers/DocCommentHelper.php @@ -57,8 +57,6 @@ public static function getDocComment(File $phpcsFile, int $pointer): ?string } /** - * @param File $phpcsFile - * @param int $pointer * @return Comment[]|null */ public static function getDocCommentDescription(File $phpcsFile, int $pointer): ?array diff --git a/SlevomatCodingStandard/Helpers/FunctionHelper.php b/SlevomatCodingStandard/Helpers/FunctionHelper.php index 1727c46f1..2e4baf368 100644 --- a/SlevomatCodingStandard/Helpers/FunctionHelper.php +++ b/SlevomatCodingStandard/Helpers/FunctionHelper.php @@ -167,8 +167,6 @@ public static function findClassPointer(File $phpcsFile, int $functionPointer): } /** - * @param File $phpcsFile - * @param int $functionPointer * @return string[] */ public static function getParametersNames(File $phpcsFile, int $functionPointer): array @@ -188,8 +186,6 @@ public static function getParametersNames(File $phpcsFile, int $functionPointer) } /** - * @param File $phpcsFile - * @param int $functionPointer * @return (TypeHint|null)[] */ public static function getParametersTypeHints(File $phpcsFile, int $functionPointer): array @@ -317,8 +313,6 @@ public static function hasReturnTypeHint(File $phpcsFile, int $functionPointer): } /** - * @param File $phpcsFile - * @param int $functionPointer * @return ParameterAnnotation[] */ public static function getParametersAnnotations(File $phpcsFile, int $functionPointer): array @@ -329,8 +323,6 @@ public static function getParametersAnnotations(File $phpcsFile, int $functionPo } /** - * @param File $phpcsFile - * @param int $functionPointer * @return array */ public static function getValidParametersAnnotations(File $phpcsFile, int $functionPointer): array @@ -352,8 +344,6 @@ public static function getValidParametersAnnotations(File $phpcsFile, int $funct } /** - * @param File $phpcsFile - * @param int $functionPointer * @return array */ public static function getValidPrefixedParametersAnnotations(File $phpcsFile, int $functionPointer): array @@ -391,8 +381,6 @@ public static function findReturnAnnotation(File $phpcsFile, int $functionPointe } /** - * @param File $phpcsFile - * @param int $functionPointer * @return ReturnAnnotation[] */ public static function getValidPrefixedReturnAnnotations(File $phpcsFile, int $functionPointer): array @@ -414,7 +402,6 @@ public static function getValidPrefixedReturnAnnotations(File $phpcsFile, int $f } /** - * @param File $phpcsFile * @return string[] */ public static function getAllFunctionNames(File $phpcsFile): array @@ -435,8 +422,6 @@ static function (int $functionOrMethodPointer) use ($phpcsFile): bool { } /** - * @param File $file - * @param int $functionPosition * @param int $flags optional bitmask of self::LINE_INCLUDE_* constants */ public static function getFunctionLengthInLines(File $file, int $functionPosition, int $flags = 0): int @@ -519,8 +504,6 @@ public static function getFunctionLengthInLines(File $file, int $functionPositio } /** - * @param File $phpcsFile - * @param int $previousFunctionPointer * @return Generator */ private static function getAllFunctionOrMethodPointers(File $phpcsFile, int &$previousFunctionPointer): Generator diff --git a/SlevomatCodingStandard/Helpers/IndentationHelper.php b/SlevomatCodingStandard/Helpers/IndentationHelper.php index 746fef3d3..e739deae8 100644 --- a/SlevomatCodingStandard/Helpers/IndentationHelper.php +++ b/SlevomatCodingStandard/Helpers/IndentationHelper.php @@ -48,10 +48,7 @@ public static function getOneIndentationLevel(string $identation): string } /** - * @param File $phpcsFile * @param int[] $codePointers - * @param string $defaultIndentation - * @return string */ public static function fixIndentation(File $phpcsFile, array $codePointers, string $defaultIndentation): string { diff --git a/SlevomatCodingStandard/Helpers/NamespaceHelper.php b/SlevomatCodingStandard/Helpers/NamespaceHelper.php index f8e7c0df3..fe3401a19 100644 --- a/SlevomatCodingStandard/Helpers/NamespaceHelper.php +++ b/SlevomatCodingStandard/Helpers/NamespaceHelper.php @@ -30,7 +30,6 @@ class NamespaceHelper public const NAMESPACE_SEPARATOR = '\\'; /** - * @param File $phpcsFile * @return int[] */ public static function getAllNamespacesPointers(File $phpcsFile): array @@ -69,7 +68,6 @@ public static function hasNamespace(string $typeName): bool } /** - * @param string $name * @return string[] */ public static function getNameParts(string $name): array diff --git a/SlevomatCodingStandard/Helpers/ReferencedNameHelper.php b/SlevomatCodingStandard/Helpers/ReferencedNameHelper.php index 153eb1f50..5dec139c5 100644 --- a/SlevomatCodingStandard/Helpers/ReferencedNameHelper.php +++ b/SlevomatCodingStandard/Helpers/ReferencedNameHelper.php @@ -56,8 +56,6 @@ class ReferencedNameHelper { /** - * @param File $phpcsFile - * @param int $openTagPointer * @return ReferencedName[] */ public static function getAllReferencedNames(File $phpcsFile, int $openTagPointer): array @@ -70,8 +68,6 @@ public static function getAllReferencedNames(File $phpcsFile, int $openTagPointe } /** - * @param File $phpcsFile - * @param int $openTagPointer * @return ReferencedName[] */ public static function getAllReferencedNamesInAttributes(File $phpcsFile, int $openTagPointer): array @@ -124,8 +120,6 @@ public static function getReferencedNameEndPointer(File $phpcsFile, int $startPo } /** - * @param File $phpcsFile - * @param int $openTagPointer * @return ReferencedName[] */ private static function createAllReferencedNames(File $phpcsFile, int $openTagPointer): array @@ -390,8 +384,6 @@ private static function isReferencedName(File $phpcsFile, int $startPointer): bo } /** - * @param File $phpcsFile - * @param int $openTagPointer * @return ReferencedName[] */ private static function createAllReferencedNamesInAttributes(File $phpcsFile, int $openTagPointer): array @@ -462,7 +454,6 @@ private static function createAllReferencedNamesInAttributes(File $phpcsFile, in /** * @param int|string $code - * @return bool */ private static function isNeedParsedContent($code): bool { @@ -470,7 +461,6 @@ private static function isNeedParsedContent($code): bool } /** - * @param string $content * @return string[] */ private static function getReferencedNamesFromString(string $content): array diff --git a/SlevomatCodingStandard/Helpers/ScopeHelper.php b/SlevomatCodingStandard/Helpers/ScopeHelper.php index 3442a813a..3eb72b5d9 100644 --- a/SlevomatCodingStandard/Helpers/ScopeHelper.php +++ b/SlevomatCodingStandard/Helpers/ScopeHelper.php @@ -51,7 +51,6 @@ public static function getRootPointer(File $phpcsFile, int $pointer): int } /** - * @param File $phpcsFile * @return int[] */ public static function getAllRootPointers(File $phpcsFile): array diff --git a/SlevomatCodingStandard/Helpers/SniffLocalCache.php b/SlevomatCodingStandard/Helpers/SniffLocalCache.php index 44f88ef18..fac1f790e 100644 --- a/SlevomatCodingStandard/Helpers/SniffLocalCache.php +++ b/SlevomatCodingStandard/Helpers/SniffLocalCache.php @@ -21,9 +21,6 @@ final class SniffLocalCache /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint - * @param File $phpcsFile - * @param string $key - * @param Closure $lazyValue * @return mixed */ public static function getAndSetIfNotCached(File $phpcsFile, string $key, Closure $lazyValue) diff --git a/SlevomatCodingStandard/Helpers/SniffSettingsHelper.php b/SlevomatCodingStandard/Helpers/SniffSettingsHelper.php index ed7874518..267416de9 100644 --- a/SlevomatCodingStandard/Helpers/SniffSettingsHelper.php +++ b/SlevomatCodingStandard/Helpers/SniffSettingsHelper.php @@ -19,7 +19,6 @@ class SniffSettingsHelper /** * @param string|int $settings - * @return int */ public static function normalizeInteger($settings): int { diff --git a/SlevomatCodingStandard/Helpers/TokenHelper.php b/SlevomatCodingStandard/Helpers/TokenHelper.php index d396e4869..3ee98e5f9 100644 --- a/SlevomatCodingStandard/Helpers/TokenHelper.php +++ b/SlevomatCodingStandard/Helpers/TokenHelper.php @@ -102,11 +102,7 @@ class TokenHelper ]; /** - * @param File $phpcsFile * @param (int|string)|(int|string)[] $types - * @param int $startPointer - * @param int|null $endPointer - * @return int|null */ public static function findNext(File $phpcsFile, $types, int $startPointer, ?int $endPointer = null): ?int { @@ -116,10 +112,7 @@ public static function findNext(File $phpcsFile, $types, int $startPointer, ?int } /** - * @param File $phpcsFile * @param (int|string)|(int|string)[] $types - * @param int $startPointer - * @param int|null $endPointer * @return int[] */ public static function findNextAll(File $phpcsFile, $types, int $startPointer, ?int $endPointer = null): array @@ -141,12 +134,7 @@ public static function findNextAll(File $phpcsFile, $types, int $startPointer, ? } /** - * @param File $phpcsFile * @param (int|string)|(int|string)[] $types - * @param string $content - * @param int $startPointer - * @param int|null $endPointer - * @return int|null */ public static function findNextContent(File $phpcsFile, $types, string $content, int $startPointer, ?int $endPointer = null): ?int { @@ -156,10 +144,8 @@ public static function findNextContent(File $phpcsFile, $types, string $content, } /** - * @param File $phpcsFile * @param int $startPointer Search starts at this token, inclusive * @param int|null $endPointer Search ends at this token, exclusive - * @return int|null */ public static function findNextEffective(File $phpcsFile, int $startPointer, ?int $endPointer = null): ?int { @@ -167,11 +153,9 @@ public static function findNextEffective(File $phpcsFile, int $startPointer, ?in } /** - * @param File $phpcsFile * @param (int|string)|(int|string)[] $types * @param int $startPointer Search starts at this token, inclusive * @param int|null $endPointer Search ends at this token, exclusive - * @return int|null */ public static function findNextExcluding(File $phpcsFile, $types, int $startPointer, ?int $endPointer = null): ?int { @@ -181,11 +165,7 @@ public static function findNextExcluding(File $phpcsFile, $types, int $startPoin } /** - * @param File $phpcsFile * @param (int|string)|(int|string)[] $types - * @param int $startPointer - * @param int|null $endPointer - * @return int|null */ public static function findNextLocal(File $phpcsFile, $types, int $startPointer, ?int $endPointer = null): ?int { @@ -195,10 +175,8 @@ public static function findNextLocal(File $phpcsFile, $types, int $startPointer, } /** - * @param File $phpcsFile * @param int $startPointer Search starts at this token, inclusive * @param int|null $endPointer Search ends at this token, exclusive - * @return int|null */ public static function findNextAnyToken(File $phpcsFile, int $startPointer, ?int $endPointer = null): ?int { @@ -206,11 +184,9 @@ public static function findNextAnyToken(File $phpcsFile, int $startPointer, ?int } /** - * @param File $phpcsFile * @param (int|string)|(int|string)[] $types * @param int $startPointer Search starts at this token, inclusive * @param int|null $endPointer Search ends at this token, exclusive - * @return int|null */ public static function findPrevious(File $phpcsFile, $types, int $startPointer, ?int $endPointer = null): ?int { @@ -220,12 +196,7 @@ public static function findPrevious(File $phpcsFile, $types, int $startPointer, } /** - * @param File $phpcsFile * @param (int|string)|(int|string)[] $types - * @param string $content - * @param int $startPointer - * @param int|null $endPointer - * @return int|null */ public static function findPreviousContent(File $phpcsFile, $types, string $content, int $startPointer, ?int $endPointer = null): ?int { @@ -235,10 +206,8 @@ public static function findPreviousContent(File $phpcsFile, $types, string $cont } /** - * @param File $phpcsFile * @param int $startPointer Search starts at this token, inclusive * @param int|null $endPointer Search ends at this token, exclusive - * @return int|null */ public static function findPreviousEffective(File $phpcsFile, int $startPointer, ?int $endPointer = null): ?int { @@ -246,11 +215,9 @@ public static function findPreviousEffective(File $phpcsFile, int $startPointer, } /** - * @param File $phpcsFile * @param (int|string)|(int|string)[] $types * @param int $startPointer Search starts at this token, inclusive * @param int|null $endPointer Search ends at this token, exclusive - * @return int|null */ public static function findPreviousExcluding(File $phpcsFile, $types, int $startPointer, ?int $endPointer = null): ?int { @@ -260,11 +227,7 @@ public static function findPreviousExcluding(File $phpcsFile, $types, int $start } /** - * @param File $phpcsFile * @param (int|string)|(int|string)[] $types - * @param int $startPointer - * @param int|null $endPointer - * @return int|null */ public static function findPreviousLocal(File $phpcsFile, $types, int $startPointer, ?int $endPointer = null): ?int { @@ -274,9 +237,7 @@ public static function findPreviousLocal(File $phpcsFile, $types, int $startPoin } /** - * @param File $phpcsFile * @param int $pointer Search starts at this token, inclusive - * @return int */ public static function findFirstTokenOnLine(File $phpcsFile, int $pointer): int { @@ -296,9 +257,7 @@ public static function findFirstTokenOnLine(File $phpcsFile, int $pointer): int } /** - * @param File $phpcsFile * @param int $pointer Search starts at this token, inclusive - * @return int */ public static function findLastTokenOnLine(File $phpcsFile, int $pointer): int { @@ -314,9 +273,7 @@ public static function findLastTokenOnLine(File $phpcsFile, int $pointer): int } /** - * @param File $phpcsFile * @param int $pointer Search starts at this token, inclusive - * @return int|null */ public static function findFirstTokenOnNextLine(File $phpcsFile, int $pointer): ?int { @@ -338,9 +295,7 @@ public static function findFirstTokenOnNextLine(File $phpcsFile, int $pointer): } /** - * @param File $phpcsFile * @param int $pointer Search starts at this token, inclusive - * @return int */ public static function findFirstNonWhitespaceOnLine(File $phpcsFile, int $pointer): int { @@ -360,9 +315,7 @@ public static function findFirstNonWhitespaceOnLine(File $phpcsFile, int $pointe } /** - * @param File $phpcsFile * @param int $pointer Search starts at this token, inclusive - * @return int|null */ public static function findFirstNonWhitespaceOnNextLine(File $phpcsFile, int $pointer): ?int { @@ -382,9 +335,7 @@ public static function findFirstNonWhitespaceOnNextLine(File $phpcsFile, int $po } /** - * @param File $phpcsFile * @param int $pointer Search starts at this token, inclusive - * @return int|null */ public static function findFirstNonWhitespaceOnPreviousLine(File $phpcsFile, int $pointer): ?int { diff --git a/SlevomatCodingStandard/Helpers/TypeHelper.php b/SlevomatCodingStandard/Helpers/TypeHelper.php index 2c98c7ffd..273691b65 100644 --- a/SlevomatCodingStandard/Helpers/TypeHelper.php +++ b/SlevomatCodingStandard/Helpers/TypeHelper.php @@ -16,8 +16,6 @@ class TypeHelper * Validates type name according to the allowed characters in type names + namespaces * * @link http://php.net/manual/en/language.oop5.basic.php - * @param string $typeName - * @return bool */ public static function isTypeName(string $typeName): bool { diff --git a/SlevomatCodingStandard/Helpers/TypeHintHelper.php b/SlevomatCodingStandard/Helpers/TypeHintHelper.php index 658280e2a..17c0c1635 100644 --- a/SlevomatCodingStandard/Helpers/TypeHintHelper.php +++ b/SlevomatCodingStandard/Helpers/TypeHintHelper.php @@ -82,7 +82,6 @@ public static function isVoidTypeHint(string $typeHint): bool } /** - * @param string $typeHint * @return string[] */ public static function convertUnofficialUnionTypeHintToOfficialTypeHints(string $typeHint): array @@ -179,9 +178,7 @@ public static function isSimpleUnofficialTypeHints(string $typeHint): bool } /** - * @param string $type * @param string[] $traversableTypeHints - * @return bool */ public static function isTraversableType(string $type, array $traversableTypeHints): bool { diff --git a/SlevomatCodingStandard/Helpers/UseStatementHelper.php b/SlevomatCodingStandard/Helpers/UseStatementHelper.php index 5b5a7c77d..0e071e734 100644 --- a/SlevomatCodingStandard/Helpers/UseStatementHelper.php +++ b/SlevomatCodingStandard/Helpers/UseStatementHelper.php @@ -89,8 +89,6 @@ public static function getFullyQualifiedTypeNameFromUse(File $phpcsFile, int $us } /** - * @param File $phpcsFile - * @param int $pointer * @return array */ public static function getUseStatementsForPointer(File $phpcsFile, int $pointer): array @@ -111,7 +109,6 @@ public static function getUseStatementsForPointer(File $phpcsFile, int $pointer) } /** - * @param File $phpcsFile * @return array> */ public static function getFileUseStatements(File $phpcsFile): array @@ -176,8 +173,6 @@ public static function getUseStatementPointer(File $phpcsFile, int $pointer): ?i /** * Searches for all use statements in a file, skips bodies of classes and traits. * - * @param File $phpcsFile - * @param int $openTagPointer * @return int[] */ private static function getUseStatementPointers(File $phpcsFile, int $openTagPointer): array diff --git a/SlevomatCodingStandard/Helpers/YodaHelper.php b/SlevomatCodingStandard/Helpers/YodaHelper.php index 33cb73eda..fdf05d052 100644 --- a/SlevomatCodingStandard/Helpers/YodaHelper.php +++ b/SlevomatCodingStandard/Helpers/YodaHelper.php @@ -74,7 +74,6 @@ class YodaHelper private const DYNAMISM_FUNCTION_CALL = 998; /** - * @param File $phpcsFile * @param array|int|string>> $leftSideTokens * @param array|int|string>> $rightSideTokens */ @@ -88,7 +87,6 @@ public static function fix(File $phpcsFile, array $leftSideTokens, array $rightS /** * @param array|int|string>> $tokens - * @param int $comparisonTokenPointer * @return array|int|string>> */ public static function getLeftSideTokens(array $tokens, int $comparisonTokenPointer): array @@ -135,7 +133,6 @@ public static function getLeftSideTokens(array $tokens, int $comparisonTokenPoin /** * @param array|int|string>> $tokens - * @param int $comparisonTokenPointer * @return array|int|string>> */ public static function getRightSideTokens(array $tokens, int $comparisonTokenPointer): array @@ -183,7 +180,6 @@ public static function getRightSideTokens(array $tokens, int $comparisonTokenPoi /** * @param array|int|string>> $tokens * @param array|int|string>> $sideTokens - * @return int|null */ public static function getDynamismForTokens(array $tokens, array $sideTokens): ?int { @@ -274,7 +270,6 @@ public static function trimWhitespaceTokens(array $tokens): array } /** - * @param File $phpcsFile * @param array|int|string>> $oldTokens * @param array|int|string>> $newTokens */ diff --git a/SlevomatCodingStandard/Sniffs/Arrays/DisallowImplicitArrayCreationSniff.php b/SlevomatCodingStandard/Sniffs/Arrays/DisallowImplicitArrayCreationSniff.php index 32f037367..16246248a 100644 --- a/SlevomatCodingStandard/Sniffs/Arrays/DisallowImplicitArrayCreationSniff.php +++ b/SlevomatCodingStandard/Sniffs/Arrays/DisallowImplicitArrayCreationSniff.php @@ -43,7 +43,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $bracketOpenerPointer */ public function process(File $phpcsFile, $bracketOpenerPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Arrays/MultiLineArrayEndBracketPlacementSniff.php b/SlevomatCodingStandard/Sniffs/Arrays/MultiLineArrayEndBracketPlacementSniff.php index fb3b4896c..0fb06bb13 100644 --- a/SlevomatCodingStandard/Sniffs/Arrays/MultiLineArrayEndBracketPlacementSniff.php +++ b/SlevomatCodingStandard/Sniffs/Arrays/MultiLineArrayEndBracketPlacementSniff.php @@ -22,7 +22,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $arrayStart */ public function process(File $phpcsFile, $arrayStart): void diff --git a/SlevomatCodingStandard/Sniffs/Arrays/SingleLineArrayWhitespaceSniff.php b/SlevomatCodingStandard/Sniffs/Arrays/SingleLineArrayWhitespaceSniff.php index daf1f7975..c08a2a18e 100644 --- a/SlevomatCodingStandard/Sniffs/Arrays/SingleLineArrayWhitespaceSniff.php +++ b/SlevomatCodingStandard/Sniffs/Arrays/SingleLineArrayWhitespaceSniff.php @@ -38,7 +38,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $stackPointer */ public function process(File $phpcsFile, $stackPointer): int diff --git a/SlevomatCodingStandard/Sniffs/Arrays/TrailingArrayCommaSniff.php b/SlevomatCodingStandard/Sniffs/Arrays/TrailingArrayCommaSniff.php index 4b3ea28be..e9d1721e7 100644 --- a/SlevomatCodingStandard/Sniffs/Arrays/TrailingArrayCommaSniff.php +++ b/SlevomatCodingStandard/Sniffs/Arrays/TrailingArrayCommaSniff.php @@ -32,7 +32,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $stackPointer */ public function process(File $phpcsFile, $stackPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/AbstractMethodSignature.php b/SlevomatCodingStandard/Sniffs/Classes/AbstractMethodSignature.php index b4e7e453d..5e00be600 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/AbstractMethodSignature.php +++ b/SlevomatCodingStandard/Sniffs/Classes/AbstractMethodSignature.php @@ -31,8 +31,6 @@ public function register(): array } /** - * @param File $phpcsFile - * @param int $methodPointer * @return array */ protected function getSignatureStartAndEndPointers(File $phpcsFile, int $methodPointer): array diff --git a/SlevomatCodingStandard/Sniffs/Classes/AbstractPropertyAndConstantSpacing.php b/SlevomatCodingStandard/Sniffs/Classes/AbstractPropertyAndConstantSpacing.php index bdf806ba9..e943cea82 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/AbstractPropertyAndConstantSpacing.php +++ b/SlevomatCodingStandard/Sniffs/Classes/AbstractPropertyAndConstantSpacing.php @@ -47,7 +47,6 @@ abstract protected function addError(File $phpcsFile, int $pointer, int $min, in /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): int diff --git a/SlevomatCodingStandard/Sniffs/Classes/ClassConstantVisibilitySniff.php b/SlevomatCodingStandard/Sniffs/Classes/ClassConstantVisibilitySniff.php index d025f1edf..80c8990b3 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/ClassConstantVisibilitySniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/ClassConstantVisibilitySniff.php @@ -39,7 +39,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $constantPointer */ public function process(File $phpcsFile, $constantPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/ClassMemberSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/ClassMemberSpacingSniff.php index 6944ff372..56ac84332 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/ClassMemberSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/ClassMemberSpacingSniff.php @@ -55,7 +55,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $classPointer */ public function process(File $phpcsFile, $classPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/ClassStructureSniff.php b/SlevomatCodingStandard/Sniffs/Classes/ClassStructureSniff.php index a67fe2b48..799a8d635 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/ClassStructureSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/ClassStructureSniff.php @@ -196,9 +196,7 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer - * @return int */ public function process(File $phpcsFile, $pointer): int { @@ -262,8 +260,6 @@ static function (int $order) use ($groupsOrder, $expectedGroup): bool { } /** - * @param File $phpcsFile - * @param int $pointer * @param array{scope_closer: int, level: int} $rootScopeToken * @return array{int, int, string}|null */ @@ -654,7 +650,6 @@ private function getNormalizedGroups(): array } /** - * @param string $shortcut * @param array $supportedGroups * @return array */ diff --git a/SlevomatCodingStandard/Sniffs/Classes/ConstantSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/ConstantSpacingSniff.php index 98d6491ca..88f03e05a 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/ConstantSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/ConstantSpacingSniff.php @@ -31,7 +31,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $constantPointer */ public function process(File $phpcsFile, $constantPointer): int diff --git a/SlevomatCodingStandard/Sniffs/Classes/DisallowConstructorPropertyPromotionSniff.php b/SlevomatCodingStandard/Sniffs/Classes/DisallowConstructorPropertyPromotionSniff.php index 2e5ef2604..b83a22b35 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/DisallowConstructorPropertyPromotionSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/DisallowConstructorPropertyPromotionSniff.php @@ -26,7 +26,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/DisallowLateStaticBindingForConstantsSniff.php b/SlevomatCodingStandard/Sniffs/Classes/DisallowLateStaticBindingForConstantsSniff.php index ef362e6be..2863e0877 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/DisallowLateStaticBindingForConstantsSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/DisallowLateStaticBindingForConstantsSniff.php @@ -28,7 +28,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $staticPointer */ public function process(File $phpcsFile, $staticPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/DisallowMultiConstantDefinitionSniff.php b/SlevomatCodingStandard/Sniffs/Classes/DisallowMultiConstantDefinitionSniff.php index 36f444d80..a07f615b8 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/DisallowMultiConstantDefinitionSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/DisallowMultiConstantDefinitionSniff.php @@ -32,7 +32,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $constantPointer */ public function process(File $phpcsFile, $constantPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/DisallowMultiPropertyDefinitionSniff.php b/SlevomatCodingStandard/Sniffs/Classes/DisallowMultiPropertyDefinitionSniff.php index 0b37b6772..848545442 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/DisallowMultiPropertyDefinitionSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/DisallowMultiPropertyDefinitionSniff.php @@ -37,7 +37,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $visibilityPointer */ public function process(File $phpcsFile, $visibilityPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/EmptyLinesAroundClassBracesSniff.php b/SlevomatCodingStandard/Sniffs/Classes/EmptyLinesAroundClassBracesSniff.php index 2ef69f43f..3e0d9024f 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/EmptyLinesAroundClassBracesSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/EmptyLinesAroundClassBracesSniff.php @@ -49,7 +49,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $stackPointer */ public function process(File $phpcsFile, $stackPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/ForbiddenPublicPropertySniff.php b/SlevomatCodingStandard/Sniffs/Classes/ForbiddenPublicPropertySniff.php index 10ffa4b9e..2aa93f779 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/ForbiddenPublicPropertySniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/ForbiddenPublicPropertySniff.php @@ -27,7 +27,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $file * @param int $variablePointer */ public function process(File $file, $variablePointer): void @@ -60,8 +59,6 @@ private function isSniffClass(File $file, int $position): bool /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint.DisallowedMixedTypeHint - * @param File $file - * @param int $position * @return mixed[] */ private function getPropertyScopeModifier(File $file, int $position): array diff --git a/SlevomatCodingStandard/Sniffs/Classes/MethodSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/MethodSpacingSniff.php index 517fd8905..234087192 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/MethodSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/MethodSpacingSniff.php @@ -38,7 +38,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $methodPointer */ public function process(File $phpcsFile, $methodPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/ModernClassNameReferenceSniff.php b/SlevomatCodingStandard/Sniffs/Classes/ModernClassNameReferenceSniff.php index b4ae0c849..1a1e04522 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/ModernClassNameReferenceSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/ModernClassNameReferenceSniff.php @@ -42,7 +42,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/ParentCallSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/ParentCallSpacingSniff.php index 194b7060f..d79da045b 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/ParentCallSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/ParentCallSpacingSniff.php @@ -38,7 +38,6 @@ class ParentCallSpacingSniff extends AbstractControlStructureSpacing /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $parentPointer */ public function process(File $phpcsFile, $parentPointer): void @@ -95,9 +94,6 @@ protected function getLinesCountBefore(): int /** * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter - * @param File $phpcsFile - * @param int $parentPointer - * @return int */ protected function getLinesCountBeforeFirst(File $phpcsFile, int $parentPointer): int { @@ -111,10 +107,6 @@ protected function getLinesCountAfter(): int /** * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter - * @param File $phpcsFile - * @param int $parentPointer - * @param int $parentEndPointer - * @return int */ protected function getLinesCountAfterLast(File $phpcsFile, int $parentPointer, int $parentEndPointer): int { diff --git a/SlevomatCodingStandard/Sniffs/Classes/PropertySpacingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/PropertySpacingSniff.php index cc5897c7b..969dec66e 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/PropertySpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/PropertySpacingSniff.php @@ -31,7 +31,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): int diff --git a/SlevomatCodingStandard/Sniffs/Classes/RequireAbstractOrFinalSniff.php b/SlevomatCodingStandard/Sniffs/Classes/RequireAbstractOrFinalSniff.php index 9785611af..94f9f6ce7 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/RequireAbstractOrFinalSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/RequireAbstractOrFinalSniff.php @@ -27,7 +27,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $classPointer */ public function process(File $phpcsFile, $classPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/RequireConstructorPropertyPromotionSniff.php b/SlevomatCodingStandard/Sniffs/Classes/RequireConstructorPropertyPromotionSniff.php index 7ae6b0544..79dfd397d 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/RequireConstructorPropertyPromotionSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/RequireConstructorPropertyPromotionSniff.php @@ -60,7 +60,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void @@ -272,8 +271,6 @@ private function getAssignment(File $phpcsFile, int $constructorPointer, string } /** - * @param File $phpcsFile - * @param int $functionPointer * @return int[] */ private function getParameterPointers(File $phpcsFile, int $functionPointer): array @@ -288,8 +285,6 @@ private function getParameterPointers(File $phpcsFile, int $functionPointer): ar } /** - * @param File $phpcsFile - * @param int $classPointer * @return int[] */ private function getPropertyPointers(File $phpcsFile, int $classPointer): array diff --git a/SlevomatCodingStandard/Sniffs/Classes/RequireMultiLineMethodSignatureSniff.php b/SlevomatCodingStandard/Sniffs/Classes/RequireMultiLineMethodSignatureSniff.php index b5b3e69a0..93096f722 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/RequireMultiLineMethodSignatureSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/RequireMultiLineMethodSignatureSniff.php @@ -37,7 +37,6 @@ class RequireMultiLineMethodSignatureSniff extends AbstractMethodSignature /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $methodPointer */ public function process(File $phpcsFile, $methodPointer): void @@ -119,9 +118,7 @@ public function process(File $phpcsFile, $methodPointer): void } /** - * @param string $methodName * @param string[] $normalizedPatterns - * @return bool */ private function isMethodNameInPatterns(string $methodName, array $normalizedPatterns): bool { diff --git a/SlevomatCodingStandard/Sniffs/Classes/RequireSingleLineMethodSignatureSniff.php b/SlevomatCodingStandard/Sniffs/Classes/RequireSingleLineMethodSignatureSniff.php index d442e52cb..5a1c85b26 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/RequireSingleLineMethodSignatureSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/RequireSingleLineMethodSignatureSniff.php @@ -33,7 +33,6 @@ class RequireSingleLineMethodSignatureSniff extends AbstractMethodSignature /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $methodPointer */ public function process(File $phpcsFile, $methodPointer): void @@ -91,9 +90,7 @@ public function process(File $phpcsFile, $methodPointer): void } /** - * @param string $methodName * @param string[] $normalizedPatterns - * @return bool */ private function isMethodNameInPatterns(string $methodName, array $normalizedPatterns): bool { diff --git a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousAbstractClassNamingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousAbstractClassNamingSniff.php index a2b58fea0..5c5800fb3 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousAbstractClassNamingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousAbstractClassNamingSniff.php @@ -30,7 +30,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $classPointer */ public function process(File $phpcsFile, $classPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousErrorNamingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousErrorNamingSniff.php index 804758bcb..108c97eae 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousErrorNamingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousErrorNamingSniff.php @@ -29,7 +29,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $classPointer */ public function process(File $phpcsFile, $classPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousExceptionNamingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousExceptionNamingSniff.php index c8d66891e..5c1d58618 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousExceptionNamingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousExceptionNamingSniff.php @@ -29,7 +29,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $classPointer */ public function process(File $phpcsFile, $classPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousInterfaceNamingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousInterfaceNamingSniff.php index d7f1e8ff3..448d83f5b 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousInterfaceNamingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousInterfaceNamingSniff.php @@ -28,7 +28,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $interfacePointer */ public function process(File $phpcsFile, $interfacePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousTraitNamingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousTraitNamingSniff.php index dc690506e..22e7ea61b 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/SuperfluousTraitNamingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/SuperfluousTraitNamingSniff.php @@ -27,7 +27,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $traitPointer */ public function process(File $phpcsFile, $traitPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/TraitUseDeclarationSniff.php b/SlevomatCodingStandard/Sniffs/Classes/TraitUseDeclarationSniff.php index fb754450a..6749515dd 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/TraitUseDeclarationSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/TraitUseDeclarationSniff.php @@ -33,7 +33,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $classPointer */ public function process(File $phpcsFile, $classPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/TraitUseSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/TraitUseSpacingSniff.php index 487e561e8..b12945418 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/TraitUseSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/TraitUseSpacingSniff.php @@ -56,7 +56,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $classPointer */ public function process(File $phpcsFile, $classPointer): void @@ -206,7 +205,6 @@ private function checkLinesAfterLastUse(File $phpcsFile, int $lastUsePointer): v } /** - * @param File $phpcsFile * @param int[] $usePointers */ private function checkLinesBetweenUses(File $phpcsFile, array $usePointers): void diff --git a/SlevomatCodingStandard/Sniffs/Classes/UselessLateStaticBindingSniff.php b/SlevomatCodingStandard/Sniffs/Classes/UselessLateStaticBindingSniff.php index 58de30a3d..f00a8bb2d 100644 --- a/SlevomatCodingStandard/Sniffs/Classes/UselessLateStaticBindingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Classes/UselessLateStaticBindingSniff.php @@ -32,7 +32,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $staticPointer */ public function process(File $phpcsFile, $staticPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/AbstractRequireOneLineDocComment.php b/SlevomatCodingStandard/Sniffs/Commenting/AbstractRequireOneLineDocComment.php index 043455c7a..f6eb8b9d0 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/AbstractRequireOneLineDocComment.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/AbstractRequireOneLineDocComment.php @@ -30,7 +30,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentStartPointer */ public function process(File $phpcsFile, $docCommentStartPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/DeprecatedAnnotationDeclarationSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/DeprecatedAnnotationDeclarationSniff.php index 9c21d886f..c2e3335f7 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/DeprecatedAnnotationDeclarationSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/DeprecatedAnnotationDeclarationSniff.php @@ -22,7 +22,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentStartPointer */ public function process(File $phpcsFile, $docCommentStartPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/DisallowCommentAfterCodeSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/DisallowCommentAfterCodeSniff.php index 877e4de7d..eda429640 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/DisallowCommentAfterCodeSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/DisallowCommentAfterCodeSniff.php @@ -36,7 +36,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $commentPointer */ public function process(File $phpcsFile, $commentPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/DisallowOneLinePropertyDocCommentSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/DisallowOneLinePropertyDocCommentSniff.php index ccb146c70..43c431022 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/DisallowOneLinePropertyDocCommentSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/DisallowOneLinePropertyDocCommentSniff.php @@ -27,7 +27,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $propertyPointer */ public function process(File $phpcsFile, $propertyPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/DocCommentSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/DocCommentSpacingSniff.php index c3c30fe09..29490af27 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/DocCommentSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/DocCommentSpacingSniff.php @@ -83,7 +83,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenerPointer */ public function process(File $phpcsFile, $docCommentOpenerPointer): void @@ -277,8 +276,6 @@ private function checkLinesBetweenDescriptionAndFirstAnnotation( } /** - * @param File $phpcsFile - * @param int $docCommentOpenerPointer * @param Annotation[] $annotations */ private function checkLinesBetweenDifferentAnnotationsTypes(File $phpcsFile, int $docCommentOpenerPointer, array $annotations): void @@ -353,8 +350,6 @@ private function checkLinesBetweenDifferentAnnotationsTypes(File $phpcsFile, int } /** - * @param File $phpcsFile - * @param int $docCommentOpenerPointer * @param Annotation[] $annotations */ private function checkAnnotationsGroups(File $phpcsFile, int $docCommentOpenerPointer, array $annotations): void @@ -388,8 +383,6 @@ private function checkAnnotationsGroups(File $phpcsFile, int $docCommentOpenerPo } /** - * @param File $phpcsFile - * @param int $docCommentOpenerPointer * @param Annotation[][] $annotationsGroups */ private function checkLinesBetweenAnnotationsGroups(File $phpcsFile, int $docCommentOpenerPointer, array $annotationsGroups): void @@ -457,8 +450,6 @@ private function checkLinesBetweenAnnotationsGroups(File $phpcsFile, int $docCom } /** - * @param File $phpcsFile - * @param int $docCommentOpenerPointer * @param Annotation[][] $annotationsGroups * @param Annotation[] $annotations */ diff --git a/SlevomatCodingStandard/Sniffs/Commenting/EmptyCommentSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/EmptyCommentSniff.php index 173400760..05c55c0cb 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/EmptyCommentSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/EmptyCommentSniff.php @@ -33,7 +33,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $commentStartPointer */ public function process(File $phpcsFile, $commentStartPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/ForbiddenAnnotationsSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/ForbiddenAnnotationsSniff.php index 0d51103be..9f290793d 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/ForbiddenAnnotationsSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/ForbiddenAnnotationsSniff.php @@ -39,7 +39,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenPointer */ public function process(File $phpcsFile, $docCommentOpenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/ForbiddenCommentsSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/ForbiddenCommentsSniff.php index 90c8fe2ee..26b0fc962 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/ForbiddenCommentsSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/ForbiddenCommentsSniff.php @@ -34,7 +34,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenPointer */ public function process(File $phpcsFile, $docCommentOpenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/InlineDocCommentDeclarationSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/InlineDocCommentDeclarationSniff.php index 3a5552522..caf5f5730 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/InlineDocCommentDeclarationSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/InlineDocCommentDeclarationSniff.php @@ -60,7 +60,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $commentOpenPointer */ public function process(File $phpcsFile, $commentOpenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/RequireOneLinePropertyDocCommentSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/RequireOneLinePropertyDocCommentSniff.php index b9d965d5b..0c04e2d20 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/RequireOneLinePropertyDocCommentSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/RequireOneLinePropertyDocCommentSniff.php @@ -16,7 +16,6 @@ class RequireOneLinePropertyDocCommentSniff extends AbstractRequireOneLineDocCom /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentStartPointer */ public function process(File $phpcsFile, $docCommentStartPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/UselessFunctionDocCommentSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/UselessFunctionDocCommentSniff.php index 994df8935..5dd4dc23a 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/UselessFunctionDocCommentSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/UselessFunctionDocCommentSniff.php @@ -39,7 +39,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Commenting/UselessInheritDocCommentSniff.php b/SlevomatCodingStandard/Sniffs/Commenting/UselessInheritDocCommentSniff.php index 5cfeebf04..bd08f9c54 100644 --- a/SlevomatCodingStandard/Sniffs/Commenting/UselessInheritDocCommentSniff.php +++ b/SlevomatCodingStandard/Sniffs/Commenting/UselessInheritDocCommentSniff.php @@ -33,7 +33,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenPointer */ public function process(File $phpcsFile, $docCommentOpenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/AbstractControlStructureSpacing.php b/SlevomatCodingStandard/Sniffs/ControlStructures/AbstractControlStructureSpacing.php index e5fa0a182..831cf3cbf 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/AbstractControlStructureSpacing.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/AbstractControlStructureSpacing.php @@ -111,7 +111,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $controlStructurePointer */ public function process(File $phpcsFile, $controlStructurePointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/AssignmentInConditionSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/AssignmentInConditionSniff.php index ed1dd7fb2..08877d347 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/AssignmentInConditionSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/AssignmentInConditionSniff.php @@ -36,7 +36,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $conditionStartPointer */ public function process(File $phpcsFile, $conditionStartPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/BlockControlStructureSpacingSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/BlockControlStructureSpacingSniff.php index 823f82d49..29b90ea04 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/BlockControlStructureSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/BlockControlStructureSpacingSniff.php @@ -30,7 +30,6 @@ class BlockControlStructureSpacingSniff extends AbstractControlStructureSpacing /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $controlStructurePointer */ public function process(File $phpcsFile, $controlStructurePointer): void @@ -75,9 +74,6 @@ protected function getLinesCountBefore(): int /** * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter - * @param File $phpcsFile - * @param int $controlStructurePointer - * @return int */ protected function getLinesCountBeforeFirst(File $phpcsFile, int $controlStructurePointer): int { @@ -91,10 +87,6 @@ protected function getLinesCountAfter(): int /** * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter - * @param File $phpcsFile - * @param int $controlStructurePointer - * @param int $controlStructureEndPointer - * @return int */ protected function getLinesCountAfterLast(File $phpcsFile, int $controlStructurePointer, int $controlStructureEndPointer): int { diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowContinueWithoutIntegerOperandInSwitchSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowContinueWithoutIntegerOperandInSwitchSniff.php index 0f01a67b8..69bfc566d 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowContinueWithoutIntegerOperandInSwitchSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowContinueWithoutIntegerOperandInSwitchSniff.php @@ -28,7 +28,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $continuePointer */ public function process(File $phpcsFile, $continuePointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowEmptySniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowEmptySniff.php index de9bfea90..e7cf97378 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowEmptySniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowEmptySniff.php @@ -23,7 +23,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $emptyPointer */ public function process(File $phpcsFile, $emptyPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowNullSafeObjectOperatorSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowNullSafeObjectOperatorSniff.php index 2c802a97e..6a26e4f30 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowNullSafeObjectOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowNullSafeObjectOperatorSniff.php @@ -23,7 +23,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $operatorPointer */ public function process(File $phpcsFile, $operatorPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowShortTernaryOperatorSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowShortTernaryOperatorSniff.php index cb6ba03c0..59c1eba76 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowShortTernaryOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowShortTernaryOperatorSniff.php @@ -30,7 +30,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $inlineThenPointer */ public function process(File $phpcsFile, $inlineThenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowYodaComparisonSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowYodaComparisonSniff.php index 66879a427..8cdc703e9 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowYodaComparisonSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/DisallowYodaComparisonSniff.php @@ -41,7 +41,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $comparisonTokenPointer */ public function process(File $phpcsFile, $comparisonTokenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/EarlyExitSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/EarlyExitSniff.php index 0f6dc242e..4e4dfcf48 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/EarlyExitSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/EarlyExitSniff.php @@ -61,7 +61,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): void @@ -399,8 +398,6 @@ private function getScopeCode(File $phpcsFile, int $scopePointer): string } /** - * @param File $phpcsFile - * @param int $scopePointer * @return int[] */ private function getScopeCodePointers(File $phpcsFile, int $scopePointer): array @@ -411,7 +408,6 @@ private function getScopeCodePointers(File $phpcsFile, int $scopePointer): array /** * @param string|int $code - * @return string */ private function getEarlyExitCode($code): string { @@ -456,8 +452,6 @@ private function isEarlyExitInScope(File $phpcsFile, int $startPointer, int $end } /** - * @param File $phpcsFile - * @param int $conditionPointer * @return int[] */ private function getAllConditionsPointers(File $phpcsFile, int $conditionPointer): array diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/JumpStatementsSpacingSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/JumpStatementsSpacingSniff.php index af63cd3f4..2aa3d21a4 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/JumpStatementsSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/JumpStatementsSpacingSniff.php @@ -54,7 +54,6 @@ class JumpStatementsSpacingSniff extends AbstractControlStructureSpacing /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $jumpStatementPointer */ public function process(File $phpcsFile, $jumpStatementPointer): void @@ -114,10 +113,6 @@ protected function getLinesCountAfter(): int /** * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter - * @param File $phpcsFile - * @param int $jumpStatementPointer - * @param int $jumpStatementEndPointer - * @return int */ protected function getLinesCountAfterLast(File $phpcsFile, int $jumpStatementPointer, int $jumpStatementEndPointer): int { diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/LanguageConstructWithParenthesesSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/LanguageConstructWithParenthesesSniff.php index 0773d8cd4..b7f4eecf8 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/LanguageConstructWithParenthesesSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/LanguageConstructWithParenthesesSniff.php @@ -55,7 +55,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $languageConstructPointer */ public function process(File $phpcsFile, $languageConstructPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/NewWithParenthesesSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/NewWithParenthesesSniff.php index 84bf2527a..8da3f2c4d 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/NewWithParenthesesSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/NewWithParenthesesSniff.php @@ -35,7 +35,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $newPointer */ public function process(File $phpcsFile, $newPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/NewWithoutParenthesesSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/NewWithoutParenthesesSniff.php index 6ba559340..c420f1d76 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/NewWithoutParenthesesSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/NewWithoutParenthesesSniff.php @@ -36,7 +36,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $newPointer */ public function process(File $phpcsFile, $newPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireMultiLineConditionSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireMultiLineConditionSniff.php index 6aa10e4de..f79043b23 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireMultiLineConditionSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireMultiLineConditionSniff.php @@ -31,7 +31,6 @@ class RequireMultiLineConditionSniff extends AbstractLineCondition /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $controlStructurePointer */ public function process(File $phpcsFile, $controlStructurePointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireMultiLineTernaryOperatorSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireMultiLineTernaryOperatorSniff.php index 3c6df6156..96c780ddd 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireMultiLineTernaryOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireMultiLineTernaryOperatorSniff.php @@ -44,7 +44,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $inlineThenPointer */ public function process(File $phpcsFile, $inlineThenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullCoalesceEqualOperatorSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullCoalesceEqualOperatorSniff.php index 797d35b5a..e34cd30a9 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullCoalesceEqualOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullCoalesceEqualOperatorSniff.php @@ -32,7 +32,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $equalPointer */ public function process(File $phpcsFile, $equalPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullCoalesceOperatorSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullCoalesceOperatorSniff.php index 281f815e2..f9d0ca5de 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullCoalesceOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullCoalesceOperatorSniff.php @@ -39,7 +39,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullSafeObjectOperatorSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullSafeObjectOperatorSniff.php index 6f9814e5b..7bd22ed41 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullSafeObjectOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullSafeObjectOperatorSniff.php @@ -56,9 +56,7 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $identicalPointer - * @return int */ public function process(File $phpcsFile, $identicalPointer): int { @@ -333,8 +331,6 @@ private function checkNextCondition( } /** - * @param File $phpcsFile - * @param int $pointerBefore * @return array|null */ private function getNextIdentificator(File $phpcsFile, int $pointerBefore): ?array diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireShortTernaryOperatorSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireShortTernaryOperatorSniff.php index 572dceaf0..fc3b4b2f9 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireShortTernaryOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireShortTernaryOperatorSniff.php @@ -30,7 +30,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $inlineThenPointer */ public function process(File $phpcsFile, $inlineThenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireSingleLineConditionSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireSingleLineConditionSniff.php index ade7ae498..79c076933 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireSingleLineConditionSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireSingleLineConditionSniff.php @@ -22,7 +22,6 @@ class RequireSingleLineConditionSniff extends AbstractLineCondition /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $controlStructurePointer */ public function process(File $phpcsFile, $controlStructurePointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireTernaryOperatorSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireTernaryOperatorSniff.php index 1e2ae4daf..5cab591e7 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireTernaryOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireTernaryOperatorSniff.php @@ -41,7 +41,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $ifPointer */ public function process(File $phpcsFile, $ifPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireYodaComparisonSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireYodaComparisonSniff.php index 34ca8bea5..cc0a31992 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/RequireYodaComparisonSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/RequireYodaComparisonSniff.php @@ -41,7 +41,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $comparisonTokenPointer */ public function process(File $phpcsFile, $comparisonTokenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/UselessIfConditionWithReturnSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/UselessIfConditionWithReturnSniff.php index 1c9064aa4..54e59d24a 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/UselessIfConditionWithReturnSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/UselessIfConditionWithReturnSniff.php @@ -38,7 +38,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $ifPointer */ public function process(File $phpcsFile, $ifPointer): void diff --git a/SlevomatCodingStandard/Sniffs/ControlStructures/UselessTernaryOperatorSniff.php b/SlevomatCodingStandard/Sniffs/ControlStructures/UselessTernaryOperatorSniff.php index bbcbc9427..b74608320 100644 --- a/SlevomatCodingStandard/Sniffs/ControlStructures/UselessTernaryOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/ControlStructures/UselessTernaryOperatorSniff.php @@ -33,7 +33,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $inlineThenPointer */ public function process(File $phpcsFile, $inlineThenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Exceptions/DeadCatchSniff.php b/SlevomatCodingStandard/Sniffs/Exceptions/DeadCatchSniff.php index 288a69ef9..89ad4c240 100644 --- a/SlevomatCodingStandard/Sniffs/Exceptions/DeadCatchSniff.php +++ b/SlevomatCodingStandard/Sniffs/Exceptions/DeadCatchSniff.php @@ -26,7 +26,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $catchPointer */ public function process(File $phpcsFile, $catchPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Exceptions/DisallowNonCapturingCatchSniff.php b/SlevomatCodingStandard/Sniffs/Exceptions/DisallowNonCapturingCatchSniff.php index a8341808c..fcf40c9de 100644 --- a/SlevomatCodingStandard/Sniffs/Exceptions/DisallowNonCapturingCatchSniff.php +++ b/SlevomatCodingStandard/Sniffs/Exceptions/DisallowNonCapturingCatchSniff.php @@ -25,7 +25,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $catchPointer */ public function process(File $phpcsFile, $catchPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Exceptions/ReferenceThrowableOnlySniff.php b/SlevomatCodingStandard/Sniffs/Exceptions/ReferenceThrowableOnlySniff.php index b44af51d8..197fc7bf9 100644 --- a/SlevomatCodingStandard/Sniffs/Exceptions/ReferenceThrowableOnlySniff.php +++ b/SlevomatCodingStandard/Sniffs/Exceptions/ReferenceThrowableOnlySniff.php @@ -43,7 +43,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $openTagPointer */ public function process(File $phpcsFile, $openTagPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Exceptions/RequireNonCapturingCatchSniff.php b/SlevomatCodingStandard/Sniffs/Exceptions/RequireNonCapturingCatchSniff.php index 1a9e6d6d9..a8381fce4 100644 --- a/SlevomatCodingStandard/Sniffs/Exceptions/RequireNonCapturingCatchSniff.php +++ b/SlevomatCodingStandard/Sniffs/Exceptions/RequireNonCapturingCatchSniff.php @@ -40,7 +40,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $catchPointer */ public function process(File $phpcsFile, $catchPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Files/LineLengthSniff.php b/SlevomatCodingStandard/Sniffs/Files/LineLengthSniff.php index 04d18b62a..b8be91cd1 100644 --- a/SlevomatCodingStandard/Sniffs/Files/LineLengthSniff.php +++ b/SlevomatCodingStandard/Sniffs/Files/LineLengthSniff.php @@ -52,7 +52,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): int diff --git a/SlevomatCodingStandard/Sniffs/Files/TypeNameMatchesFileNameSniff.php b/SlevomatCodingStandard/Sniffs/Files/TypeNameMatchesFileNameSniff.php index 87635aaea..59a88f793 100644 --- a/SlevomatCodingStandard/Sniffs/Files/TypeNameMatchesFileNameSniff.php +++ b/SlevomatCodingStandard/Sniffs/Files/TypeNameMatchesFileNameSniff.php @@ -71,7 +71,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $typePointer */ public function process(File $phpcsFile, $typePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/ArrowFunctionDeclarationSniff.php b/SlevomatCodingStandard/Sniffs/Functions/ArrowFunctionDeclarationSniff.php index 18668d77d..ad4954f39 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/ArrowFunctionDeclarationSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/ArrowFunctionDeclarationSniff.php @@ -46,7 +46,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $arrowFunctionPointer */ public function process(File $phpcsFile, $arrowFunctionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/DisallowArrowFunctionSniff.php b/SlevomatCodingStandard/Sniffs/Functions/DisallowArrowFunctionSniff.php index 56297e8a1..31520d076 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/DisallowArrowFunctionSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/DisallowArrowFunctionSniff.php @@ -23,7 +23,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $arrowFunctionPointer */ public function process(File $phpcsFile, $arrowFunctionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/DisallowEmptyFunctionSniff.php b/SlevomatCodingStandard/Sniffs/Functions/DisallowEmptyFunctionSniff.php index 1bf59f446..704d30f44 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/DisallowEmptyFunctionSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/DisallowEmptyFunctionSniff.php @@ -25,7 +25,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/DisallowNamedArgumentsSniff.php b/SlevomatCodingStandard/Sniffs/Functions/DisallowNamedArgumentsSniff.php index 7e9a13c48..500f0f40b 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/DisallowNamedArgumentsSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/DisallowNamedArgumentsSniff.php @@ -24,7 +24,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $argumentNamePointer */ public function process(File $phpcsFile, $argumentNamePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/DisallowTrailingCommaInCallSniff.php b/SlevomatCodingStandard/Sniffs/Functions/DisallowTrailingCommaInCallSniff.php index 04411d3a1..c8367753d 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/DisallowTrailingCommaInCallSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/DisallowTrailingCommaInCallSniff.php @@ -35,7 +35,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $parenthesisOpenerPointer */ public function process(File $phpcsFile, $parenthesisOpenerPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/DisallowTrailingCommaInDeclarationSniff.php b/SlevomatCodingStandard/Sniffs/Functions/DisallowTrailingCommaInDeclarationSniff.php index b36960c7d..8ca45f433 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/DisallowTrailingCommaInDeclarationSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/DisallowTrailingCommaInDeclarationSniff.php @@ -23,7 +23,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/FunctionLengthSniff.php b/SlevomatCodingStandard/Sniffs/Functions/FunctionLengthSniff.php index 4d0b66d3d..3226c0efd 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/FunctionLengthSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/FunctionLengthSniff.php @@ -36,7 +36,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $file * @param int $functionPointer */ public function process(File $file, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/RequireArrowFunctionSniff.php b/SlevomatCodingStandard/Sniffs/Functions/RequireArrowFunctionSniff.php index 592d9b38b..abf50c709 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/RequireArrowFunctionSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/RequireArrowFunctionSniff.php @@ -40,7 +40,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $closurePointer */ public function process(File $phpcsFile, $closurePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/RequireMultiLineCallSniff.php b/SlevomatCodingStandard/Sniffs/Functions/RequireMultiLineCallSniff.php index 7e89aeaf3..71d7444df 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/RequireMultiLineCallSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/RequireMultiLineCallSniff.php @@ -33,7 +33,6 @@ class RequireMultiLineCallSniff extends AbstractLineCall /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $stringPointer */ public function process(File $phpcsFile, $stringPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/RequireSingleLineCallSniff.php b/SlevomatCodingStandard/Sniffs/Functions/RequireSingleLineCallSniff.php index c7685d9cd..3983ec997 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/RequireSingleLineCallSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/RequireSingleLineCallSniff.php @@ -33,7 +33,6 @@ class RequireSingleLineCallSniff extends AbstractLineCall /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $stringPointer */ public function process(File $phpcsFile, $stringPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/RequireTrailingCommaInCallSniff.php b/SlevomatCodingStandard/Sniffs/Functions/RequireTrailingCommaInCallSniff.php index 8586493e6..5dff75e98 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/RequireTrailingCommaInCallSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/RequireTrailingCommaInCallSniff.php @@ -40,7 +40,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $parenthesisOpenerPointer */ public function process(File $phpcsFile, $parenthesisOpenerPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/RequireTrailingCommaInDeclarationSniff.php b/SlevomatCodingStandard/Sniffs/Functions/RequireTrailingCommaInDeclarationSniff.php index e691c573d..aab66c58e 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/RequireTrailingCommaInDeclarationSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/RequireTrailingCommaInDeclarationSniff.php @@ -26,7 +26,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/StaticClosureSniff.php b/SlevomatCodingStandard/Sniffs/Functions/StaticClosureSniff.php index f3acfe31a..5e2053cc9 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/StaticClosureSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/StaticClosureSniff.php @@ -33,7 +33,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $closurePointer */ public function process(File $phpcsFile, $closurePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/StrictCallSniff.php b/SlevomatCodingStandard/Sniffs/Functions/StrictCallSniff.php index f5e6b3bfd..a012fb4a8 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/StrictCallSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/StrictCallSniff.php @@ -42,7 +42,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $stringPointer */ public function process(File $phpcsFile, $stringPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/UnusedInheritedVariablePassedToClosureSniff.php b/SlevomatCodingStandard/Sniffs/Functions/UnusedInheritedVariablePassedToClosureSniff.php index d3b62860b..8de138649 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/UnusedInheritedVariablePassedToClosureSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/UnusedInheritedVariablePassedToClosureSniff.php @@ -33,7 +33,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $usePointer */ public function process(File $phpcsFile, $usePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/UnusedParameterSniff.php b/SlevomatCodingStandard/Sniffs/Functions/UnusedParameterSniff.php index 4de6b6cf8..857f7b30b 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/UnusedParameterSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/UnusedParameterSniff.php @@ -33,7 +33,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Functions/UselessParameterDefaultValueSniff.php b/SlevomatCodingStandard/Sniffs/Functions/UselessParameterDefaultValueSniff.php index 5a382c2a8..2a9d613dd 100644 --- a/SlevomatCodingStandard/Sniffs/Functions/UselessParameterDefaultValueSniff.php +++ b/SlevomatCodingStandard/Sniffs/Functions/UselessParameterDefaultValueSniff.php @@ -26,7 +26,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/AbstractFullyQualifiedGlobalReference.php b/SlevomatCodingStandard/Sniffs/Namespaces/AbstractFullyQualifiedGlobalReference.php index d3f1ff129..d452d35e1 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/AbstractFullyQualifiedGlobalReference.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/AbstractFullyQualifiedGlobalReference.php @@ -56,7 +56,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $openTagPointer */ public function process(File $phpcsFile, $openTagPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/AlphabeticallySortedUsesSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/AlphabeticallySortedUsesSniff.php index 7f7f71906..d6bbd0436 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/AlphabeticallySortedUsesSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/AlphabeticallySortedUsesSniff.php @@ -50,7 +50,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $openTagPointer */ public function process(File $phpcsFile, $openTagPointer): void @@ -90,7 +89,6 @@ public function process(File $phpcsFile, $openTagPointer): void } /** - * @param File $phpcsFile * @param UseStatement[] $useStatements */ private function fixAlphabeticalOrder(File $phpcsFile, array $useStatements): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/DisallowGroupUseSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/DisallowGroupUseSniff.php index a8c9ea408..35aecfa4d 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/DisallowGroupUseSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/DisallowGroupUseSniff.php @@ -23,7 +23,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $usePointer */ public function process(File $phpcsFile, $usePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedClassNameInAnnotationSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedClassNameInAnnotationSniff.php index c79ac46f0..6a0721520 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedClassNameInAnnotationSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedClassNameInAnnotationSniff.php @@ -33,7 +33,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenPointer */ public function process(File $phpcsFile, $docCommentOpenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedExceptionsSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedExceptionsSniff.php index c959b8bc8..e4671cbf6 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedExceptionsSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedExceptionsSniff.php @@ -46,7 +46,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $openTagPointer */ public function process(File $phpcsFile, $openTagPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/MultipleUsesPerLineSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/MultipleUsesPerLineSniff.php index e34beb4c6..5549cae38 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/MultipleUsesPerLineSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/MultipleUsesPerLineSniff.php @@ -27,7 +27,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $usePointer */ public function process(File $phpcsFile, $usePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceDeclarationSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceDeclarationSniff.php index 0ee4719ab..9ef4020bc 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceDeclarationSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceDeclarationSniff.php @@ -32,7 +32,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $namespacePointer */ public function process(File $phpcsFile, $namespacePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceSpacingSniff.php index f60259d0d..483ec8e51 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceSpacingSniff.php @@ -42,7 +42,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $namespacePointer */ public function process(File $phpcsFile, $namespacePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/ReferenceUsedNamesOnlySniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/ReferenceUsedNamesOnlySniff.php index 0a1bf7f76..add2f53a0 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/ReferenceUsedNamesOnlySniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/ReferenceUsedNamesOnlySniff.php @@ -132,7 +132,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $openTagPointer */ public function process(File $phpcsFile, $openTagPointer): void @@ -539,10 +538,7 @@ private function getNamespacesRequiredToUse(): array } /** - * @param File $phpcsFile - * @param int $openTagPointer * @param UseStatement[] $useStatements - * @return int */ private function getUseStatementPlacePointer(File $phpcsFile, int $openTagPointer, array $useStatements): int { @@ -615,8 +611,6 @@ private function isRequiredToBeUsed(string $name): bool } /** - * @param File $phpcsFile - * @param int $openTagPointer * @return stdClass[] */ private function getReferences(File $phpcsFile, int $openTagPointer): array diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/RequireOneNamespaceInFileSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/RequireOneNamespaceInFileSniff.php index 0848754c6..8b9730242 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/RequireOneNamespaceInFileSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/RequireOneNamespaceInFileSniff.php @@ -25,7 +25,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $namespacePointer */ public function process(File $phpcsFile, $namespacePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/UnusedUsesSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/UnusedUsesSniff.php index 546b8a416..6523c63ea 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/UnusedUsesSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/UnusedUsesSniff.php @@ -74,7 +74,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $openTagPointer */ public function process(File $phpcsFile, $openTagPointer): void @@ -368,10 +367,7 @@ private function getIgnoredAnnotations(): array } /** - * @param int $pointer * @param int[] $pointersBeforeUseStatements - * @param int $startPointer - * @return int */ private function firstPointerBefore(int $pointer, array $pointersBeforeUseStatements, int $startPointer): int { diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/UseDoesNotStartWithBackslashSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/UseDoesNotStartWithBackslashSniff.php index 9fa223275..2aa181d5a 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/UseDoesNotStartWithBackslashSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/UseDoesNotStartWithBackslashSniff.php @@ -28,7 +28,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $usePointer */ public function process(File $phpcsFile, $usePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/UseFromSameNamespaceSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/UseFromSameNamespaceSniff.php index 108ad2cc2..cce0d906e 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/UseFromSameNamespaceSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/UseFromSameNamespaceSniff.php @@ -32,7 +32,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $usePointer */ public function process(File $phpcsFile, $usePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/UseOnlyWhitelistedNamespacesSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/UseOnlyWhitelistedNamespacesSniff.php index e8a8d8920..09b067474 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/UseOnlyWhitelistedNamespacesSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/UseOnlyWhitelistedNamespacesSniff.php @@ -36,7 +36,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $usePointer */ public function process(File $phpcsFile, $usePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/UseSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/UseSpacingSniff.php index 38f1d379b..883dfb1eb 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/UseSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/UseSpacingSniff.php @@ -49,7 +49,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $openTagPointer */ public function process(File $phpcsFile, $openTagPointer): void @@ -194,7 +193,6 @@ private function checkLinesAfterLastUse(File $phpcsFile, UseStatement $lastUse): } /** - * @param File $phpcsFile * @param UseStatement[] $useStatements */ private function checkLinesBetweenSameTypesOfUse(File $phpcsFile, array $useStatements): void @@ -269,7 +267,6 @@ private function checkLinesBetweenSameTypesOfUse(File $phpcsFile, array $useStat } /** - * @param File $phpcsFile * @param UseStatement[] $useStatements */ private function checkLinesBetweenDifferentTypesOfUse(File $phpcsFile, array $useStatements): void diff --git a/SlevomatCodingStandard/Sniffs/Namespaces/UselessAliasSniff.php b/SlevomatCodingStandard/Sniffs/Namespaces/UselessAliasSniff.php index aad88aa3a..0b34952ee 100644 --- a/SlevomatCodingStandard/Sniffs/Namespaces/UselessAliasSniff.php +++ b/SlevomatCodingStandard/Sniffs/Namespaces/UselessAliasSniff.php @@ -30,7 +30,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $openTagPointer */ public function process(File $phpcsFile, $openTagPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Numbers/DisallowNumericLiteralSeparatorSniff.php b/SlevomatCodingStandard/Sniffs/Numbers/DisallowNumericLiteralSeparatorSniff.php index 452f8bc58..76c0493bf 100644 --- a/SlevomatCodingStandard/Sniffs/Numbers/DisallowNumericLiteralSeparatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/Numbers/DisallowNumericLiteralSeparatorSniff.php @@ -27,7 +27,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $numberPointer */ public function process(File $phpcsFile, $numberPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Numbers/RequireNumericLiteralSeparatorSniff.php b/SlevomatCodingStandard/Sniffs/Numbers/RequireNumericLiteralSeparatorSniff.php index 834493b5a..7a1748975 100644 --- a/SlevomatCodingStandard/Sniffs/Numbers/RequireNumericLiteralSeparatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/Numbers/RequireNumericLiteralSeparatorSniff.php @@ -40,7 +40,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $numberPointer */ public function process(File $phpcsFile, $numberPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Operators/DisallowEqualOperatorsSniff.php b/SlevomatCodingStandard/Sniffs/Operators/DisallowEqualOperatorsSniff.php index 4294a01bd..11acc895a 100644 --- a/SlevomatCodingStandard/Sniffs/Operators/DisallowEqualOperatorsSniff.php +++ b/SlevomatCodingStandard/Sniffs/Operators/DisallowEqualOperatorsSniff.php @@ -27,7 +27,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $operatorPointer */ public function process(File $phpcsFile, $operatorPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Operators/DisallowIncrementAndDecrementOperatorsSniff.php b/SlevomatCodingStandard/Sniffs/Operators/DisallowIncrementAndDecrementOperatorsSniff.php index 27425b8ee..3d9d53966 100644 --- a/SlevomatCodingStandard/Sniffs/Operators/DisallowIncrementAndDecrementOperatorsSniff.php +++ b/SlevomatCodingStandard/Sniffs/Operators/DisallowIncrementAndDecrementOperatorsSniff.php @@ -30,7 +30,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $operatorPointer */ public function process(File $phpcsFile, $operatorPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Operators/NegationOperatorSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Operators/NegationOperatorSpacingSniff.php index 7a47adc5c..b0bdf48e9 100644 --- a/SlevomatCodingStandard/Sniffs/Operators/NegationOperatorSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Operators/NegationOperatorSpacingSniff.php @@ -49,7 +49,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): void diff --git a/SlevomatCodingStandard/Sniffs/Operators/RequireCombinedAssignmentOperatorSniff.php b/SlevomatCodingStandard/Sniffs/Operators/RequireCombinedAssignmentOperatorSniff.php index 36732f5bc..df309fc97 100644 --- a/SlevomatCodingStandard/Sniffs/Operators/RequireCombinedAssignmentOperatorSniff.php +++ b/SlevomatCodingStandard/Sniffs/Operators/RequireCombinedAssignmentOperatorSniff.php @@ -42,7 +42,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $equalPointer */ public function process(File $phpcsFile, $equalPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Operators/RequireOnlyStandaloneIncrementAndDecrementOperatorsSniff.php b/SlevomatCodingStandard/Sniffs/Operators/RequireOnlyStandaloneIncrementAndDecrementOperatorsSniff.php index 9f9acd1fd..9b66a3c28 100644 --- a/SlevomatCodingStandard/Sniffs/Operators/RequireOnlyStandaloneIncrementAndDecrementOperatorsSniff.php +++ b/SlevomatCodingStandard/Sniffs/Operators/RequireOnlyStandaloneIncrementAndDecrementOperatorsSniff.php @@ -40,7 +40,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $operatorPointer */ public function process(File $phpcsFile, $operatorPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Operators/SpreadOperatorSpacingSniff.php b/SlevomatCodingStandard/Sniffs/Operators/SpreadOperatorSpacingSniff.php index 0d0aae0b2..51f5af492 100644 --- a/SlevomatCodingStandard/Sniffs/Operators/SpreadOperatorSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/Operators/SpreadOperatorSpacingSniff.php @@ -32,7 +32,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $spreadOperatorPointer */ public function process(File $phpcsFile, $spreadOperatorPointer): void diff --git a/SlevomatCodingStandard/Sniffs/PHP/DisallowDirectMagicInvokeCallSniff.php b/SlevomatCodingStandard/Sniffs/PHP/DisallowDirectMagicInvokeCallSniff.php index 891742173..d76fd08b1 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/DisallowDirectMagicInvokeCallSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/DisallowDirectMagicInvokeCallSniff.php @@ -27,7 +27,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $stringPointer */ public function process(File $phpcsFile, $stringPointer): void diff --git a/SlevomatCodingStandard/Sniffs/PHP/DisallowReferenceSniff.php b/SlevomatCodingStandard/Sniffs/PHP/DisallowReferenceSniff.php index bc87f831d..31340396f 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/DisallowReferenceSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/DisallowReferenceSniff.php @@ -37,7 +37,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $referencePointer */ public function process(File $phpcsFile, $referencePointer): void diff --git a/SlevomatCodingStandard/Sniffs/PHP/ForbiddenClassesSniff.php b/SlevomatCodingStandard/Sniffs/PHP/ForbiddenClassesSniff.php index f76fe297c..d96e7fb10 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/ForbiddenClassesSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/ForbiddenClassesSniff.php @@ -84,7 +84,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $tokenPointer */ public function process(File $phpcsFile, $tokenPointer): void @@ -138,11 +137,8 @@ public function process(File $phpcsFile, $tokenPointer): void } /** - * @param File $phpcsFile - * @param int $tokenPointer * @param array{fullyQualifiedName: string, startPointer: int|null, endPointer: int|null}[] $references * @param array $forbiddenNames - * @param bool $isFixable */ private function checkReferences( File $phpcsFile, @@ -213,7 +209,6 @@ private function checkReferences( /** * @param array|int|string> $token - * @return bool */ private function isTraitsConflictResolutionToken(array $token): bool { @@ -221,9 +216,6 @@ private function isTraitsConflictResolutionToken(array $token): bool } /** - * @param File $phpcsFile - * @param int $startPointer - * @param int $endPointer * @return array{fullyQualifiedName: string, startPointer: int|null, endPointer: int|null}[] */ private function getAllReferences(File $phpcsFile, int $startPointer, int $endPointer): array diff --git a/SlevomatCodingStandard/Sniffs/PHP/OptimizedFunctionsWithoutUnpackingSniff.php b/SlevomatCodingStandard/Sniffs/PHP/OptimizedFunctionsWithoutUnpackingSniff.php index e48d6b096..c821fe40d 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/OptimizedFunctionsWithoutUnpackingSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/OptimizedFunctionsWithoutUnpackingSniff.php @@ -34,7 +34,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): void diff --git a/SlevomatCodingStandard/Sniffs/PHP/ReferenceSpacingSniff.php b/SlevomatCodingStandard/Sniffs/PHP/ReferenceSpacingSniff.php index a1ae3338c..2ae5fe0a8 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/ReferenceSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/ReferenceSpacingSniff.php @@ -42,7 +42,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $referencePointer */ public function process(File $phpcsFile, $referencePointer): void diff --git a/SlevomatCodingStandard/Sniffs/PHP/RequireExplicitAssertionSniff.php b/SlevomatCodingStandard/Sniffs/PHP/RequireExplicitAssertionSniff.php index 11290611a..75f53c52e 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/RequireExplicitAssertionSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/RequireExplicitAssertionSniff.php @@ -52,7 +52,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenPointer */ public function process(File $phpcsFile, $docCommentOpenPointer): void @@ -296,9 +295,7 @@ private function getNextSemicolonInSameScope(File $phpcsFile, int $scopePointer, } /** - * @param string $variableName * @param IdentifierTypeNode|ThisTypeNode|UnionTypeNode|IntersectionTypeNode $typeNode - * @return string */ private function createAssert(string $variableName, TypeNode $typeNode): string { @@ -319,7 +316,6 @@ private function createAssert(string $variableName, TypeNode $typeNode): string } /** - * @param string $variableName * @param IdentifierTypeNode|ThisTypeNode $typeNode * @return string[] */ diff --git a/SlevomatCodingStandard/Sniffs/PHP/RequireNowdocSniff.php b/SlevomatCodingStandard/Sniffs/PHP/RequireNowdocSniff.php index 6cea224a5..d7ee71937 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/RequireNowdocSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/RequireNowdocSniff.php @@ -28,7 +28,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $heredocStartPointer */ public function process(File $phpcsFile, $heredocStartPointer): void diff --git a/SlevomatCodingStandard/Sniffs/PHP/ShortListSniff.php b/SlevomatCodingStandard/Sniffs/PHP/ShortListSniff.php index 7fbacbb6a..44b7e55e7 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/ShortListSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/ShortListSniff.php @@ -23,7 +23,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): void diff --git a/SlevomatCodingStandard/Sniffs/PHP/TypeCastSniff.php b/SlevomatCodingStandard/Sniffs/PHP/TypeCastSniff.php index 738450b09..bbf702c60 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/TypeCastSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/TypeCastSniff.php @@ -48,7 +48,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): void diff --git a/SlevomatCodingStandard/Sniffs/PHP/UselessParenthesesSniff.php b/SlevomatCodingStandard/Sniffs/PHP/UselessParenthesesSniff.php index 0518d78fc..34b28cb9a 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/UselessParenthesesSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/UselessParenthesesSniff.php @@ -110,7 +110,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $parenthesisOpenerPointer */ public function process(File $phpcsFile, $parenthesisOpenerPointer): void diff --git a/SlevomatCodingStandard/Sniffs/PHP/UselessSemicolonSniff.php b/SlevomatCodingStandard/Sniffs/PHP/UselessSemicolonSniff.php index 1c9354bb8..df5d150ea 100644 --- a/SlevomatCodingStandard/Sniffs/PHP/UselessSemicolonSniff.php +++ b/SlevomatCodingStandard/Sniffs/PHP/UselessSemicolonSniff.php @@ -37,7 +37,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $semicolonPointer */ public function process(File $phpcsFile, $semicolonPointer): void diff --git a/SlevomatCodingStandard/Sniffs/TestCase.php b/SlevomatCodingStandard/Sniffs/TestCase.php index c8f7af826..dea3d24ad 100644 --- a/SlevomatCodingStandard/Sniffs/TestCase.php +++ b/SlevomatCodingStandard/Sniffs/TestCase.php @@ -29,11 +29,9 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase { /** - * @param string $filePath * @param (string|int|bool|array)[] $sniffProperties * @param string[] $codesToCheck * @param string[] $cliArgs - * @return File */ protected static function checkFile(string $filePath, array $sniffProperties = [], array $codesToCheck = [], array $cliArgs = []): File { @@ -164,9 +162,6 @@ private static function getSniffClassReflection(): ReflectionClass /** * @param (string|int)[][][] $errorsOnLine - * @param string $sniffCode - * @param string|null $message - * @return bool */ private static function hasError(array $errorsOnLine, string $sniffCode, ?string $message): bool { diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/DeclareStrictTypesSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/DeclareStrictTypesSniff.php index 31ca1a762..0d0db9bf9 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/DeclareStrictTypesSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/DeclareStrictTypesSniff.php @@ -52,7 +52,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $openTagPointer */ public function process(File $phpcsFile, $openTagPointer): void diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/DisallowArrayTypeHintSyntaxSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/DisallowArrayTypeHintSyntaxSniff.php index e394ae82d..22e0e4da6 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/DisallowArrayTypeHintSyntaxSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/DisallowArrayTypeHintSyntaxSniff.php @@ -52,7 +52,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenPointer */ public function process(File $phpcsFile, $docCommentOpenPointer): void @@ -140,7 +139,6 @@ public function process(File $phpcsFile, $docCommentOpenPointer): void } /** - * @param TypeNode $typeNode * @return ArrayTypeNode[] */ public function getArrayTypeNodes(TypeNode $typeNode): array @@ -177,9 +175,7 @@ private function fixArrayNode(TypeNode $node): TypeNode } /** - * @param ArrayTypeNode $arrayTypeNode * @param UnionTypeNode[] $unionTypeNodes - * @return UnionTypeNode|null */ private function findUnionTypeThatContainsArrayType(ArrayTypeNode $arrayTypeNode, array $unionTypeNodes): ?UnionTypeNode { diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/DisallowMixedTypeHintSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/DisallowMixedTypeHintSniff.php index 40c4c7889..73c27e8b8 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/DisallowMixedTypeHintSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/DisallowMixedTypeHintSniff.php @@ -31,7 +31,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenPointer */ public function process(File $phpcsFile, $docCommentOpenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/LongTypeHintsSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/LongTypeHintsSniff.php index f98a38d36..fcabc95ea 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/LongTypeHintsSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/LongTypeHintsSniff.php @@ -29,7 +29,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenPointer */ public function process(File $phpcsFile, $docCommentOpenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/NullTypeHintOnLastPositionSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/NullTypeHintOnLastPositionSniff.php index ba28d6dac..a3c4aa7b1 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/NullTypeHintOnLastPositionSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/NullTypeHintOnLastPositionSniff.php @@ -31,7 +31,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $docCommentOpenPointer */ public function process(File $phpcsFile, $docCommentOpenPointer): void diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/NullableTypeForNullDefaultValueSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/NullableTypeForNullDefaultValueSniff.php index 906900545..9d97cb1ea 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/NullableTypeForNullDefaultValueSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/NullableTypeForNullDefaultValueSniff.php @@ -37,7 +37,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/ParameterTypeHintSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/ParameterTypeHintSniff.php index 9abf4f028..c93e368c4 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/ParameterTypeHintSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/ParameterTypeHintSniff.php @@ -87,7 +87,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void @@ -120,8 +119,6 @@ public function process(File $phpcsFile, $functionPointer): void } /** - * @param File $phpcsFile - * @param int $functionPointer * @param (TypeHint|null)[] $parametersTypeHints * @param ParameterAnnotation[] $parametersAnnotations * @param ParameterAnnotation[] $prefixedParametersAnnotations @@ -380,8 +377,6 @@ private function checkTypeHints( } /** - * @param File $phpcsFile - * @param int $functionPointer * @param (TypeHint|null)[] $parametersTypeHints * @param ParameterAnnotation[] $parametersAnnotations * @param ParameterAnnotation[] $prefixedParametersAnnotations @@ -493,8 +488,6 @@ private function checkTraversableTypeHintSpecification( } /** - * @param File $phpcsFile - * @param int $functionPointer * @param (TypeHint|null)[] $parametersTypeHints * @param ParameterAnnotation[] $parametersAnnotations */ diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/ParameterTypeHintSpacingSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/ParameterTypeHintSpacingSniff.php index a24f1359c..34f57df16 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/ParameterTypeHintSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/ParameterTypeHintSpacingSniff.php @@ -34,7 +34,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/PropertyTypeHintSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/PropertyTypeHintSniff.php index 450ecf8eb..15ee4cdcc 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/PropertyTypeHintSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/PropertyTypeHintSniff.php @@ -92,7 +92,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $visibilityPointer */ public function process(File $phpcsFile, $visibilityPointer): void @@ -149,10 +148,6 @@ public function process(File $phpcsFile, $visibilityPointer): void } /** - * @param File $phpcsFile - * @param int $propertyPointer - * @param TypeHint|null $propertyTypeHint - * @param VariableAnnotation|null $propertyAnnotation * @param VariableAnnotation[] $prefixedPropertyAnnotations */ private function checkTypeHint( @@ -385,10 +380,6 @@ private function checkTypeHint( } /** - * @param File $phpcsFile - * @param int $propertyPointer - * @param TypeHint|null $propertyTypeHint - * @param VariableAnnotation|null $propertyAnnotation * @param VariableAnnotation[] $prefixedPropertyAnnotations */ private function checkTraversableTypeHintSpecification( @@ -623,8 +614,6 @@ private function hasTraversableTypeHint( } /** - * @param File $phpcsFile - * @param int $propertyPointer * @return VariableAnnotation[] */ private function getValidPrefixedAnnotations(File $phpcsFile, int $propertyPointer): array diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/PropertyTypeHintSpacingSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/PropertyTypeHintSpacingSniff.php index b9c4e2949..f8d2a4622 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/PropertyTypeHintSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/PropertyTypeHintSpacingSniff.php @@ -48,7 +48,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $visibilityPointer */ public function process(File $phpcsFile, $visibilityPointer): void diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/ReturnTypeHintSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/ReturnTypeHintSniff.php index 626d01335..6141bfa3f 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/ReturnTypeHintSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/ReturnTypeHintSniff.php @@ -90,7 +90,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): void @@ -130,10 +129,6 @@ public function process(File $phpcsFile, $pointer): void } /** - * @param File $phpcsFile - * @param int $functionPointer - * @param TypeHint|null $returnTypeHint - * @param ReturnAnnotation|null $returnAnnotation * @param ReturnAnnotation[] $prefixedReturnAnnotations */ private function checkFunctionTypeHint( @@ -408,10 +403,6 @@ private function checkFunctionTypeHint( } /** - * @param File $phpcsFile - * @param int $functionPointer - * @param TypeHint|null $returnTypeHint - * @param ReturnAnnotation|null $returnAnnotation * @param ReturnAnnotation[] $prefixedReturnAnnotations */ private function checkFunctionTraversableTypeHintSpecification( @@ -590,7 +581,6 @@ private function checkClosureTypeHint(File $phpcsFile, int $closurePointer): voi } /** - * @param ReturnAnnotation|null $returnAnnotation * @return GenericTypeNode|CallableTypeNode|IntersectionTypeNode|UnionTypeNode|ArrayTypeNode|ArrayShapeNode|IdentifierTypeNode|ThisTypeNode|NullableTypeNode|ConstTypeNode|ConditionalTypeNode|ConditionalTypeForParameterNode|null */ private function getReturnTypeNode(?ReturnAnnotation $returnAnnotation): ?TypeNode diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/ReturnTypeHintSpacingSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/ReturnTypeHintSpacingSniff.php index ee66ac3f4..41586351d 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/ReturnTypeHintSpacingSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/ReturnTypeHintSpacingSniff.php @@ -43,7 +43,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $functionPointer */ public function process(File $phpcsFile, $functionPointer): void diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/UnionTypeHintFormatSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/UnionTypeHintFormatSniff.php index fc194f9ee..468f2098d 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/UnionTypeHintFormatSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/UnionTypeHintFormatSniff.php @@ -62,7 +62,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $pointer */ public function process(File $phpcsFile, $pointer): void diff --git a/SlevomatCodingStandard/Sniffs/TypeHints/UselessConstantTypeHintSniff.php b/SlevomatCodingStandard/Sniffs/TypeHints/UselessConstantTypeHintSniff.php index 3c5e48708..361a11164 100644 --- a/SlevomatCodingStandard/Sniffs/TypeHints/UselessConstantTypeHintSniff.php +++ b/SlevomatCodingStandard/Sniffs/TypeHints/UselessConstantTypeHintSniff.php @@ -31,7 +31,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $constantPointer */ public function process(File $phpcsFile, $constantPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Variables/DisallowSuperGlobalVariableSniff.php b/SlevomatCodingStandard/Sniffs/Variables/DisallowSuperGlobalVariableSniff.php index d32162fff..716f749c2 100644 --- a/SlevomatCodingStandard/Sniffs/Variables/DisallowSuperGlobalVariableSniff.php +++ b/SlevomatCodingStandard/Sniffs/Variables/DisallowSuperGlobalVariableSniff.php @@ -36,7 +36,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $variablePointer */ public function process(File $phpcsFile, $variablePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Variables/DuplicateAssignmentToVariableSniff.php b/SlevomatCodingStandard/Sniffs/Variables/DuplicateAssignmentToVariableSniff.php index 364c78556..2e73d89ad 100644 --- a/SlevomatCodingStandard/Sniffs/Variables/DuplicateAssignmentToVariableSniff.php +++ b/SlevomatCodingStandard/Sniffs/Variables/DuplicateAssignmentToVariableSniff.php @@ -29,7 +29,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $assignmentPointer */ public function process(File $phpcsFile, $assignmentPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Variables/UnusedVariableSniff.php b/SlevomatCodingStandard/Sniffs/Variables/UnusedVariableSniff.php index 5748eed6a..6b678766d 100644 --- a/SlevomatCodingStandard/Sniffs/Variables/UnusedVariableSniff.php +++ b/SlevomatCodingStandard/Sniffs/Variables/UnusedVariableSniff.php @@ -82,7 +82,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $variablePointer */ public function process(File $phpcsFile, $variablePointer): void diff --git a/SlevomatCodingStandard/Sniffs/Variables/UselessVariableSniff.php b/SlevomatCodingStandard/Sniffs/Variables/UselessVariableSniff.php index 3e8061f87..7396e2c29 100644 --- a/SlevomatCodingStandard/Sniffs/Variables/UselessVariableSniff.php +++ b/SlevomatCodingStandard/Sniffs/Variables/UselessVariableSniff.php @@ -60,7 +60,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $returnPointer */ public function process(File $phpcsFile, $returnPointer): void diff --git a/SlevomatCodingStandard/Sniffs/Whitespaces/DuplicateSpacesSniff.php b/SlevomatCodingStandard/Sniffs/Whitespaces/DuplicateSpacesSniff.php index 750784751..783380f25 100644 --- a/SlevomatCodingStandard/Sniffs/Whitespaces/DuplicateSpacesSniff.php +++ b/SlevomatCodingStandard/Sniffs/Whitespaces/DuplicateSpacesSniff.php @@ -56,7 +56,6 @@ public function register(): array /** * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - * @param File $phpcsFile * @param int $whitespacePointer */ public function process(File $phpcsFile, $whitespacePointer): void diff --git a/build/PHPStan/GetTokenDynamicReturnTypeExtension.php b/build/PHPStan/GetTokenDynamicReturnTypeExtension.php index 510cfdb95..6af0371f1 100644 --- a/build/PHPStan/GetTokenDynamicReturnTypeExtension.php +++ b/build/PHPStan/GetTokenDynamicReturnTypeExtension.php @@ -34,10 +34,6 @@ public function isMethodSupported(MethodReflection $methodReflection): bool /** * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter - * @param MethodReflection $methodReflection - * @param MethodCall $methodCall - * @param Scope $scope - * @return Type */ public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type { diff --git a/build/phpcs.xml b/build/phpcs.xml index 589cc0af1..4441fcf43 100644 --- a/build/phpcs.xml +++ b/build/phpcs.xml @@ -115,34 +115,6 @@ - - - - - - - - - - - - - - - - - - Only 1 @return annotation is allowed in a function comment - - - Extra @param annotation - - - Function has no return statement, but annotation @return is present - - - @param annotation for parameter "%s" missing - @@ -474,14 +446,10 @@ - - - + - - - + diff --git a/tests/Helpers/ConditionHelperTest.php b/tests/Helpers/ConditionHelperTest.php index 2acf198af..8061eb36b 100644 --- a/tests/Helpers/ConditionHelperTest.php +++ b/tests/Helpers/ConditionHelperTest.php @@ -27,8 +27,6 @@ public function dataConditionReturnsBoolean(): array /** * @dataProvider dataConditionReturnsBoolean - * @param int $line - * @param bool $result */ public function testConditionReturnsBoolean(int $line, bool $result): void { diff --git a/tests/Helpers/FunctionHelperTest.php b/tests/Helpers/FunctionHelperTest.php index 4f6eebf67..f35257805 100644 --- a/tests/Helpers/FunctionHelperTest.php +++ b/tests/Helpers/FunctionHelperTest.php @@ -102,7 +102,6 @@ public function dataParametersNames(): array /** * @dataProvider dataParametersNames - * @param string $functionName * @param string[] $expectedParametersNames */ public function testParametersNames(string $functionName, array $expectedParametersNames): void @@ -226,7 +225,6 @@ public function dataParametersNullableTypeHints(): array /** * @dataProvider dataParametersTypeHints - * @param string $functionName * @param (TypeHint|null)[] $expectedParametersTypeHints */ public function testParametersTypeHints(string $functionName, array $expectedParametersTypeHints): void @@ -258,7 +256,6 @@ public function testParametersTypeHints(string $functionName, array $expectedPar /** * @dataProvider dataParametersNullableTypeHints - * @param string $functionName * @param (TypeHint|null)[] $expectedParametersTypeHints */ public function testParametersNullableTypeHints(string $functionName, array $expectedParametersTypeHints): void @@ -303,8 +300,6 @@ public function dataFunctionReturnsValueOrNot(): array /** * @dataProvider dataFunctionReturnsValueOrNot - * @param string $functionName - * @param bool $returnsValue */ public function testFunctionReturnsValueOrNot(string $functionName, bool $returnsValue): void { @@ -330,8 +325,6 @@ public function dataClosureReturnsValueOrNot(): array /** * @dataProvider dataClosureReturnsValueOrNot - * @param int $line - * @param bool $returnsValue */ public function testClosureReturnsValueOrNot(int $line, bool $returnsValue): void { diff --git a/tests/Helpers/NamespaceHelperTest.php b/tests/Helpers/NamespaceHelperTest.php index 0d84513b3..d4dcef5f3 100644 --- a/tests/Helpers/NamespaceHelperTest.php +++ b/tests/Helpers/NamespaceHelperTest.php @@ -23,7 +23,6 @@ public function dataIsFullyQualifiedName(): array /** * @dataProvider dataIsFullyQualifiedName - * @param string $typeName */ public function testIsFullyQualifiedName(string $typeName): void { @@ -32,7 +31,6 @@ public function testIsFullyQualifiedName(string $typeName): void /** * @dataProvider dataIsFullyQualifiedName - * @param string $typeName */ public function testGetFullyQualifiedTypeNameUnchanged(string $typeName): void { @@ -54,7 +52,6 @@ public function dataIsNotFullyQualifiedName(): array /** * @dataProvider dataIsNotFullyQualifiedName - * @param string $typeName */ public function testIsNotFullyQualifiedName(string $typeName): void { @@ -63,7 +60,6 @@ public function testIsNotFullyQualifiedName(string $typeName): void /** * @dataProvider dataIsNotFullyQualifiedName - * @param string $typeName */ public function testGetFullyQualifiedTypeNameChanged(string $typeName): void { @@ -88,7 +84,6 @@ public function dataHasNamespace(): array /** * @dataProvider dataHasNamespace - * @param string $typeName */ public function testHasNamespace(string $typeName): void { @@ -110,7 +105,6 @@ public function dataDoesNotHaveNamespace(): array /** * @dataProvider dataDoesNotHaveNamespace - * @param string $typeName */ public function testDoesNotHaveNamespace(string $typeName): void { @@ -144,7 +138,6 @@ public function dataGetNameParts(): array /** * @dataProvider dataGetNameParts - * @param string $namespace * @param string[] $parts */ public function testGetNameParts(string $namespace, array $parts): void @@ -231,8 +224,6 @@ public function dataGetUnqualifiedNameFromFullyQualifiedName(): array /** * @dataProvider dataGetUnqualifiedNameFromFullyQualifiedName - * @param string $unqualifiedName - * @param string $fullyQualifiedName */ public function testGetUnqualifiedNameFromFullyQualifiedName(string $unqualifiedName, string $fullyQualifiedName): void { @@ -253,7 +244,6 @@ public function dataIsQualifiedName(): array /** * @dataProvider dataIsQualifiedName - * @param string $name */ public function testIsQualifiedName(string $name): void { @@ -272,7 +262,6 @@ public function dataIsNotQualifiedName(): array /** * @dataProvider dataIsNotQualifiedName - * @param string $name */ public function testIsNotQualifiedName(string $name): void { @@ -306,8 +295,6 @@ public function dataNormalizeToCanonicalName(): array /** * @dataProvider dataNormalizeToCanonicalName - * @param string $normalizedName - * @param string $originalName */ public function testNormalizeToCanonicalName(string $normalizedName, string $originalName): void { @@ -341,8 +328,6 @@ public function dataTypeIsInNamespace(): array /** * @dataProvider dataTypeIsInNamespace - * @param string $typeName - * @param string $namespace */ public function testTypeIsInNamespace(string $typeName, string $namespace): void { @@ -384,8 +369,6 @@ public function dataTypeIsNotInNamespace(): array /** * @dataProvider dataTypeIsNotInNamespace - * @param string $typeName - * @param string $namespace */ public function testTypeIsNotInNamespace(string $typeName, string $namespace): void { diff --git a/tests/Helpers/PropertyHelperTest.php b/tests/Helpers/PropertyHelperTest.php index b377bfa32..8ead5b9a0 100644 --- a/tests/Helpers/PropertyHelperTest.php +++ b/tests/Helpers/PropertyHelperTest.php @@ -79,8 +79,6 @@ public function dataIsProperty(): array /** * @dataProvider dataIsProperty - * @param string $variableName - * @param bool $isProperty */ public function testIsProperty(string $variableName, bool $isProperty): void { @@ -156,9 +154,6 @@ public function dataFindTypeHint(): array /** * @dataProvider dataFindTypeHint - * @param string $propertyName - * @param string|null $typeHint - * @param bool|null $isNullable */ public function testFindTypeHint(string $propertyName, ?string $typeHint, ?bool $isNullable): void { diff --git a/tests/Helpers/SniffSettingsHelperTest.php b/tests/Helpers/SniffSettingsHelperTest.php index 8b652f543..e577480e2 100644 --- a/tests/Helpers/SniffSettingsHelperTest.php +++ b/tests/Helpers/SniffSettingsHelperTest.php @@ -65,8 +65,6 @@ public function testNormalizeAssociativeArrayWithIntegerKeys(): void /** * @dataProvider validRegularExpressionsProvider * @dataProvider invalidRegularExpressionsProvider - * @param string $expression - * @param bool $valid */ public function testIsValidRegularExpression(string $expression, bool $valid): void { diff --git a/tests/Helpers/StringHelperTest.php b/tests/Helpers/StringHelperTest.php index 17592ae6b..510614f92 100644 --- a/tests/Helpers/StringHelperTest.php +++ b/tests/Helpers/StringHelperTest.php @@ -28,8 +28,6 @@ public function dataStartsWith(): array /** * @dataProvider dataStartsWith - * @param string $haystack - * @param string $needle */ public function testStartsWith(string $haystack, string $needle): void { @@ -63,8 +61,6 @@ public function dataNotStartsWith(): array /** * @dataProvider dataNotStartsWith - * @param string $haystack - * @param string $needle */ public function testNotStartsWith(string $haystack, string $needle): void { @@ -94,8 +90,6 @@ public function dataEndsWith(): array /** * @dataProvider dataEndsWith - * @param string $haystack - * @param string $needle */ public function testEndsWith(string $haystack, string $needle): void { @@ -129,8 +123,6 @@ public function dataNotEndsWith(): array /** * @dataProvider dataNotEndsWith - * @param string $haystack - * @param string $needle */ public function testNotEndsWith(string $haystack, string $needle): void { diff --git a/tests/Helpers/SuppressHelperTest.php b/tests/Helpers/SuppressHelperTest.php index 5037a3736..ae13049a1 100644 --- a/tests/Helpers/SuppressHelperTest.php +++ b/tests/Helpers/SuppressHelperTest.php @@ -92,7 +92,6 @@ public function dataFunctionIsSuppressed(): array /** * @dataProvider dataFunctionIsSuppressed - * @param string $name */ public function testFunctionIsSuppressed(string $name): void { @@ -119,7 +118,6 @@ public function dataFunctionIsNotSuppressed(): array /** * @dataProvider dataFunctionIsNotSuppressed - * @param string $name */ public function testFunctionIsNotSuppressed(string $name): void { diff --git a/tests/Helpers/TestCase.php b/tests/Helpers/TestCase.php index 8d1d0d44a..2be448c2d 100644 --- a/tests/Helpers/TestCase.php +++ b/tests/Helpers/TestCase.php @@ -29,9 +29,6 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase /** * @param int|string $code - * @param int $line - * @param File $phpcsFile - * @param int|null $tokenPointer */ protected function assertTokenPointer($code, int $line, File $phpcsFile, ?int $tokenPointer = null): void { @@ -117,10 +114,7 @@ protected function findFunctionPointerByName(File $phpcsFile, string $name): ?in } /** - * @param File $phpcsFile - * @param int $line * @param int|string $tokenCode - * @return int|null */ protected function findPointerByLineAndType(File $phpcsFile, int $line, $tokenCode): ?int { @@ -160,7 +154,6 @@ protected function getCodeSnifferFile(string $filename): File /** * @param int|string $code - * @return string|null */ private function findTokenName($code): ?string { @@ -185,8 +178,6 @@ private function findTokenName($code): ?string } /** - * @param File $phpcsFile - * @param int|null $tokenPointer * @return mixed[] */ private function getTokenFromPointer(File $phpcsFile, ?int $tokenPointer = null): array diff --git a/tests/Helpers/TypeHelperTest.php b/tests/Helpers/TypeHelperTest.php index aedd9bd59..4d2829b76 100644 --- a/tests/Helpers/TypeHelperTest.php +++ b/tests/Helpers/TypeHelperTest.php @@ -27,7 +27,6 @@ public function dataValidTypeNames(): array /** * @dataProvider dataValidTypeNames - * @param string $typeName */ public function testValidTypeName(string $typeName): void { @@ -51,7 +50,6 @@ public function dataNotValidTypeNames(): array /** * @dataProvider dataNotValidTypeNames - * @param string $typeName */ public function testNotValidTypeName(string $typeName): void { diff --git a/tests/Helpers/TypeHintHelperTest.php b/tests/Helpers/TypeHintHelperTest.php index 0659e60d2..e0c2fa22b 100644 --- a/tests/Helpers/TypeHintHelperTest.php +++ b/tests/Helpers/TypeHintHelperTest.php @@ -36,8 +36,6 @@ public function dataIsSimpleTypeHint(): array /** * @dataProvider dataIsSimpleTypeHint - * @param string $typeHint - * @param bool $isSimple */ public function testIsSimpleTypeHint(string $typeHint, bool $isSimple): void { @@ -60,8 +58,6 @@ public function dataIsSimpleIterableTypeHint(): array /** * @dataProvider dataIsSimpleIterableTypeHint - * @param string $typeHint - * @param bool $isSimple */ public function testIsSimpleIterableTypeHint(string $typeHint, bool $isSimple): void { @@ -94,8 +90,6 @@ public function dataIsSimpleUnofficialTypeHint(): array /** * @dataProvider dataIsSimpleUnofficialTypeHint - * @param string $typeHint - * @param bool $isSimple */ public function testIsSimpleUnofficialTypeHint(string $typeHint, bool $isSimple): void { @@ -120,8 +114,6 @@ public function dataConvertLongSimpleTypeHintToShort(): array /** * @dataProvider dataConvertLongSimpleTypeHintToShort - * @param string $long - * @param string $short */ public function testConvertLongSimpleTypeHintToShort(string $long, string $short): void { @@ -332,8 +324,6 @@ public function dataIsTypeDefinedInAnnotation(): array /** * @dataProvider dataIsTypeDefinedInAnnotation - * @param string $typeHintName - * @param bool $isTemplate */ public function testIsTypeDefinedInAnnotation(string $typeHintName, bool $isTemplate): void { @@ -359,8 +349,6 @@ public function dataIsTypeDefinedInAnnotationWhenAnnotationIsInvalid(): array /** * @dataProvider dataIsTypeDefinedInAnnotationWhenAnnotationIsInvalid - * @param int $line - * @param string $type */ public function testIsTypeDefinedInAnnotationWhenAnnotationIsInvalid(int $line, string $type): void { diff --git a/tests/Sniffs/Files/FilepathNamespaceExtractorTest.php b/tests/Sniffs/Files/FilepathNamespaceExtractorTest.php index b5baad93e..15bd5906c 100644 --- a/tests/Sniffs/Files/FilepathNamespaceExtractorTest.php +++ b/tests/Sniffs/Files/FilepathNamespaceExtractorTest.php @@ -102,8 +102,6 @@ public function dataGetTypeNameFromProjectPath(): array /** * @dataProvider dataGetTypeNameFromProjectPath - * @param string $path - * @param string|null $expectedNamespace * @param string[] $extensions */ public function testGetTypeNameFromProjectPath(string $path, ?string $expectedNamespace, array $extensions): void diff --git a/tests/Sniffs/Namespaces/ReferenceUsedNamesOnlySniffTest.php b/tests/Sniffs/Namespaces/ReferenceUsedNamesOnlySniffTest.php index cfd58ab3c..be75a9f61 100644 --- a/tests/Sniffs/Namespaces/ReferenceUsedNamesOnlySniffTest.php +++ b/tests/Sniffs/Namespaces/ReferenceUsedNamesOnlySniffTest.php @@ -393,7 +393,6 @@ public function dataIgnoredNames(): array /** * @dataProvider dataIgnoredNames - * @param bool $allowFullyQualifiedExceptions * @param string[] $ignoredNames */ public function testIgnoredNames(bool $allowFullyQualifiedExceptions, array $ignoredNames): void @@ -442,7 +441,6 @@ public function dataIgnoredNamesInNamespace(): array /** * @dataProvider dataIgnoredNamesInNamespace - * @param bool $allowFullyQualifiedExceptions * @param string[] $ignoredNames */ public function testIgnoredNamesInNamespace(bool $allowFullyQualifiedExceptions, array $ignoredNames): void diff --git a/tests/Sniffs/TypeHints/DeclareStrictTypesSniffTest.php b/tests/Sniffs/TypeHints/DeclareStrictTypesSniffTest.php index 4e83f2e70..8e26ae9ee 100644 --- a/tests/Sniffs/TypeHints/DeclareStrictTypesSniffTest.php +++ b/tests/Sniffs/TypeHints/DeclareStrictTypesSniffTest.php @@ -42,8 +42,6 @@ public function dataDeclareStrictTypesMissing(): array /** * @dataProvider dataDeclareStrictTypesMissing - * @param string $file - * @param int $line */ public function testDeclareStrictTypesMissing(string $file, int $line): void { @@ -71,7 +69,6 @@ public function dataDeclareStrictTypesIncorrectFormat(): array /** * @dataProvider dataDeclareStrictTypesIncorrectFormat - * @param string $file */ public function testDeclareStrictTypesIncorrectFormat(string $file): void {