Passed
Branch master (3f5f60)
by noitran
04:15
created
Category
src/CsFixerServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Console/HookSetupCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Console/PhpCsCommand.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
317 316
             );
318 317
         }
319 318
 
320
-        return [$finder, $progressOutput];
319
+        return [ $finder, $progressOutput ];
321 320
     }
322 321
 }
Please login to merge, or discard this patch.