Passed
Push — main ( 222c14...83f636 )
by Sebastian
10:37 queued 06:56
created
tests/unit/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.
src/Plugin/Hook/PreserveWorkingTree.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $this->io->write('<info>Unstaged intent-to-add files detected.</info>');
121 121
 
122 122
         $this->repository->getIndexOperator()->removeFiles(
123
-            array_map(function (Path $path): string {
123
+            array_map(function(Path $path): string {
124 124
                 return $path->getPath();
125 125
             }, $this->intentToAddFiles),
126 126
             false,
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         }
142 142
 
143 143
         $this->repository->getIndexOperator()->recordIntentToAddFiles(
144
-            array_map(function (Path $path): string {
144
+            array_map(function(Path $path): string {
145 145
                 return $path->getPath();
146 146
             }, $this->intentToAddFiles)
147 147
         );
Please login to merge, or discard this patch.
src/Hooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         return array_keys(
121 121
             array_filter(
122 122
                 self::$virtualHookTriggers,
123
-                function ($e) use ($virtualHook) {
123
+                function($e) use ($virtualHook) {
124 124
                     return $e === $virtualHook;
125 125
                 }
126 126
             )
Please login to merge, or discard this patch.
src/Console/IO/Message.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @var string|array<string>
28 28
      */
29
-    private string|array $message;
29
+    private string | array $message;
30 30
 
31 31
     /**
32 32
      * Should message be ended with a new line character
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @param bool                 $newLine
50 50
      * @param int                  $verbosity
51 51
      */
52
-    public function __construct(string|array $message, bool $newLine, int $verbosity)
52
+    public function __construct(string | array $message, bool $newLine, int $verbosity)
53 53
     {
54 54
         $this->message   = $message;
55 55
         $this->newLine   = $newLine;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @return string|array<string>
63 63
      */
64
-    public function message(): string|array
64
+    public function message(): string | array
65 65
     {
66 66
         return $this->message;
67 67
     }
Please login to merge, or discard this patch.
src/Hook/Template/Docker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
             $executable = substr($command, 0, $endExec);
109 109
             $options    = substr($command, $endExec);
110 110
 
111
-            $command     = trim($executable)
111
+            $command = trim($executable)
112 112
                          . $this->createInteractiveOptions($options)
113 113
                          . $this->createTTYOptions($options)
114 114
                          . $this->createEnvOptions($options, $hook)
Please login to merge, or discard this patch.
src/Hook/Util.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
             $info = explode(' ', $stdIn[0]);
104 104
             // If we find a rewritten commit, we return the first commit before the rewritten one.
105 105
             // If we do not find any rewritten commits (awkward) we use the last ref-log position.
106
-            return isset($info[1]) ? trim($info[1]) . '^' :  'HEAD@{1}';
106
+            return isset($info[1]) ? trim($info[1]) . '^' : 'HEAD@{1}';
107 107
         }
108 108
 
109 109
         return $io->getArgument(Hooks::ARG_PREVIOUS_HEAD, 'HEAD@{1}');
Please login to merge, or discard this patch.
src/Hook/PHP/CoverageResolver/CloverXML.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,6 @@
 block discarded – undo
77 77
             );
78 78
         }
79 79
 
80
-        return $covered / ((int)$statements * 0.01);
80
+        return $covered / ((int) $statements * 0.01);
81 81
     }
82 82
 }
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 strpos($content, $term) === 0;
54 54
             };
55 55
         }
Please login to merge, or discard this patch.
src/Hook/Message/Action/PrepareFromFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
         // if there is a commit message don't do anything just delete the file
64 64
         if ($repository->getCommitMsg()->isEmpty()) {
65
-            $msg = (string)file_get_contents($cacheFile);
65
+            $msg = (string) file_get_contents($cacheFile);
66 66
             $repository->setCommitMsg(
67 67
                 new CommitMessage($msg, $repository->getCommitMsg()->getCommentCharacter())
68 68
             );
Please login to merge, or discard this patch.