@@ -124,7 +124,7 @@ |
||
124 | 124 | |
125 | 125 | usort( |
126 | 126 | $updates, |
127 | - function (Update $a, Update $b) { |
|
127 | + function(Update $a, Update $b) { |
|
128 | 128 | return Comparator::isGreaterThan( |
129 | 129 | $a->getVersion(), |
130 | 130 | $b->getVersion() |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $this->getApplication()->getVersion(), |
100 | 100 | $this->disableUpgrade ?: (false === $input->getOption('upgrade')), |
101 | 101 | $input->getOption('pre') |
102 | - )){ |
|
102 | + )) { |
|
103 | 103 | $output->writeln('<info>Update successful!</info>'); |
104 | 104 | } else { |
105 | 105 | $output->writeln('<comment>Already up-to-date.</comment>'); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | } |
56 | 56 | } |
57 | 57 | |
58 | - return count($ok) > 0 && array_all($ok, function ($value) { |
|
58 | + return count($ok) > 0 && array_all($ok, function($value) { |
|
59 | 59 | return $value; |
60 | 60 | }); |
61 | 61 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $deployer->hosts->set($aliases[0], $host); |
59 | 59 | return $host; |
60 | 60 | } else { |
61 | - $hosts = array_map(function ($hostname) use ($deployer) { |
|
61 | + $hosts = array_map(function($hostname) use ($deployer) { |
|
62 | 62 | $host = new Host($hostname); |
63 | 63 | $deployer->hosts->set($hostname, $host); |
64 | 64 | return $host; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $deployer->hosts->set($host->getAlias(), $host); |
82 | 82 | return $host; |
83 | 83 | } else { |
84 | - $hosts = array_map(function ($hostname) use ($deployer) { |
|
84 | + $hosts = array_map(function($hostname) use ($deployer) { |
|
85 | 85 | $host = new Localhost($hostname); |
86 | 86 | $deployer->hosts->set($host->getAlias(), $host); |
87 | 87 | return $host; |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | */ |
290 | 290 | function run($command, $options = []) |
291 | 291 | { |
292 | - $run = function ($command, $options) { |
|
292 | + $run = function($command, $options) { |
|
293 | 293 | $host = Context::get()->getHost(); |
294 | 294 | |
295 | 295 | $command = parse($command); |
@@ -195,7 +195,7 @@ |
||
195 | 195 | } |
196 | 196 | } |
197 | 197 | |
198 | - $prefix .= $startSymbol . '──'; |
|
198 | + $prefix .= $startSymbol . '──'; |
|
199 | 199 | |
200 | 200 | $this->output->writeln(sprintf('%s %s', $prefix, $treeItem['taskName'])); |
201 | 201 | } |
@@ -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 | } |
@@ -173,6 +173,4 @@ |
||
173 | 173 | $initializer->addTemplate('Drupal', new DrupalTemplate()); |
174 | 174 | $initializer->addTemplate('TYPO3', new Typo3Template()); |
175 | 175 | |
176 | - return $initializer; |
|
177 | - } |
|
178 | -} |
|
176 | + return $initializer |
|
179 | 177 | \ No newline at end of file |
@@ -59,7 +59,7 @@ |
||
59 | 59 | $hosts = $this->selectHosts($input, $output); |
60 | 60 | $this->applyOverrides($hosts, $input->getOption('option')); |
61 | 61 | |
62 | - $task = new Task($command, function () use ($command, $hosts) { |
|
62 | + $task = new Task($command, function() use ($command, $hosts) { |
|
63 | 63 | run($command); |
64 | 64 | }); |
65 | 65 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | public function start() |
41 | 41 | { |
42 | 42 | $this->loop = React\EventLoop\Factory::create(); |
43 | - $server = new React\Http\Server($this->loop, function (ServerRequestInterface $request) { |
|
43 | + $server = new React\Http\Server($this->loop, function(ServerRequestInterface $request) { |
|
44 | 44 | try { |
45 | 45 | return $this->router($request); |
46 | 46 | } catch (Throwable $exception) { |