2424 *
2525 * @see \Symplify\PHPStanRules\Tests\ObjectCalisthenics\Rules\NoShortNameRule\NoShortNameRuleTest
2626 */
27- final class NoShortNameRule extends AbstractSymplifyRule implements ConfigurableRuleInterface
27+ final class NoShortNameRule extends AbstractSymplifyRule
2828{
2929 /**
3030 * @var string
@@ -38,7 +38,6 @@ final class NoShortNameRule extends AbstractSymplifyRule implements Configurable
3838 * @var string[]
3939 */
4040 private $ allowedShortNames = ['i ' , 'j ' , 'y ' , 'z ' ];
41-
4241 /**
4342 * @param string[] $allowedShortNames
4443 */
@@ -47,7 +46,6 @@ public function __construct(int $minNameLength, array $allowedShortNames = ['i',
4746 $ this ->minNameLength = $ minNameLength ;
4847 $ this ->allowedShortNames = $ allowedShortNames ;
4948 }
50-
5149 /**
5250 * @return array<class-string<Node>>
5351 */
@@ -63,7 +61,6 @@ public function getNodeTypes(): array
6361 Param::class,
6462 ];
6563 }
66-
6764 /**
6865 * @param ClassLike|Function_|ClassMethod|Const_|PropertyProperty|Variable|Param $node
6966 * @return array<int, string>
@@ -90,7 +87,6 @@ public function process(Node $node, Scope $scope): array
9087 $ errorMessage = sprintf (self ::ERROR_MESSAGE , $ name , $ this ->minNameLength );
9188 return [$ errorMessage ];
9289 }
93-
9490 public function getRuleDefinition (): RuleDefinition
9591 {
9692 return new RuleDefinition (self ::ERROR_MESSAGE , [
@@ -113,7 +109,6 @@ function isClass()
113109 ),
114110 ]);
115111 }
116-
117112 /**
118113 * @return string[]
119114 */
@@ -131,7 +126,6 @@ private function processVariable(Variable $variable): array
131126 $ errorMessage = sprintf (self ::ERROR_MESSAGE , $ variableName , $ this ->minNameLength );
132127 return [$ errorMessage ];
133128 }
134-
135129 private function isNameValid (string $ name ): bool
136130 {
137131 if (Strings::length ($ name ) >= $ this ->minNameLength ) {
0 commit comments