@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | public function callback(Host $host): \Closure |
| 33 | 33 | { |
| 34 | - return function ($type, $buffer) use ($host) { |
|
| 34 | + return function($type, $buffer) use ($host) { |
|
| 35 | 35 | $this->printBuffer($host, $type, $buffer); |
| 36 | 36 | }; |
| 37 | 37 | } |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $hosts = $this->selectHosts($input, $output); |
| 63 | 63 | $this->applyOverrides($hosts, $input->getOption('option')); |
| 64 | 64 | |
| 65 | - $task = new Task($command, function () use ($input, $command) { |
|
| 65 | + $task = new Task($command, function() use ($input, $command) { |
|
| 66 | 66 | if (has('current_path')) { |
| 67 | 67 | $path = get('current_path'); |
| 68 | 68 | if (test("[ -d $path ]")) { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | $question->setErrorMessage('There is no "%s" host.'); |
| 65 | 65 | $answer = $helper->ask($input, $output, $question); |
| 66 | 66 | $answer = array_unique($answer); |
| 67 | - $hosts = $this->deployer->hosts->select(function (Host $host) use ($answer) { |
|
| 67 | + $hosts = $this->deployer->hosts->select(function(Host $host) use ($answer) { |
|
| 68 | 68 | return in_array($host->getAlias(), $answer, true); |
| 69 | 69 | }); |
| 70 | 70 | } |
@@ -263,7 +263,7 @@ |
||
| 263 | 263 | |
| 264 | 264 | $factory = $this->values[$id]; |
| 265 | 265 | |
| 266 | - $extended = function ($c) use ($callable, $factory) { |
|
| 266 | + $extended = function($c) use ($callable, $factory) { |
|
| 267 | 267 | return $callable($factory($c), $c); |
| 268 | 268 | }; |
| 269 | 269 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function callback(Host $host, bool $forceOutput): callable |
| 40 | 40 | { |
| 41 | - return function ($type, $buffer) use ($forceOutput, $host) { |
|
| 41 | + return function($type, $buffer) use ($forceOutput, $host) { |
|
| 42 | 42 | if ($this->output->isVerbose() || $forceOutput) { |
| 43 | 43 | $this->printBuffer($type, $host, $buffer); |
| 44 | 44 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $this->pop->command($host, 'run', $command); |
| 53 | 53 | |
| 54 | 54 | $terminalOutput = $this->pop->callback($host, $config['real_time_output']); |
| 55 | - $callback = function ($type, $buffer) use ($host, $terminalOutput) { |
|
| 55 | + $callback = function($type, $buffer) use ($host, $terminalOutput) { |
|
| 56 | 56 | $this->logger->printBuffer($host, $type, $buffer); |
| 57 | 57 | $terminalOutput($type, $buffer); |
| 58 | 58 | }; |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | if (empty($params)) { |
| 55 | 55 | $params = "| Argument | Type | Comment |\n|---|---|---|\n"; |
| 56 | 56 | } |
| 57 | - $type = implode(' or ', array_map(function ($t) { |
|
| 57 | + $type = implode(' or ', array_map(function($t) { |
|
| 58 | 58 | $t = trim($t, ' '); |
| 59 | 59 | return "`$t`"; |
| 60 | 60 | }, explode('|', $matches['type']))); |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | for ($i = 0; $i < count($lines); $i++) { |
| 59 | 59 | $line = $lines[$i]; |
| 60 | 60 | $m = []; |
| 61 | - $match = function ($regexp) use ($line, &$m) { |
|
| 61 | + $match = function($regexp) use ($line, &$m) { |
|
| 62 | 62 | return preg_match("#$regexp#", $line, $m); |
| 63 | 63 | }; |
| 64 | 64 | switch ($state) { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | set('workplace_edit_post', false); |
| 76 | 76 | |
| 77 | 77 | desc('Notifies Workplace'); |
| 78 | -task('workplace:notify', function () { |
|
| 78 | +task('workplace:notify', function() { |
|
| 79 | 79 | if (!get('workplace_webhook', false)) { |
| 80 | 80 | return; |
| 81 | 81 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | ->hidden(); |
| 100 | 100 | |
| 101 | 101 | desc('Notifies Workplace about deploy finish'); |
| 102 | -task('workplace:notify:success', function () { |
|
| 102 | +task('workplace:notify:success', function() { |
|
| 103 | 103 | if (!get('workplace_webhook', false)) { |
| 104 | 104 | return; |
| 105 | 105 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | ->hidden(); |
| 111 | 111 | |
| 112 | 112 | desc('Notifies Workplace about deploy failure'); |
| 113 | -task('workplace:notify:failure', function () { |
|
| 113 | +task('workplace:notify:failure', function() { |
|
| 114 | 114 | if (!get('workplace_webhook', false)) { |
| 115 | 115 | return; |
| 116 | 116 | } |