Passed
Push — main ( 30caf2...604bfc )
by Sebastian
07:35 queued 03:41
created
src/Console/Command/Configuration.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
     {
38 38
         parent::configure();
39 39
         $this->setName('configure')
40
-             ->setDescription('Create or update a captainhook.json configuration')
41
-             ->setHelp('Create or update a captainhook.json configuration')
42
-             ->addOption('extend', 'e', InputOption::VALUE_NONE, 'Extend existing configuration file')
43
-             ->addOption('force', 'f', InputOption::VALUE_NONE, 'Overwrite existing configuration file')
44
-             ->addOption('advanced', 'a', InputOption::VALUE_NONE, 'More options, but more to type')
45
-             ->addOption(
46
-                 'bootstrap',
47
-                 null,
48
-                 InputOption::VALUE_OPTIONAL,
49
-                 'Path to composers vendor/autoload.php'
50
-             );
40
+                ->setDescription('Create or update a captainhook.json configuration')
41
+                ->setHelp('Create or update a captainhook.json configuration')
42
+                ->addOption('extend', 'e', InputOption::VALUE_NONE, 'Extend existing configuration file')
43
+                ->addOption('force', 'f', InputOption::VALUE_NONE, 'Overwrite existing configuration file')
44
+                ->addOption('advanced', 'a', InputOption::VALUE_NONE, 'More options, but more to type')
45
+                ->addOption(
46
+                    'bootstrap',
47
+                    null,
48
+                    InputOption::VALUE_OPTIONAL,
49
+                    'Path to composers vendor/autoload.php'
50
+                );
51 51
     }
52 52
 
53 53
     /**
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
 
66 66
         $configurator = new Creator($io, $config);
67 67
         $configurator->force(IOUtil::argToBool($input->getOption('force')))
68
-                     ->extend(IOUtil::argToBool($input->getOption('extend')))
69
-                     ->advanced(IOUtil::argToBool($input->getOption('advanced')))
70
-                     ->setExecutable($this->resolver->getExecutable())
71
-                     ->run();
68
+                        ->extend(IOUtil::argToBool($input->getOption('extend')))
69
+                        ->advanced(IOUtil::argToBool($input->getOption('advanced')))
70
+                        ->setExecutable($this->resolver->getExecutable())
71
+                        ->run();
72 72
         return 0;
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
src/Runner/Action/Cli/Command/Placeholder/ChangedFiles.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@
 block discarded – undo
42 42
         foreach (Git\Range\Detector::getRanges($this->io) as $range) {
43 43
             $filesInDiff  = isset($options['of-type'])
44 44
                           ? $this->repository->getDiffOperator()->getChangedFilesOfType(
45
-                              $range->from()->id(),
46
-                              $range->to()->id(),
47
-                              $options['of-type']
48
-                          )
45
+                                $range->from()->id(),
46
+                                $range->to()->id(),
47
+                                $options['of-type']
48
+                            )
49 49
                           : $this->repository->getDiffOperator()->getChangedFiles(
50
-                              $range->from()->id(),
51
-                              $range->to()->id()
52
-                          );
50
+                                $range->from()->id(),
51
+                                $range->to()->id()
52
+                            );
53 53
 
54 54
             $files = array_merge($files, $filesInDiff);
55 55
         }
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.
src/Hook/File/Action/DoesNotContainRegex.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
     protected function errorDetails(string $file): string
123 123
     {
124 124
         return ' <comment>('
125
-               . $this->fileMatches[$file] . ' match'
126
-               . ($this->fileMatches[$file] > 1 ? 'es' : '')
127
-               . ')</comment>';
125
+                . $this->fileMatches[$file] . ' match'
126
+                . ($this->fileMatches[$file] > 1 ? 'es' : '')
127
+                . ')</comment>';
128 128
     }
129 129
 
130 130
     /**
@@ -136,10 +136,10 @@  discard block
 block discarded – undo
136 136
     protected function errorMessage(int $filesFailed): string
137 137
     {
138 138
         return 'Regex \'' . $this->regexName . '\' failed: '
139
-               . 'found ' . $this->totalMatches . ' match'
140
-               . ($this->totalMatches > 1 ? 'es' : '')
141
-               . ' in ' . $filesFailed . ' file'
142
-               . ($filesFailed > 1 ? 's' : '' );
139
+                . 'found ' . $this->totalMatches . ' match'
140
+                . ($this->totalMatches > 1 ? 'es' : '')
141
+                . ' in ' . $filesFailed . ' file'
142
+                . ($filesFailed > 1 ? 's' : '' );
143 143
     }
144 144
 
145 145
     /**
Please login to merge, or discard this patch.
tests/unit/Runner/Hook/PreCommitTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 
79 79
         // every action has to get executed
80 80
         $actionConfigFail->expects($this->atLeastOnce())
81
-                         ->method('getAction')
82
-                         ->willReturn(CH_PATH_FILES . '/bin/failure');
81
+                            ->method('getAction')
82
+                            ->willReturn(CH_PATH_FILES . '/bin/failure');
83 83
 
84 84
         // so even if the first actions fails this action has to get executed
85 85
         $actionConfigSuccess->expects($this->atLeastOnce())
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
 
89 89
         $hookConfig->method('isEnabled')->willReturn(true);
90 90
         $hookConfig->expects($this->once())
91
-                   ->method('getActions')
92
-                   ->willReturn([$actionConfigFail, $actionConfigSuccess]);
91
+                    ->method('getActions')
92
+                    ->willReturn([$actionConfigFail, $actionConfigSuccess]);
93 93
 
94 94
         $config->expects($this->once())->method('getHookConfigToExecute')->willReturn($hookConfig);
95 95
         $config->method('isHookEnabled')->willReturn(true);
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
 
126 126
         $hookConfig->method('isEnabled')->willReturn(true);
127 127
         $hookConfig->expects($this->once())
128
-                   ->method('getActions')
129
-                   ->willReturn([$actionConfigFail, $actionConfigSuccess]);
128
+                    ->method('getActions')
129
+                    ->willReturn([$actionConfigFail, $actionConfigSuccess]);
130 130
 
131 131
         $config->expects($this->once())->method('getHookConfigToExecute')->willReturn($hookConfig);
132 132
         $config->expects($this->atLeastOnce())->method('isHookEnabled')->willReturn(true);
Please login to merge, or discard this patch.