Skip to content

Commit 635fbc5

Browse files
authored
Merge pull request #5 from samsonasik/remove-unused-construct
Remove unnecessary parent::__construct()
2 parents 09eca0c + 376409d commit 635fbc5

File tree

2 files changed

+7
-31
lines changed

2 files changed

+7
-31
lines changed

rector.php

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
11
<?php
22

3-
use Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector;
4-
use Rector\CodingStyle\Rector\Closure\StaticClosureRector;
53
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
6-
use Rector\Set\ValueObject\SetList;
7-
use Rector\Set\ValueObject\LevelSetList;
84
use Rector\Config\RectorConfig;
95

10-
return static function (RectorConfig $rectorConfig): void {
11-
$rectorConfig->sets([
12-
SetList::CODING_STYLE,
13-
LevelSetList::UP_TO_PHP_81,
14-
SetList::CODE_QUALITY,
15-
SetList::TYPE_DECLARATION
16-
]);
17-
18-
$rectorConfig->paths([__DIR__ . '/src', __DIR__ . '/spec', __FILE__]);
19-
$rectorConfig->importNames();
20-
21-
$rectorConfig->skip([
6+
return RectorConfig::configure()
7+
->withPreparedSets(codingStyle: true, codeQuality: true, typeDeclarations: true)
8+
->withPhpSets(php81: true)
9+
->withPaths([__DIR__ . '/src', __DIR__ . '/spec'])
10+
->withRootFiles()
11+
->withImportNames(removeUnusedImports: true)
12+
->withSkip([
2213
NullToStrictStringFuncCallArgRector::class,
23-
StaticArrowFunctionRector::class => [
24-
__DIR__ . '/spec',
25-
],
26-
StaticClosureRector::class => [
27-
__DIR__ . '/spec',
28-
]
2914
]);
30-
};

src/Validator/Naming.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ final class Naming extends AbstractValidator
6868
self::DOT_TOBE_IN_LAST_WORD => '"." must be at last word character',
6969
];
7070

71-
/**
72-
* @param mixed[] $options
73-
*/
74-
public function __construct(array $options = [])
75-
{
76-
parent::__construct($options);
77-
}
78-
7971
/** @param string $value */
8072
public function isValid($value): bool
8173
{

0 commit comments

Comments
 (0)