@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | { |
29 | 29 | $this->setupConfig(); |
30 | 30 | |
31 | - $this->app->singleton('command.phpcs.fix', function () { |
|
31 | + $this->app->singleton('command.phpcs.fix', function() { |
|
32 | 32 | return new PhpCsCommand(); |
33 | 33 | }); |
34 | 34 | |
35 | - $this->app->singleton('command.phpcs.install-hook', function () { |
|
35 | + $this->app->singleton('command.phpcs.install-hook', function() { |
|
36 | 36 | return new HookSetupCommand(); |
37 | 37 | }); |
38 | 38 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | { |
48 | 48 | $source = \dirname(__DIR__) . '/config/phpcs.php'; |
49 | 49 | if ($this->app instanceof LaravelApplication) { |
50 | - $this->publishes([$source => config_path('phpcs.php')]); |
|
50 | + $this->publishes([ $source => config_path('phpcs.php') ]); |
|
51 | 51 | } elseif ($this->app instanceof LumenApplication) { |
52 | 52 | $this->app->configure('phpcs'); |
53 | 53 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $process = new Process('cp ' . $hookFile . ' ' . $gitHooksPath . '/'); |
56 | 56 | $process->run(); |
57 | 57 | |
58 | - if (! $process->isSuccessful()) { |
|
58 | + if (!$process->isSuccessful()) { |
|
59 | 59 | throw new ProcessFailedException($process); |
60 | 60 | } |
61 | 61 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $process = new Process('chmod +x ' . $gitHooksPath . '/pre-commit'); |
73 | 73 | $process->run(); |
74 | 74 | |
75 | - if (! $process->isSuccessful()) { |
|
75 | + if (!$process->isSuccessful()) { |
|
76 | 76 | throw new ProcessFailedException($process); |
77 | 77 | } |
78 | 78 |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | { |
109 | 109 | $this->validateOptions(); |
110 | 110 | $resolver = $this->getResolver(); |
111 | - [$finder, $progressOutput] = $this->manageProgress($resolver); |
|
111 | + [ $finder, $progressOutput ] = $this->manageProgress($resolver); |
|
112 | 112 | $runner = $this->getRunner($finder, $resolver); |
113 | 113 | |
114 | 114 | $this->stopwatch->start('fixFiles'); |
@@ -120,8 +120,7 @@ discard block |
||
120 | 120 | $reportSummary = $this->createReport($changed, $fixEvent, $resolver); |
121 | 121 | |
122 | 122 | $this->getOutput()->isDecorated() ? |
123 | - $this->getOutput()->write($resolver->getReporter()->generate($reportSummary)) : |
|
124 | - $this->getOutput()->write( |
|
123 | + $this->getOutput()->write($resolver->getReporter()->generate($reportSummary)) : $this->getOutput()->write( |
|
125 | 124 | $resolver->getReporter()->generate($reportSummary), |
126 | 125 | false, |
127 | 126 | OutputInterface::OUTPUT_RAW |
@@ -317,6 +316,6 @@ discard block |
||
317 | 316 | ); |
318 | 317 | } |
319 | 318 | |
320 | - return [$finder, $progressOutput]; |
|
319 | + return [ $finder, $progressOutput ]; |
|
321 | 320 | } |
322 | 321 | } |