Passed
Push — master ( 6808d6...958d04 )
by Sebastian
02:24
created
tests/CaptainHook/Composer/CmdTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $composer = $this->createComposerMock($extra);
130 130
         $event    = $this->getMockBuilder(Event::class)
131
-                         ->disableOriginalConstructor()
132
-                         ->getMock();
131
+                            ->disableOriginalConstructor()
132
+                            ->getMock();
133 133
 
134 134
         $event->expects($this->once())->method('getIO')->willReturn(new NullIO());
135 135
         $event->expects($this->once())->method('getComposer')->willReturn($composer);
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
         $package->expects($this->atLeast(1))->method('getExtra')->willReturn($extra);
152 152
 
153 153
         $composer = $this->getMockBuilder(Composer::class)
154
-                         ->disableOriginalConstructor()
155
-                         ->getMock();
154
+                            ->disableOriginalConstructor()
155
+                            ->getMock();
156 156
         $composer->expects($this->atLeast(1))->method('getPackage')->willReturn($package);
157 157
 
158 158
         return $composer;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      */
102 102
     public function testSetupNoConfig(): void
103 103
     {
104
-        $repo   = new DummyRepo(
104
+        $repo = new DummyRepo(
105 105
             [],
106 106
             [
107 107
                 'vendor' => [
Please login to merge, or discard this patch.
tests/CaptainHook/Console/IO/NullIOTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
             true,
111 111
             $io->askAndValidate(
112 112
                 'foo',
113
-                function () {
113
+                function() {
114 114
                     return true;
115 115
                 },
116 116
                 false,
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Application/CliTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $input = new ArrayInput(['--version' => true]);
28 28
         $output = $this->getMockBuilder(NullOutput::class)
29
-                       ->disableOriginalConstructor()
30
-                       ->getMock();
29
+                        ->disableOriginalConstructor()
30
+                        ->getMock();
31 31
 
32 32
         $output->expects($this->once())->method('writeLn');
33 33
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $input = new ArrayInput(['command' => 'list']);
48 48
         $output = $this->getMockBuilder(NullOutput::class)
49
-                       ->disableOriginalConstructor()
50
-                       ->getMock();
49
+                        ->disableOriginalConstructor()
50
+                        ->getMock();
51 51
 
52 52
         $output->expects($this->atLeastOnce())->method('write');
53 53
 
Please login to merge, or discard this patch.
tests/CaptainHook/Runner/InstallerTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@
 block discarded – undo
83 83
         $template = $this->createTemplateMock();
84 84
 
85 85
         $template->expects($this->once())
86
-                 ->method('getCode')
87
-                 ->with('pre-commit')
88
-                 ->willReturn('');
86
+                    ->method('getCode')
87
+                    ->with('pre-commit')
88
+                    ->willReturn('');
89 89
 
90 90
         $runner = new Installer($io, $config, $repo);
91 91
         $runner->setTemplate($template);
Please login to merge, or discard this patch.
tests/CaptainHook/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/CaptainHook/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/CaptainHook/Runner/Config/Setup/AdvancedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $config->expects($this->exactly(7))->method('getHookConfig')->willReturn($this->createHookConfigMock());
35 35
         $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', 'echo \'foo\'', 'n'));
36 36
 
37
-        $setup  = new Advanced($io);
37
+        $setup = new Advanced($io);
38 38
         $setup->configureHooks($config);
39 39
     }
40 40
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', '\\Foo\\Bar', 'y', 'n'));
52 52
         $io->expects($this->once())->method('askAndValidate')->willReturn('foo:bar');
53 53
 
54
-        $setup  = new Advanced($io);
54
+        $setup = new Advanced($io);
55 55
         $setup->configureHooks($config);
56 56
     }
57 57
 }
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
@@ -34,7 +34,7 @@
 block discarded – undo
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
 }
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
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $this->expectException(Exception::class);
25 25
 
26 26
         $path = realpath(CH_PATH_FILES . '/storage/invalid-xml.txt');
27
-        $file  = new Xml($path);
27
+        $file = new Xml($path);
28 28
         $file->read();
29 29
     }
30 30
 }
Please login to merge, or discard this patch.