Passed
Push — master ( de7969...0d30a7 )
by Sebastian
02:09
created
tests/CaptainHook/Runner/Config/Setup/ExpressTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $config->expects($this->exactly(2))->method('getHookConfig')->willReturn($this->createHookConfigMock());
35 35
         $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', 'y', 'phpunit', 'y', 'phpcs'));
36 36
 
37
-        $setup  = new Express($io);
37
+        $setup = new Express($io);
38 38
         $setup->configureHooks($config);
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
tests/CaptainHook/Storage/File/XmlTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $this->expectException(Exception::class);
25 25
 
26 26
         $path = realpath(CH_PATH_FILES . '/storage/invalid-xml.txt');
27
-        $file  = new Xml($path);
27
+        $file = new Xml($path);
28 28
         $file->read();
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/Hook/Message/Action/Beams.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
         $options = $action->getOptions();
44 44
         $book    = new RuleBook();
45 45
         $book->setRules(RuleBook\RuleSet::beams(
46
-            (int)  $options->get('subjectLength', 50),
47
-            (int)  $options->get('bodyLineLength', 72),
46
+            (int) $options->get('subjectLength', 50),
47
+            (int) $options->get('bodyLineLength', 72),
48 48
             (bool) $options->get('checkImperativeBeginningOnly', false)
49 49
         ));
50 50
 
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/DisableTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             ]
40 40
         );
41 41
 
42
-        $install  = new Disable($resolver);
42
+        $install = new Disable($resolver);
43 43
         $install->setIO(new NullIO());
44 44
         $install->run($input, $output);
45 45
     }
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/EnableTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             null,
56 56
             ['captainhook.json' => file_get_contents(CH_PATH_FILES . '/config/valid.json')]
57 57
         );
58
-        $input      = new ArrayInput([
58
+        $input = new ArrayInput([
59 59
             'hook'            => 'pre-push',
60 60
             '--configuration' => $fakeConfig->url() . '/captainhook.json',
61 61
         ]);
Please login to merge, or discard this patch.
src/Runner/Action/PHP.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         }
106 106
         ob_start();
107 107
         $class::$method();
108
-        return (string)ob_get_clean();
108
+        return (string) ob_get_clean();
109 109
     }
110 110
 
111 111
     /**
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     private function isStaticMethodCall(string $class): bool
136 136
     {
137
-        return (bool)preg_match('#^\\\\.+::.+$#i', $class);
137
+        return (bool) preg_match('#^\\\\.+::.+$#i', $class);
138 138
     }
139 139
 
140 140
     /**
Please login to merge, or discard this patch.
src/Runner/Installer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
         // callback to write bool true to all array entries
176 176
         // to make sure the user will be asked to confirm every hook installation
177 177
         // unless the user provided the force or skip option
178
-        $callback = function () {
178
+        $callback = function() {
179 179
             return true;
180 180
         };
181 181
         // if a specific hook is set the user chose it so don't ask for permission anymore
Please login to merge, or discard this patch.
src/Hook/Condition/FileChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
             $info = explode(' ', $stdIn[0]);
104 104
             // If we find a rewritten commit, we return the first commit before the rewritten one.
105 105
             // If we do not find any rewritten commits (awkward) we use the last ref-log position.
106
-            return isset($info[1]) ? $info[1] . '^' :  'HEAD@{1}';
106
+            return isset($info[1]) ? $info[1] . '^' : 'HEAD@{1}';
107 107
         }
108 108
         return $io->getArgument('previousHead', 'HEAD@{1}');
109 109
     }
Please login to merge, or discard this patch.
tests/CaptainHook/Runner/Config/Setup/AdvancedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $config->expects($this->exactly(9))->method('getHookConfig')->willReturn($this->createHookConfigMock());
35 35
         $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', 'echo \'foo\'', 'n'));
36 36
 
37
-        $setup  = new Advanced($io);
37
+        $setup = new Advanced($io);
38 38
         $setup->configureHooks($config);
39 39
     }
40 40
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', '\\Foo\\Bar', 'y', 'n'));
52 52
         $io->expects($this->once())->method('askAndValidate')->willReturn('foo:bar');
53 53
 
54
-        $setup  = new Advanced($io);
54
+        $setup = new Advanced($io);
55 55
         $setup->configureHooks($config);
56 56
     }
57 57
 }
Please login to merge, or discard this patch.