Passed
Push — main ( ed04a6...9907fd )
by Sebastian
04:22
created
tests/unit/Console/IO/ComposerIOTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         $this->assertTrue(
91 91
             $this->io->askAndValidate(
92 92
                 'foo',
93
-                function () {
93
+                function() {
94 94
                     return true;
95 95
                 },
96 96
                 null,
Please login to merge, or discard this patch.
tests/unit/Console/IO/NullIOTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         $this->assertTrue(
84 84
             $io->askAndValidate(
85 85
                 'foo',
86
-                function () {
86
+                function() {
87 87
                     return true;
88 88
                 },
89 89
                 false,
Please login to merge, or discard this patch.
tests/unit/Hook/Condition/FileChanged/OfTypeTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@
 block discarded – undo
39 39
         $io = $this->createIOMock();
40 40
         $io->method('getArgument')->willReturn('hook:pre-push');
41 41
         $io->expects($this->atLeastOnce())
42
-           ->method('getStandardInput')
43
-           ->willReturn(
44
-               [
45
-                   'refs/heads/main 9dfa0fa6221d75f48b2dfac359127324bedf8409' .
46
-                   ' refs/heads/main 8309f6e16097754469c485e604900c573bf2c5d8'
47
-               ]
48
-           );
42
+            ->method('getStandardInput')
43
+            ->willReturn(
44
+                [
45
+                    'refs/heads/main 9dfa0fa6221d75f48b2dfac359127324bedf8409' .
46
+                    ' refs/heads/main 8309f6e16097754469c485e604900c573bf2c5d8'
47
+                ]
48
+            );
49 49
         $operator   = $this->createGitDiffOperator(['fiz.php', 'foo.txt']);
50 50
         $repository = $this->createRepositoryMock();
51 51
         $repository->expects($this->once())->method('getDiffOperator')->willReturn($operator);
Please login to merge, or discard this patch.
src/Hook/Message/Rule/Blacklist.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         $this->isCaseSensitive = $caseSensitive;
56 56
         $this->hint            = 'Commit message should not contain blacklisted words';
57
-        $this->stringDetection = function (string $content, string $term): bool {
57
+        $this->stringDetection = function(string $content, string $term): bool {
58 58
             return str_contains($content, $term);
59 59
         };
60 60
     }
Please login to merge, or discard this patch.
src/Hook/Message/Rule/UseImperativeMood.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         parent::__construct();
32 32
 
33
-        $this->hint = 'A commit message subject should always complete the following sentence.'  . PHP_EOL .
33
+        $this->hint = 'A commit message subject should always complete the following sentence.' . PHP_EOL .
34 34
                       'This commit will [YOUR COMMIT MESSAGE].';
35 35
 
36 36
         $this->setSubjectBlacklist(
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         if ($checkOnlyBeginning) {
51 51
             // overwrite the detection logic to only check the beginning og the string
52
-            $this->stringDetection = function (string $content, string $term): bool {
52
+            $this->stringDetection = function(string $content, string $term): bool {
53 53
                 return str_starts_with($content, $term);
54 54
             };
55 55
         }
Please login to merge, or discard this patch.
src/Hook/Template/Local/PHP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 
108 108
         $executableInclude = str_starts_with($executablePath, '/')
109 109
                            ? '\'' . $executablePath . '\''
110
-                           : '__DIR__ . \'/../../' . $executablePath  . '\'';
110
+                           : '__DIR__ . \'/../../' . $executablePath . '\'';
111 111
 
112 112
         $bootstrapOption       = $this->getBootstrapCmdOption();
113 113
         $bootstrapOptionQuoted = empty($bootstrapOption) ? '' : '            \'' . $bootstrapOption . '\',';
Please login to merge, or discard this patch.