Passed
Pull Request — main (#277)
by Sebastian
08:30 queued 04:50
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/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/ConditionTest.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -144,16 +144,16 @@  discard block
 block discarded – undo
144 144
         $conditionConfig = new Config\Condition(
145 145
             'and',
146 146
             [[
147
-                 'exec' => '\\' . Any::class,
148
-                 'args' => [
149
-                     ['foo.php', 'bar.php']
150
-                 ]
151
-             ], [
152
-                 'exec' => '\\' . Any::class,
153
-                 'args' => [
154
-                     ['foo.php', 'bar.php']
155
-                 ]
156
-             ]]
147
+                    'exec' => '\\' . Any::class,
148
+                    'args' => [
149
+                        ['foo.php', 'bar.php']
150
+                    ]
151
+                ], [
152
+                    'exec' => '\\' . Any::class,
153
+                    'args' => [
154
+                        ['foo.php', 'bar.php']
155
+                    ]
156
+                ]]
157 157
         );
158 158
 
159 159
         $runner = new Condition($io, $repository, $this->createConfigMock(), 'post-checkout');
@@ -175,21 +175,21 @@  discard block
 block discarded – undo
175 175
         $conditionConfig = new Config\Condition(
176 176
             'or',
177 177
             [[
178
-                 'exec' => '\\' . FileStaged\All::class,
179
-                 'args' => [
180
-                     ['foo.php', 'bar.php']
181
-                 ]
182
-             ], [
183
-                 'exec' => '\\' . Any::class,
184
-                 'args' => [
185
-                     ['buz.php', 'bar.php']
186
-                 ]
187
-             ], [
188
-                 'exec' => '\\' . Any::class,
189
-                 'args' => [
190
-                     ['foo.php', 'bar.php']
191
-                 ]
192
-             ]]
178
+                    'exec' => '\\' . FileStaged\All::class,
179
+                    'args' => [
180
+                        ['foo.php', 'bar.php']
181
+                    ]
182
+                ], [
183
+                    'exec' => '\\' . Any::class,
184
+                    'args' => [
185
+                        ['buz.php', 'bar.php']
186
+                    ]
187
+                ], [
188
+                    'exec' => '\\' . Any::class,
189
+                    'args' => [
190
+                        ['foo.php', 'bar.php']
191
+                    ]
192
+                ]]
193 193
         );
194 194
 
195 195
         $runner = new Condition($io, $repository, $this->createConfigMock(), 'post-checkout');
Please login to merge, or discard this patch.
src/Console/Command/Hook.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@
 block discarded – undo
47 47
     {
48 48
         parent::configure();
49 49
         $this->setName('hook:' . $this->hookName)
50
-             ->setAliases([$this->hookName])
51
-             ->setDescription('Run git ' . $this->hookName . ' hook')
52
-             ->setHelp('This command executes the ' . $this->hookName . ' hook');
50
+                ->setAliases([$this->hookName])
51
+                ->setDescription('Run git ' . $this->hookName . ' hook')
52
+                ->setHelp('This command executes the ' . $this->hookName . ' hook');
53 53
 
54 54
         $this->addOption(
55 55
             'bootstrap',
Please login to merge, or discard this patch.
src/Hook/Template/Docker.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,10 +109,10 @@
 block discarded – undo
109 109
             $options    = substr($command, $endExec);
110 110
 
111 111
             $command     = trim($executable)
112
-                         . $this->createInteractiveOptions($options)
113
-                         . $this->createTTYOptions($options)
114
-                         . $this->createEnvOptions($options, $hook)
115
-                         . ' ' . trim($options);
112
+                            . $this->createInteractiveOptions($options)
113
+                            . $this->createTTYOptions($options)
114
+                            . $this->createEnvOptions($options, $hook)
115
+                            . ' ' . trim($options);
116 116
         }
117 117
         return $command;
118 118
     }
Please login to merge, or discard this patch.
src/Hook/Message/Rule/UseImperativeMood.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         parent::__construct();
32 32
 
33 33
         $this->hint = 'A commit message subject should always complete the following sentence.'  . PHP_EOL .
34
-                      'This commit will [YOUR COMMIT MESSAGE].';
34
+                        'This commit will [YOUR COMMIT MESSAGE].';
35 35
 
36 36
         $this->setSubjectBlacklist(
37 37
             [
Please login to merge, or discard this patch.