@@ -110,7 +110,7 @@ |
||
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', |
@@ -81,7 +81,7 @@ |
||
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 | '', |
@@ -59,7 +59,7 @@ |
||
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 | } |
@@ -232,7 +232,7 @@ |
||
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 | ); |