@@ -103,7 +103,7 @@ |
||
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 | } |
@@ -48,8 +48,8 @@ discard block |
||
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 |
||
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 |
@@ -34,7 +34,7 @@ discard block |
||
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 |
||
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 | } |
@@ -247,7 +247,7 @@ |
||
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 | ); |