@@ -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']))); |
@@ -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 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | use Deployer\Utility\Httpie; |
| 25 | 25 | |
| 26 | 26 | desc('Notifies Raygun of deployment'); |
| 27 | -task('raygun:notify', function () { |
|
| 27 | +task('raygun:notify', function() { |
|
| 28 | 28 | $data = [ |
| 29 | 29 | 'apiKey' => get('raygun_api_key'), |
| 30 | 30 | 'version' => get('raygun_version'), |
@@ -20,22 +20,22 @@ |
||
| 20 | 20 | |
| 21 | 21 | use Deployer\Utility\Httpie; |
| 22 | 22 | |
| 23 | -set('newrelic_app_id', function () { |
|
| 23 | +set('newrelic_app_id', function() { |
|
| 24 | 24 | throw new \Exception('Please, configure "newrelic_app_id" parameter.'); |
| 25 | 25 | }); |
| 26 | 26 | |
| 27 | -set('newrelic_description', function () { |
|
| 27 | +set('newrelic_description', function() { |
|
| 28 | 28 | return runLocally('git log -n 1 --format="%an: %s" | tr \'"\' "\'"'); |
| 29 | 29 | }); |
| 30 | 30 | |
| 31 | -set('newrelic_revision', function () { |
|
| 31 | +set('newrelic_revision', function() { |
|
| 32 | 32 | return runLocally('git log -n 1 --format="%h"'); |
| 33 | 33 | }); |
| 34 | 34 | |
| 35 | 35 | set('newrelic_endpoint', 'api.newrelic.com'); |
| 36 | 36 | |
| 37 | 37 | desc('Notifies New Relic of deployment'); |
| 38 | -task('newrelic:notify', function () { |
|
| 38 | +task('newrelic:notify', function() { |
|
| 39 | 39 | if (($appId = get('newrelic_app_id')) && ($apiKey = get('newrelic_api_key')) && ($endpoint = get('newrelic_endpoint'))) { |
| 40 | 40 | $data = [ |
| 41 | 41 | 'user' => get('user'), |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | set('slack_channel', false); |
| 70 | 70 | |
| 71 | 71 | // Title of project |
| 72 | -set('slack_title', function () { |
|
| 72 | +set('slack_title', function() { |
|
| 73 | 73 | return get('application', 'Project'); |
| 74 | 74 | }); |
| 75 | 75 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | desc('Notifies Slack'); |
| 99 | -task('slack:notify', function () { |
|
| 99 | +task('slack:notify', function() { |
|
| 100 | 100 | if (!get('slack_webhook', false)) { |
| 101 | 101 | warning('No Slack webhook configured'); |
| 102 | 102 | return; |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | ->hidden(); |
| 117 | 117 | |
| 118 | 118 | desc('Notifies Slack about deploy finish'); |
| 119 | -task('slack:notify:success', function () { |
|
| 119 | +task('slack:notify:success', function() { |
|
| 120 | 120 | if (!get('slack_webhook', false)) { |
| 121 | 121 | warning('No Slack webhook configured'); |
| 122 | 122 | return; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | ->hidden(); |
| 138 | 138 | |
| 139 | 139 | desc('Notifies Slack about deploy failure'); |
| 140 | -task('slack:notify:failure', function () { |
|
| 140 | +task('slack:notify:failure', function() { |
|
| 141 | 141 | if (!get('slack_webhook', false)) { |
| 142 | 142 | warning('No Slack webhook configured'); |
| 143 | 143 | return; |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | ->hidden(); |
| 158 | 158 | |
| 159 | 159 | desc('Notifies Slack about rollback'); |
| 160 | -task('slack:notify:rollback', function () { |
|
| 160 | +task('slack:notify:rollback', function() { |
|
| 161 | 161 | if (!get('slack_webhook', false)) { |
| 162 | 162 | warning('No Slack webhook configured'); |
| 163 | 163 | return; |