Passed
Push — master ( 69774c...de7969 )
by Sebastian
02:46
created
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/Hook/PostRewriteTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 
49 49
         // the config wll return the actually called config and then the virtual hook config
50 50
         $config->expects($this->exactly(2))
51
-               ->method('getHookConfig')
52
-               ->willReturnOnConsecutiveCalls($hookConfig, $vHookConfig);
51
+                ->method('getHookConfig')
52
+                ->willReturnOnConsecutiveCalls($hookConfig, $vHookConfig);
53 53
 
54 54
         $io->expects($this->atLeast(1))->method('write');
55 55
 
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
 
82 82
         // the config wll return the actually called config and then the virtual hook config
83 83
         $config->expects($this->exactly(2))
84
-               ->method('getHookConfig')
85
-               ->willReturnOnConsecutiveCalls($hookConfig, $vHookConfig);
84
+                ->method('getHookConfig')
85
+                ->willReturnOnConsecutiveCalls($hookConfig, $vHookConfig);
86 86
 
87 87
         $io->expects($this->atLeast(1))->method('write');
88 88
 
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.
tests/CaptainHook/Console/IO/DefaultIOTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
         $io     = new DefaultIO($this->fakeStdIn(), $input, $output, $helper);
248 248
         $answer = $io->askAndValidate(
249 249
             'foo',
250
-            function () {
250
+            function() {
251 251
                 return true;
252 252
             }
253 253
         );
Please login to merge, or discard this patch.