Passed
Push — master ( 32b0cc...a6662b )
by Sebastian
03:20
created
tests/CaptainHook/Config/Mockery.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
     public function createConfigMock(bool $loadedFromFile = false, string $path = ''): CHConfig
24 24
     {
25 25
         $config = $this->getMockBuilder(CHConfig::class)
26
-                       ->disableOriginalConstructor()
27
-                       ->getMock();
26
+                        ->disableOriginalConstructor()
27
+                        ->getMock();
28 28
 
29 29
         $config->method('isLoadedFromFile')->willReturn($loadedFromFile);
30 30
         $config->method('getPath')->willReturn($path);
Please login to merge, or discard this patch.
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/Mockery.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     public function createRepositoryMock(string $root = ''): Repository
26 26
     {
27 27
         $repo = $this->getMockBuilder(Repository::class)
28
-                     ->disableOriginalConstructor()
29
-                     ->getMock();
28
+                        ->disableOriginalConstructor()
29
+                        ->getMock();
30 30
 
31 31
         $repo->method('getRoot')->willReturn($root);
32 32
         $repo->method('getHooksDir')->willReturn($root . '/.git/hooks');
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     public function createGitInfoOperator(string $tag = 'v1.0.0'): Info
44 44
     {
45 45
         $operator = $this->getMockBuilder(Info::class)
46
-                         ->disableOriginalConstructor()
47
-                         ->getMock();
46
+                            ->disableOriginalConstructor()
47
+                            ->getMock();
48 48
 
49 49
         $operator->method('getCurrentTag')->willReturn($tag);
50 50
 
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     public function createGitDiffOperator(array $changedFiles = []): Diff
61 61
     {
62 62
         $operator = $this->getMockBuilder(Diff::class)
63
-                         ->disableOriginalConstructor()
64
-                         ->getMock();
63
+                            ->disableOriginalConstructor()
64
+                            ->getMock();
65 65
 
66 66
         $operator->method('getChangedFiles')->willReturn($changedFiles);
67 67
 
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     public function createGitIndexOperator(array $stagedFiles = []): Index
78 78
     {
79 79
         $operator = $this->getMockBuilder(Index::class)
80
-                         ->disableOriginalConstructor()
81
-                         ->getMock();
80
+                            ->disableOriginalConstructor()
81
+                            ->getMock();
82 82
 
83 83
         $operator->method('getStagedFiles')->willReturn($stagedFiles);
84 84
 
Please login to merge, or discard this patch.
tests/CaptainHook/Console/IO/DefaultIOTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
tests/CaptainHook/Console/IO/ComposerIOTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     public function setUp(): void
19 19
     {
20 20
         $mock = $this->getMockBuilder(IOInterface::class)
21
-                     ->disableOriginalConstructor()
22
-                     ->getMock();
21
+                        ->disableOriginalConstructor()
22
+                        ->getMock();
23 23
         $mock->method('isInteractive')->willReturn(false);
24 24
         $mock->method('isDebug')->willReturn(false);
25 25
         $mock->method('isVerbose')->willReturn(false);
Please login to merge, or discard this patch.
tests/CaptainHook/Console/IO/Mockery.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public function createIOMock(): IO
22 22
     {
23 23
         return $this->getMockBuilder(DefaultIO::class)
24
-                   ->disableOriginalConstructor()
25
-                   ->getMock();
24
+                    ->disableOriginalConstructor()
25
+                    ->getMock();
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/AddTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
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');
Please login to merge, or discard this 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/CreatorTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $config->expects($this->once())->method('isLoadedFromFile')->willReturn(true);
27 27
         $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', '\\Foo\\Bar', 'y', 'n'));
28 28
         $runner->advanced(true)
29
-               ->run();
29
+                ->run();
30 30
 
31 31
     }
32 32
 
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
         $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', '\\Foo\\Bar', 'y', 'n'));
45 45
         $io->expects($this->once())->method('askAndValidate')->willReturn('foo:bar');
46 46
         $runner->extend(true)
47
-               ->advanced(true)
48
-               ->run();
47
+                ->advanced(true)
48
+                ->run();
49 49
 
50 50
         $this->assertFileExists($path);
51 51
         unlink($path);
Please login to merge, or discard this patch.