@@ -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 | /** |
@@ -232,7 +232,7 @@ |
||
232 | 232 | $io = new DefaultIO($input, $output, $helper); |
233 | 233 | $answer = $io->askAndValidate( |
234 | 234 | 'foo', |
235 | - function () { |
|
235 | + function() { |
|
236 | 236 | return true; |
237 | 237 | } |
238 | 238 | ); |
@@ -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); |
@@ -39,7 +39,7 @@ |
||
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 | } |
@@ -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 | } |