@@ -19,7 +19,6 @@ |
||
| 19 | 19 | use Netresearch\Kite\Exception; |
| 20 | 20 | use Netresearch\Kite\Service\Config; |
| 21 | 21 | use Netresearch\Kite\Console\Command\JobCommand; |
| 22 | -use Netresearch\Kite\Service\Factory; |
|
| 23 | 22 | use Symfony\Component\Console\Command\Command; |
| 24 | 23 | use Symfony\Component\Console\Input\InputInterface; |
| 25 | 24 | use Symfony\Component\Console\Input\InputOption; |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | namespace Netresearch\Kite\Service; |
| 16 | 16 | |
| 17 | 17 | use Netresearch\Kite\Console\Output\Output; |
| 18 | - |
|
| 19 | 18 | use Symfony\Component\Console\Application; |
| 20 | 19 | use Symfony\Component\Console\Helper; |
| 21 | 20 | use Symfony\Component\Console\Input\InputInterface; |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | namespace Netresearch\Kite\Task; |
| 16 | 16 | |
| 17 | 17 | |
| 18 | -use Netresearch\Kite\Exception; |
|
| 19 | 18 | use Netresearch\Kite\Task; |
| 20 | 19 | |
| 21 | 20 | /** |
@@ -15,8 +15,6 @@ |
||
| 15 | 15 | namespace Netresearch\Kite\Task; |
| 16 | 16 | use Netresearch\Kite\Task; |
| 17 | 17 | use Netresearch\Kite\Tasks; |
| 18 | -use Netresearch\Kite\Workflow; |
|
| 19 | -use Netresearch\Kite\Exception; |
|
| 20 | 18 | |
| 21 | 19 | /** |
| 22 | 20 | * Run tasks or a workflow within a task |
@@ -12,8 +12,6 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | namespace Netresearch\Kite\Workflow\Composer; |
| 15 | -use Netresearch\Kite\Exception; |
|
| 16 | - |
|
| 17 | 15 | use Netresearch\Kite\Workflow; |
| 18 | 16 | |
| 19 | 17 | /** |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | public function assemble() |
| 61 | 61 | { |
| 62 | 62 | $this->callback( |
| 63 | - function () { |
|
| 63 | + function() { |
|
| 64 | 64 | $this->findLoaders(); |
| 65 | 65 | $file = $this->get('file'); |
| 66 | 66 | $this->console->getFilesystem()->ensureDirectoryExists(dirname($file)); |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace Netresearch\Kite\Workflow\Composer; |
| 16 | 16 | use Netresearch\Kite\Service\Composer\Package; |
| 17 | -use Netresearch\Kite\Task; |
|
| 18 | 17 | use Netresearch\Kite\Workflow; |
| 19 | 18 | |
| 20 | 19 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | public function assemble() |
| 61 | 61 | { |
| 62 | 62 | $this->callback( |
| 63 | - function () { |
|
| 63 | + function() { |
|
| 64 | 64 | $this->findLoaders(); |
| 65 | 65 | $file = $this->get('file'); |
| 66 | 66 | $this->console->getFilesystem()->ensureDirectoryExists(dirname($file)); |
@@ -14,10 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace Netresearch\Kite\Workflow; |
| 16 | 16 | use Netresearch\Kite\Task; |
| 17 | - |
|
| 18 | 17 | use Netresearch\Kite\Workflow; |
| 19 | -use Netresearch\Kite\Exception; |
|
| 20 | - |
|
| 21 | 18 | use Symfony\Component\Console\Input\InputOption; |
| 22 | 19 | |
| 23 | 20 | /** |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | $sub = $this->iterate('{nodes}', 'node'); |
| 198 | 198 | $sub->message('<step>Activating ' . ($this->release ? 'new' : 'latest') . ' release</step>'); |
| 199 | 199 | $sub->callback( |
| 200 | - function (Task\IterateTask $iterator) { |
|
| 200 | + function(Task\IterateTask $iterator) { |
|
| 201 | 201 | $links = $iterator->remoteShell('echo "`readlink previous`;`readlink current`;`readlink next`"', '{node.deployPath}'); |
| 202 | 202 | list($previous, $current, $next) = explode(';', $links); |
| 203 | 203 | |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $sub = $this->iterate('{nodes}', 'node'); |
| 253 | 253 | $sub->message('<step>Restoring previous release</step>'); |
| 254 | 254 | $sub->callback( |
| 255 | - function (Task\IterateTask $iterator) use (&$firstPreviousRelease) { |
|
| 255 | + function(Task\IterateTask $iterator) use (&$firstPreviousRelease) { |
|
| 256 | 256 | $links = $iterator->remoteShell('echo "`readlink previous`;`readlink current`;`readlink next`"', '{node.deployPath}'); |
| 257 | 257 | list($previous, $current, $next) = explode(';', $links); |
| 258 | 258 | if (!$previous) { |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | $sub = $this->iterate('{shared}', array('type' => 'entries')); |
| 293 | 293 | $sub->message('<step>Linking shared resources</step>'); |
| 294 | 294 | $sub->callback( |
| 295 | - function (Task\IterateTask $iterator) { |
|
| 295 | + function(Task\IterateTask $iterator) { |
|
| 296 | 296 | $type = $iterator->get('type'); |
| 297 | 297 | if (!in_array($type, array('dirs', 'files'), true)) { |
| 298 | 298 | $iterator->doExit('shared may only contain keys "dirs" or "files"', 1); |
@@ -13,12 +13,9 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | 15 | namespace Netresearch\Kite\Workflow; |
| 16 | -use Netresearch\Kite\Service\Factory; |
|
| 17 | 16 | use Netresearch\Kite\Task; |
| 18 | - |
|
| 19 | 17 | use Netresearch\Kite\Workflow; |
| 20 | 18 | use Netresearch\Kite\Exception; |
| 21 | - |
|
| 22 | 19 | use Symfony\Component\Console\Output\OutputInterface; |
| 23 | 20 | |
| 24 | 21 | /** |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | public function assemble() |
| 61 | 61 | { |
| 62 | 62 | $this->callback( |
| 63 | - function () { |
|
| 63 | + function() { |
|
| 64 | 64 | $this->findLoaders(); |
| 65 | 65 | $file = $this->get('file'); |
| 66 | 66 | $this->console->getFilesystem()->ensureDirectoryExists(dirname($file)); |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | ], |
| 50 | 50 | 'task' => [ |
| 51 | 51 | 'type' => 'callback', |
| 52 | - 'callback' => function (\Netresearch\Kite\Job $job) { |
|
| 52 | + 'callback' => function(\Netresearch\Kite\Job $job) { |
|
| 53 | 53 | $git = $job->get('git'); |
| 54 | 54 | $command = $job->get('cmd'); |
| 55 | 55 | foreach ($job->get('composer.packages') as $package) { |