77use PhpCsFixer \AbstractFixer ;
88use PhpCsFixer \Fixer \ClassNotation \VisibilityRequiredFixer ;
99use PhpCsFixer \Fixer \ConfigurableFixerInterface ;
10- use PhpCsFixer \FixerConfiguration \AllowedValueSubset ;
11- use PhpCsFixer \FixerConfiguration \FixerConfigurationResolver ;
1210use PhpCsFixer \FixerConfiguration \FixerConfigurationResolverInterface ;
13- use PhpCsFixer \FixerConfiguration \FixerOptionBuilder ;
14- use PhpCsFixer \FixerDefinition \CodeSample ;
15- use PhpCsFixer \FixerDefinition \FixerDefinition ;
1611use PhpCsFixer \FixerDefinition \FixerDefinitionInterface ;
17- use PhpCsFixer \Tokenizer \CT ;
18- use PhpCsFixer \Tokenizer \Token ;
1912use PhpCsFixer \Tokenizer \Tokens ;
20- use PhpCsFixer \Tokenizer \TokensAnalyzer ;
2113use ReflectionMethod ;
2214use SplFileInfo ;
2315
@@ -46,13 +38,25 @@ public function getDefinition(): FixerDefinitionInterface
4638 }
4739
4840
49- public function configure (array $ configuration = null ): void
41+ public function getPriority (): int
42+ {
43+ return $ this ->visibilityRequiredFixer ->getPriority ();
44+ }
45+
46+
47+ public function configure (array $ configuration ): void
5048 {
5149 $ this ->configuration = $ configuration ;
5250 $ this ->visibilityRequiredFixer ->configure ($ configuration );
5351 }
5452
5553
54+ public function getConfigurationDefinition (): FixerConfigurationResolverInterface
55+ {
56+ return $ this ->visibilityRequiredFixer ->getConfigurationDefinition ();
57+ }
58+
59+
5660 protected function applyFix (SplFileInfo $ file , Tokens $ tokens ): void
5761 {
5862 /**
@@ -66,8 +70,8 @@ protected function applyFix(SplFileInfo $file, Tokens $tokens): void
6670 }
6771
6872
69- public function getName (): string
70- {
71- return 'Nette/ ' . parent ::getName ();
72- }
73+ public function getName (): string
74+ {
75+ return 'Nette/ ' . parent ::getName ();
76+ }
7377}
0 commit comments