Passed
Push — main ( 222c14...83f636 )
by Sebastian
10:37 queued 06:56
created
tests/unit/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/unit/Console/IO/ComposerIOTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     protected function setUp(): void
28 28
     {
29 29
         $mock = $this->getMockBuilder(IOInterface::class)
30
-                     ->disableOriginalConstructor()
31
-                     ->getMock();
30
+                        ->disableOriginalConstructor()
31
+                        ->getMock();
32 32
         $mock->method('isInteractive')->willReturn(false);
33 33
         $mock->method('isDebug')->willReturn(false);
34 34
         $mock->method('isVerbose')->willReturn(false);
Please login to merge, or discard this patch.
tests/unit/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/unit/Console/Command/DisableTest.php 1 patch
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
         $io->expects($this->once())->method('write');
61 61
 
62 62
         $add->setIO($io);
Please login to merge, or discard this patch.
tests/unit/Console/Command/AddTest.php 1 patch
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.
tests/unit/Console/Command/Hook/PostCommitTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/unit/Runner/Config/CreatorTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $runner = new Creator($io, $config);
40 40
         $runner->advanced(true)
41
-               ->run();
41
+                ->run();
42 42
     }
43 43
 
44 44
     /**
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
 
63 63
         $runner = new Creator($io, $config);
64 64
         $runner->extend(true)
65
-               ->advanced(true)
66
-               ->run();
65
+                ->advanced(true)
66
+                ->run();
67 67
 
68 68
         $configFileContentAfter = $configDir->getChild('captainhook.json')->getContent();
69 69
         $this->assertFileExists($configFile);
Please login to merge, or discard this patch.
tests/unit/Runner/Config/EditorTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
 
39 39
         $runner = new Editor($io, $config);
40 40
         $runner->setHook('foo')
41
-               ->setChange('EnableHook')
42
-               ->run();
41
+                ->setChange('EnableHook')
42
+                ->run();
43 43
     }
44 44
 
45 45
     /**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
         $runner = new Editor($io, $config);
57 57
         $runner->setChange('EnableHook')
58
-               ->run();
58
+                ->run();
59 59
     }
60 60
 
61 61
     /**
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         $runner = new Editor($io, $config);
75 75
         $runner->setHook('pre-commit')
76
-               ->run();
76
+                ->run();
77 77
     }
78 78
 
79 79
     /**
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
 
92 92
         $runner = new Editor($io, $config);
93 93
         $runner->setChange('InvalidChange')
94
-               ->setHook('pre-commit')
95
-               ->run();
94
+                ->setHook('pre-commit')
95
+                ->run();
96 96
     }
97 97
 
98 98
     /**
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $runner = new Editor($io, $config);
112 112
         $runner->setChange('EnableHook')
113
-               ->run();
113
+                ->run();
114 114
     }
115 115
 
116 116
     /**
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
         $runner = new Editor($io, $config);
130 130
         $runner->setHook('pre-commit')
131
-               ->run();
131
+                ->run();
132 132
     }
133 133
 
134 134
     /**
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
 
147 147
         $runner = new Editor($io, $config);
148 148
         $runner->setChange('AddAction')
149
-               ->setHook('pre-commit')
150
-               ->run();
149
+                ->setHook('pre-commit')
150
+                ->run();
151 151
     }
152 152
 
153 153
     /**
@@ -165,8 +165,8 @@  discard block
 block discarded – undo
165 165
 
166 166
         $runner = new Creator($io, $config);
167 167
         $runner->extend(true)
168
-               ->advanced(true)
169
-               ->run();
168
+                ->advanced(true)
169
+                ->run();
170 170
 
171 171
         $this->assertFileExists($configDir->url() . '/captainhook.json');
172 172
     }
Please login to merge, or discard this patch.
tests/unit/Runner/UninstallerTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
 
149 149
         $runner = new Uninstaller($io, $config, $repo);
150 150
         $runner->setHook('post-merge')
151
-               ->setMoveExistingTo('foo/bar/')
152
-               ->run();
151
+                ->setMoveExistingTo('foo/bar/')
152
+                ->run();
153 153
 
154 154
         $this->assertFileDoesNotExist($fakeRepo->getHookDir() . '/post-merge');
155 155
         $this->assertFileExists($fakeRepo->getRoot() . '/foo/bar/post-merge');
@@ -183,8 +183,8 @@  discard block
 block discarded – undo
183 183
 
184 184
         $runner = new Uninstaller($io, $config, $repo);
185 185
         $runner->setHook('pre-commit')
186
-               ->setMoveExistingTo('foo')
187
-               ->run();
186
+                ->setMoveExistingTo('foo')
187
+                ->run();
188 188
     }
189 189
 
190 190
     /**
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
 
216 216
         $runner = new Uninstaller($io, $config, $repo);
217 217
         $runner->setHook('pre-commit')
218
-               ->setMoveExistingTo($virtualFs->url() . '/foo/bar')
219
-               ->run();
218
+                ->setMoveExistingTo($virtualFs->url() . '/foo/bar')
219
+                ->run();
220 220
 
221 221
         $this->assertFileDoesNotExist($fakeRepo->getHookDir() . '/pre-commit');
222 222
         $this->assertFileExists($fakeRepo->getRoot() . '/foo/bar/pre-commit');
Please login to merge, or discard this patch.