Passed
Push — main ( 222c14...83f636 )
by Sebastian
10:37 queued 06:56
created
tests/unit/Console/Command/DisableTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             ]
40 40
         );
41 41
 
42
-        $install  = new Disable($resolver);
42
+        $install = new Disable($resolver);
43 43
         $install->setIO(new NullIO());
44 44
         $install->run($input, $output);
45 45
     }
Please login to merge, or discard this patch.
tests/unit/Console/Command/EnableTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             null,
56 56
             ['captainhook.json' => file_get_contents(CH_PATH_FILES . '/config/valid.json')]
57 57
         );
58
-        $input      = new ArrayInput([
58
+        $input = new ArrayInput([
59 59
             'hook'            => 'pre-push',
60 60
             '--configuration' => $fakeConfig->url() . '/captainhook.json',
61 61
         ]);
Please login to merge, or discard this patch.
tests/unit/Console/Command/UninstallTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function testUninstallPreCommitHook(): void
53 53
     {
54
-        $repo   = new DummyRepo([
54
+        $repo = new DummyRepo([
55 55
             'config' => '# fake git config',
56 56
             'hooks'  => [
57 57
                 'pre-commit' => '# fake pre-commit hook file',
Please login to merge, or discard this patch.
tests/unit/ConfigTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
             false,
215 215
             ['run-path' => '/usr/local/bin/captainhook', 'verbosity' => 'debug']
216 216
         );
217
-        $json   = $config->getJsonData();
217
+        $json = $config->getJsonData();
218 218
 
219 219
         $this->assertIsArray($json);
220 220
         $this->assertIsArray($json['config']);
Please login to merge, or discard this patch.
tests/unit/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/unit/Runner/Config/Setup/AdvancedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             )
39 39
         );
40 40
 
41
-        $setup  = new Advanced($io);
41
+        $setup = new Advanced($io);
42 42
         $setup->configureHooks($config);
43 43
     }
44 44
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         );
60 60
         $io->expects($this->once())->method('askAndValidate')->willReturn('foo:bar');
61 61
 
62
-        $setup  = new Advanced($io);
62
+        $setup = new Advanced($io);
63 63
         $setup->configureHooks($config);
64 64
     }
65 65
 }
Please login to merge, or discard this patch.
tests/unit/Hook/Message/Action/RegexTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $io     = new NullIO();
79 79
         $config = new Config(CH_PATH_FILES . '/captainhook.json');
80
-        $repo    = $this->createRepositoryMock();
80
+        $repo = $this->createRepositoryMock();
81 81
         $action = new Config\Action(Regex::class);
82 82
 
83 83
         $standard = new Regex();
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 'error' => 'No match for %s'
120 120
             ]
121 121
         );
122
-        $repo   = $this->createRepositoryMock();
122
+        $repo = $this->createRepositoryMock();
123 123
         $repo->expects($this->once())->method('getCommitMsg')->willReturn(new CommitMessage('Foo bar baz'));
124 124
 
125 125
         $standard = new Regex();
Please login to merge, or discard this patch.
tests/unit/Hook/Branch/Action/EnsureNamingTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $this->createGitInfoOperator('', 'Foo bar baz')
50 50
         );
51 51
 
52
-        $action  = new Config\Action(EnsureNaming::class, ['regex' => '#bar#']);
52
+        $action = new Config\Action(EnsureNaming::class, ['regex' => '#bar#']);
53 53
 
54 54
         $standard = new EnsureNaming();
55 55
         $standard->execute($config, $io, $repo, $action);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $repo->expects($this->once())->method('getInfoOperator')->willReturn(
75 75
             $this->createGitInfoOperator('', 'Foo bar baz')
76 76
         );
77
-        $action  = new Config\Action(
77
+        $action = new Config\Action(
78 78
             EnsureNaming::class,
79 79
             [
80 80
                 'regex'   => '#.*#',
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
         $io     = new NullIO();
101 101
         $config = new Config(CH_PATH_FILES . '/captainhook.json');
102
-        $repo    = $this->createRepositoryMock();
102
+        $repo = $this->createRepositoryMock();
103 103
         $action = new Config\Action(EnsureNaming::class);
104 104
 
105 105
         $standard = new EnsureNaming();
Please login to merge, or discard this patch.
tests/unit/Hook/File/Action/IsEmptyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         $io     = new NullIO();
104 104
         $config = new Config(CH_PATH_FILES . '/captainhook.json');
105 105
         $action = new Config\Action(IsEmpty::class, ['files' => [
106
-            CH_PATH_FILES . '/doesNotExist.txt',  // pass
106
+            CH_PATH_FILES . '/doesNotExist.txt', // pass
107 107
             CH_PATH_FILES . '/storage/empty.log', // pass
108 108
             CH_PATH_FILES . '/storage/test.json', // fail
109 109
         ]]);
Please login to merge, or discard this patch.