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