Passed
Push — main ( f0911f...cd99fe )
by Sebastian
05:24
created
src/Hook/Template/Local/PHP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 
111 111
         $executableInclude = substr($executablePath, 0, 1) == '/'
112 112
                            ? '\'' . $executablePath . '\''
113
-                           : '__DIR__ . \'/../../' . $executablePath  . '\'';
113
+                           : '__DIR__ . \'/../../' . $executablePath . '\'';
114 114
         return array_merge(
115 115
             [
116 116
                 '#!/usr/bin/env php',
Please login to merge, or discard this patch.
src/Hook/Template/Inspector.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
                 '<fg=red>Warning: Hook script is out of date</>',
82 82
                 'The git hook script needs to be updated.',
83 83
                 'Required version is <info>' . CH::MIN_REQ_INSTALLER . '</info>'
84
-                  . ' found <fg=red>' . $installerVersion . '</>.',
84
+                    . ' found <fg=red>' . $installerVersion . '</>.',
85 85
                 'Please re-install your hook by running:',
86 86
                 '  <comment>captainhook install ' . $this->hook . '</comment>',
87 87
                 '',
Please login to merge, or discard this patch.
src/Hook/UserInput/EventHandler/AskConfirmation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      */
60 60
     public function handle(Event $event): void
61 61
     {
62
-        if (!IOUtil::answerToBool($event->io()->ask(PHP_EOL .  $this->question . ' ', $this->default ? 'y' : 'n'))) {
62
+        if (!IOUtil::answerToBool($event->io()->ask(PHP_EOL . $this->question . ' ', $this->default ? 'y' : 'n'))) {
63 63
             throw new ActionFailed('no confirmation, abort!');
64 64
         }
65 65
     }
Please login to merge, or discard this patch.
tests/unit/Console/IO/DefaultIOTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
         $io     = new DefaultIO($input, $output, $helper);
233 233
         $answer = $io->askAndValidate(
234 234
             'foo',
235
-            function () {
235
+            function() {
236 236
                 return true;
237 237
             }
238 238
         );
Please login to merge, or discard this patch.