@@ 49-58 (lines=10) @@ | ||
46 | // todo FixerApplication |
|
47 | } |
|
48 | ||
49 | private function createPhp7CodeSnifferRunApplicationCommand(RunApplicationCommand $command) : Php7CodeSnifferRunApplicationCommand |
|
50 | { |
|
51 | return new Php7CodeSnifferRunApplicationCommand( |
|
52 | $command->getSource(), |
|
53 | $command->getJsonConfiguration()['standards'] ?? [], |
|
54 | $command->getJsonConfiguration()['sniffs'] ?? [], |
|
55 | $command->getJsonConfiguration()['exclude-sniffs'] ?? [], |
|
56 | $command->isFixer() |
|
57 | ); |
|
58 | } |
|
59 | ||
60 | private function createPhpCsFixerRunApplicationCommand(RunApplicationCommand $command) : PhpCsFixerRunApplicationCommand |
|
61 | { |
|
@@ 60-69 (lines=10) @@ | ||
57 | ); |
|
58 | } |
|
59 | ||
60 | private function createPhpCsFixerRunApplicationCommand(RunApplicationCommand $command) : PhpCsFixerRunApplicationCommand |
|
61 | { |
|
62 | return new PhpCsFixerRunApplicationCommand( |
|
63 | $command->getSource(), |
|
64 | $command->getJsonConfiguration()['fixer-levels'] ?? [], |
|
65 | $command->getJsonConfiguration()['fixers'] ?? [], |
|
66 | $command->getJsonConfiguration()['exclude-fixers'] ?? [], |
|
67 | $command->isFixer() |
|
68 | ); |
|
69 | } |
|
70 | } |
|
71 |