Passed
Push — master ( a13ab8...ac8496 )
by Sebastian
01:35
created
tests/CaptainHook/Config/FactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/EnableTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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'
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/DisableTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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'
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/AddTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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'
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Application/HookTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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
     /**
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
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/CaptainHook/Runner/Config/Setup/ExpressTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/CaptainHook/Storage/UtilTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/CaptainHook/Storage/File/XmlTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.