7
7
use PhpCsFixer \AbstractFixer ;
8
8
use PhpCsFixer \Fixer \ClassNotation \VisibilityRequiredFixer ;
9
9
use PhpCsFixer \Fixer \ConfigurableFixerInterface ;
10
- use PhpCsFixer \FixerConfiguration \AllowedValueSubset ;
11
- use PhpCsFixer \FixerConfiguration \FixerConfigurationResolver ;
12
10
use PhpCsFixer \FixerConfiguration \FixerConfigurationResolverInterface ;
13
- use PhpCsFixer \FixerConfiguration \FixerOptionBuilder ;
14
- use PhpCsFixer \FixerDefinition \CodeSample ;
15
- use PhpCsFixer \FixerDefinition \FixerDefinition ;
16
11
use PhpCsFixer \FixerDefinition \FixerDefinitionInterface ;
17
- use PhpCsFixer \Tokenizer \CT ;
18
- use PhpCsFixer \Tokenizer \Token ;
19
12
use PhpCsFixer \Tokenizer \Tokens ;
20
- use PhpCsFixer \Tokenizer \TokensAnalyzer ;
21
13
use ReflectionMethod ;
22
14
use SplFileInfo ;
23
15
@@ -46,13 +38,25 @@ public function getDefinition(): FixerDefinitionInterface
46
38
}
47
39
48
40
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
50
48
{
51
49
$ this ->configuration = $ configuration ;
52
50
$ this ->visibilityRequiredFixer ->configure ($ configuration );
53
51
}
54
52
55
53
54
+ public function getConfigurationDefinition (): FixerConfigurationResolverInterface
55
+ {
56
+ return $ this ->visibilityRequiredFixer ->getConfigurationDefinition ();
57
+ }
58
+
59
+
56
60
protected function applyFix (SplFileInfo $ file , Tokens $ tokens ): void
57
61
{
58
62
/**
@@ -66,8 +70,8 @@ protected function applyFix(SplFileInfo $file, Tokens $tokens): void
66
70
}
67
71
68
72
69
- public function getName (): string
70
- {
71
- return 'Nette/ ' . parent ::getName ();
72
- }
73
+ public function getName (): string
74
+ {
75
+ return 'Nette/ ' . parent ::getName ();
76
+ }
73
77
}
0 commit comments