@@ -71,7 +71,7 @@ |
||
71 | 71 | public function testCreateWithAllSetting() : void |
72 | 72 | { |
73 | 73 | $path = realpath(__DIR__ . '/../../files/config/valid-with-all-settings.json'); |
74 | - $gitDir = \dirname($path) .DIRECTORY_SEPARATOR . '../../../.git'; |
|
74 | + $gitDir = \dirname($path) . DIRECTORY_SEPARATOR . '../../../.git'; |
|
75 | 75 | $config = Factory::create($path); |
76 | 76 | |
77 | 77 | $this->assertTrue($config->getHookConfig('pre-commit')->isEnabled()); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $this->expectException(\Exception::class); |
26 | 26 | |
27 | - $input = new ArrayInput( |
|
27 | + $input = new ArrayInput( |
|
28 | 28 | [ |
29 | 29 | 'hook' => 'pre-commit', |
30 | 30 | '--configuration' => 'foo' |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $this->expectException(\Exception::class); |
26 | 26 | |
27 | - $input = new ArrayInput( |
|
27 | + $input = new ArrayInput( |
|
28 | 28 | [ |
29 | 29 | 'hook' => 'pre-commit', |
30 | 30 | '--configuration' => 'foo' |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $this->expectException(\Exception::class); |
26 | 26 | |
27 | - $input = new ArrayInput( |
|
27 | + $input = new ArrayInput( |
|
28 | 28 | [ |
29 | 29 | 'hook' => 'pre-commit', |
30 | 30 | '--configuration' => 'foo' |
@@ -87,7 +87,7 @@ |
||
87 | 87 | { |
88 | 88 | $app = new Hook(); |
89 | 89 | |
90 | - $this->assertEquals(getcwd() . DIRECTORY_SEPARATOR . CH::CONFIG, $app->getConfigFile()); |
|
90 | + $this->assertEquals(getcwd() . DIRECTORY_SEPARATOR . CH::CONFIG, $app->getConfigFile()); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $config->expects($this->exactly(7))->method('getHookConfig')->willReturn($this->getHookConfigMock()); |
24 | 24 | $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', 'echo \'foo\'', 'n')); |
25 | 25 | |
26 | - $setup = new Advanced($io); |
|
26 | + $setup = new Advanced($io); |
|
27 | 27 | $setup->configureHooks($config); |
28 | 28 | } |
29 | 29 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', '\\Foo\\Bar', 'y', 'n')); |
39 | 39 | $io->expects($this->once())->method('askAndValidate')->willReturn('foo:bar'); |
40 | 40 | |
41 | - $setup = new Advanced($io); |
|
41 | + $setup = new Advanced($io); |
|
42 | 42 | $setup->configureHooks($config); |
43 | 43 | } |
44 | 44 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $config->expects($this->exactly(2))->method('getHookConfig')->willReturn($this->getHookConfigMock()); |
24 | 24 | $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', 'y', 'phpunit', 'y', 'phpcs')); |
25 | 25 | |
26 | - $setup = new Express($io); |
|
26 | + $setup = new Express($io); |
|
27 | 27 | $setup->configureHooks($config); |
28 | 28 | } |
29 | 29 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | */ |
72 | 72 | public function testGetSubPathOf(): void |
73 | 73 | { |
74 | - $this->assertEquals(['baz'], Util::getSubPathOf(['foo', 'bar', 'baz'],['foo', 'bar'])); |
|
74 | + $this->assertEquals(['baz'], Util::getSubPathOf(['foo', 'bar', 'baz'], ['foo', 'bar'])); |
|
75 | 75 | $this->assertEquals(['baz', 'buz'], Util::getSubPathOf(['foo', 'bar', 'baz', 'buz'], ['foo', 'bar'])); |
76 | 76 | } |
77 | 77 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $this->expectException(\Exception::class); |
22 | 22 | |
23 | 23 | $path = realpath(CH_PATH_FILES . '/storage/invalid-xml.txt'); |
24 | - $file = new Xml($path); |
|
24 | + $file = new Xml($path); |
|
25 | 25 | $file->read(); |
26 | 26 | } |
27 | 27 | } |