@@ -110,7 +110,7 @@ |
||
110 | 110 | true, |
111 | 111 | $io->askAndValidate( |
112 | 112 | 'foo', |
113 | - function () { |
|
113 | + function() { |
|
114 | 114 | return true; |
115 | 115 | }, |
116 | 116 | false, |
@@ -46,8 +46,8 @@ |
||
46 | 46 | public function getOutputMock() |
47 | 47 | { |
48 | 48 | return $this->getMockBuilder(OutputInterface::class) |
49 | - ->disableOriginalConstructor() |
|
50 | - ->getMock(); |
|
49 | + ->disableOriginalConstructor() |
|
50 | + ->getMock(); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $io = new DefaultIO($input, $output); |
247 | 247 | $io->askAndValidate( |
248 | 248 | 'foo', |
249 | - function () { |
|
249 | + function() { |
|
250 | 250 | return true; |
251 | 251 | } |
252 | 252 | ); |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | $io = new DefaultIO($input, $output, $helper); |
289 | 289 | $answer = $io->askAndValidate( |
290 | 290 | 'foo', |
291 | - function () { |
|
291 | + function() { |
|
292 | 292 | return true; |
293 | 293 | } |
294 | 294 | ); |
@@ -55,8 +55,8 @@ |
||
55 | 55 | ); |
56 | 56 | |
57 | 57 | $io = $this->getMockBuilder(DefaultIO::class) |
58 | - ->disableOriginalConstructor() |
|
59 | - ->getMock(); |
|
58 | + ->disableOriginalConstructor() |
|
59 | + ->getMock(); |
|
60 | 60 | $io->expects($this->once())->method('write'); |
61 | 61 | |
62 | 62 | $add->setIO($io); |
@@ -55,7 +55,7 @@ |
||
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 | ]); |
@@ -55,8 +55,8 @@ |
||
55 | 55 | ); |
56 | 56 | |
57 | 57 | $io = $this->getMockBuilder(DefaultIO::class) |
58 | - ->disableOriginalConstructor() |
|
59 | - ->getMock(); |
|
58 | + ->disableOriginalConstructor() |
|
59 | + ->getMock(); |
|
60 | 60 | |
61 | 61 | $io->method('ask')->will($this->onConsecutiveCalls('\\Foo\\Bar', 'n')); |
62 | 62 | $io->expects($this->once())->method('write'); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function testUninstallPreCommitHook(): void |
53 | 53 | { |
54 | - $repo = new DummyRepo([ |
|
54 | + $repo = new DummyRepo([ |
|
55 | 55 | 'config' => '# fake git config', |
56 | 56 | 'hooks' => [ |
57 | 57 | 'pre-commit' => '# fake pre-commit hook file', |
@@ -62,8 +62,8 @@ |
||
62 | 62 | ); |
63 | 63 | |
64 | 64 | $resolver = $this->getMockBuilder(Resolver::class) |
65 | - ->disableOriginalConstructor() |
|
66 | - ->getMock(); |
|
65 | + ->disableOriginalConstructor() |
|
66 | + ->getMock(); |
|
67 | 67 | $resolver->method('isPharRelease')->willReturn(true); |
68 | 68 | |
69 | 69 | $cmd = new PostCommit($resolver); |
@@ -214,7 +214,7 @@ |
||
214 | 214 | false, |
215 | 215 | ['run-path' => '/usr/local/bin/captainhook', 'verbosity' => 'debug'] |
216 | 216 | ); |
217 | - $json = $config->getJsonData(); |
|
217 | + $json = $config->getJsonData(); |
|
218 | 218 | |
219 | 219 | $this->assertIsArray($json); |
220 | 220 | $this->assertIsArray($json['config']); |
@@ -34,7 +34,7 @@ |
||
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 | } |