@@ -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; |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * See class comment |
|
| 4 | - * |
|
| 5 | - * PHP Version 5 |
|
| 6 | - * |
|
| 7 | - * @category Netresearch |
|
| 8 | - * @package Netresearch\Kite |
|
| 9 | - * @subpackage Console |
|
| 10 | - * @author Christian Opitz <[email protected]> |
|
| 11 | - * @license http://www.netresearch.de Netresearch Copyright |
|
| 12 | - * @link http://www.netresearch.de |
|
| 13 | - */ |
|
| 3 | + * See class comment |
|
| 4 | + * |
|
| 5 | + * PHP Version 5 |
|
| 6 | + * |
|
| 7 | + * @category Netresearch |
|
| 8 | + * @package Netresearch\Kite |
|
| 9 | + * @subpackage Console |
|
| 10 | + * @author Christian Opitz <[email protected]> |
|
| 11 | + * @license http://www.netresearch.de Netresearch Copyright |
|
| 12 | + * @link http://www.netresearch.de |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | namespace Netresearch\Kite\Console; |
| 16 | 16 | use Netresearch\Kite\Console\Command\LogCommand; |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | use Netresearch\Kite\Service\Descriptor; |
| 23 | 23 | use Symfony\Component\Console\Command\Command; |
| 24 | 24 | use Symfony\Component\Console\Input\InputInterface; |
| 25 | - |
|
| 26 | 25 | use Symfony\Component\Console\Output\ConsoleOutput; |
| 27 | 26 | use Symfony\Component\Console\Output\OutputInterface; |
| 28 | 27 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * ConsoleOutput constructor. |
| 30 | 30 | * |
| 31 | - * @param int|mixed $verbosity The verbosity |
|
| 31 | + * @param integer $verbosity The verbosity |
|
| 32 | 32 | * @param boolean $decorated If output should be decorated |
| 33 | 33 | * @param OutputFormatterInterface|null $formatter Formatter |
| 34 | 34 | */ |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * See class comment |
|
| 4 | - * |
|
| 5 | - * PHP Version 5 |
|
| 6 | - * |
|
| 7 | - * @category Netresearch |
|
| 8 | - * @package Netresearch\Kite\Console\Output |
|
| 9 | - * @author Christian Opitz <[email protected]> |
|
| 10 | - * @license http://www.netresearch.de Netresearch Copyright |
|
| 11 | - * @link http://www.netresearch.de |
|
| 12 | - */ |
|
| 3 | + * See class comment |
|
| 4 | + * |
|
| 5 | + * PHP Version 5 |
|
| 6 | + * |
|
| 7 | + * @category Netresearch |
|
| 8 | + * @package Netresearch\Kite\Console\Output |
|
| 9 | + * @author Christian Opitz <[email protected]> |
|
| 10 | + * @license http://www.netresearch.de Netresearch Copyright |
|
| 11 | + * @link http://www.netresearch.de |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Netresearch\Kite\Console\Output; |
| 15 | 15 | use Symfony\Component\Console\Formatter\OutputFormatterInterface; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * Constructor. |
| 54 | 54 | * |
| 55 | - * @param mixed $stream A stream resource |
|
| 55 | + * @param resource $stream A stream resource |
|
| 56 | 56 | * @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface) |
| 57 | 57 | * @param bool|null $decorated Whether to decorate messages (null for auto-guessing) |
| 58 | 58 | * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter) |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | /** |
| 131 | 131 | * Write to output |
| 132 | 132 | * |
| 133 | - * @param array|string $messages Messages |
|
| 133 | + * @param string|null $messages Messages |
|
| 134 | 134 | * @param bool $newline Whether to append a newline |
| 135 | 135 | * @param int $type The output type |
| 136 | 136 | * |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace Netresearch\Kite\Console\Output; |
| 15 | 15 | use Symfony\Component\Console\Formatter\OutputFormatterInterface; |
| 16 | - |
|
| 17 | 16 | use Symfony\Component\Console\Output\StreamOutput; |
| 18 | 17 | use Symfony\Component\Console\Formatter\OutputFormatterStyle; |
| 19 | 18 | |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * See class comment |
|
| 4 | - * |
|
| 5 | - * PHP Version 5 |
|
| 6 | - * |
|
| 7 | - * @category Netresearch |
|
| 8 | - * @package Netresearch\Kite\Console\Output |
|
| 9 | - * @author Christian Opitz <[email protected]> |
|
| 10 | - * @license http://www.netresearch.de Netresearch Copyright |
|
| 11 | - * @link http://www.netresearch.de |
|
| 12 | - */ |
|
| 3 | + * See class comment |
|
| 4 | + * |
|
| 5 | + * PHP Version 5 |
|
| 6 | + * |
|
| 7 | + * @category Netresearch |
|
| 8 | + * @package Netresearch\Kite\Console\Output |
|
| 9 | + * @author Christian Opitz <[email protected]> |
|
| 10 | + * @license http://www.netresearch.de Netresearch Copyright |
|
| 11 | + * @link http://www.netresearch.de |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Netresearch\Kite\Console\Output; |
| 15 | 15 | use Symfony\Component\Console\Formatter\OutputFormatterInterface; |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace Netresearch\Kite\ExpressionLanguage; |
| 16 | 16 | use Netresearch\Kite\Task; |
| 17 | - |
|
| 18 | 17 | use Symfony\Component\Console\Question\ChoiceQuestion; |
| 19 | 18 | use Symfony\Component\Console\Question\ConfirmationQuestion; |
| 20 | 19 | use Symfony\Component\Console\Question\Question; |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * See class comment |
|
| 4 | - * |
|
| 5 | - * PHP Version 5 |
|
| 6 | - * |
|
| 7 | - * @category Netresearch |
|
| 8 | - * @package Netresearch\Kite |
|
| 9 | - * @subpackage ExpressionLanguage |
|
| 10 | - * @author Christian Opitz <[email protected]> |
|
| 11 | - * @license http://www.netresearch.de Netresearch Copyright |
|
| 12 | - * @link http://www.netresearch.de |
|
| 13 | - */ |
|
| 3 | + * See class comment |
|
| 4 | + * |
|
| 5 | + * PHP Version 5 |
|
| 6 | + * |
|
| 7 | + * @category Netresearch |
|
| 8 | + * @package Netresearch\Kite |
|
| 9 | + * @subpackage ExpressionLanguage |
|
| 10 | + * @author Christian Opitz <[email protected]> |
|
| 11 | + * @license http://www.netresearch.de Netresearch Copyright |
|
| 12 | + * @link http://www.netresearch.de |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | namespace Netresearch\Kite\ExpressionLanguage; |
| 16 | 16 | use Netresearch\Kite\Task; |
@@ -81,66 +81,66 @@ |
||
| 81 | 81 | parent::registerFunctions(); |
| 82 | 82 | $this->register( |
| 83 | 83 | 'confirm', |
| 84 | - function ($question) { |
|
| 84 | + function($question) { |
|
| 85 | 85 | }, |
| 86 | - function (array $values, $question) { |
|
| 86 | + function(array $values, $question) { |
|
| 87 | 87 | return $this->ask($values[self::VARIABLES_KEY], new ConfirmationQuestion("<question>$question</question> [y] ")); |
| 88 | 88 | } |
| 89 | 89 | ); |
| 90 | 90 | $this->register( |
| 91 | 91 | 'answer', |
| 92 | - function ($question) { |
|
| 92 | + function($question) { |
|
| 93 | 93 | }, |
| 94 | - function (array $values, $question) { |
|
| 94 | + function(array $values, $question) { |
|
| 95 | 95 | return $this->ask($values[self::VARIABLES_KEY], new Question("<question>$question</question> ")); |
| 96 | 96 | } |
| 97 | 97 | ); |
| 98 | 98 | $this->register( |
| 99 | 99 | 'choose', |
| 100 | - function ($question) { |
|
| 100 | + function($question) { |
|
| 101 | 101 | }, |
| 102 | - function (array $values, $question, array $choices) { |
|
| 102 | + function(array $values, $question, array $choices) { |
|
| 103 | 103 | return $this->ask($values[self::VARIABLES_KEY], new ChoiceQuestion("<question>$question</question> ", $choices)); |
| 104 | 104 | } |
| 105 | 105 | ); |
| 106 | 106 | $this->register( |
| 107 | 107 | 'isset', |
| 108 | - function ($var) { |
|
| 108 | + function($var) { |
|
| 109 | 109 | }, |
| 110 | - function (array $values, $var) { |
|
| 110 | + function(array $values, $var) { |
|
| 111 | 111 | return $values[self::VARIABLES_KEY]->has($var); |
| 112 | 112 | } |
| 113 | 113 | ); |
| 114 | 114 | $this->register( |
| 115 | 115 | 'empty', |
| 116 | - function ($var) { |
|
| 116 | + function($var) { |
|
| 117 | 117 | }, |
| 118 | - function (array $values, $var) { |
|
| 118 | + function(array $values, $var) { |
|
| 119 | 119 | return $values[self::VARIABLES_KEY]->has($var) && $values[self::VARIABLES_KEY]->get($var); |
| 120 | 120 | } |
| 121 | 121 | ); |
| 122 | 122 | $this->register( |
| 123 | 123 | 'get', |
| 124 | - function () { |
|
| 124 | + function() { |
|
| 125 | 125 | }, |
| 126 | - function (array $values, $var) { |
|
| 126 | + function(array $values, $var) { |
|
| 127 | 127 | return $values[self::VARIABLES_KEY]->get($var); |
| 128 | 128 | } |
| 129 | 129 | ); |
| 130 | 130 | $this->register( |
| 131 | 131 | 'set', |
| 132 | - function () { |
|
| 132 | + function() { |
|
| 133 | 133 | }, |
| 134 | - function (array $values, $var, $value) { |
|
| 134 | + function(array $values, $var, $value) { |
|
| 135 | 135 | $values[self::VARIABLES_KEY]->set($var, $value); |
| 136 | 136 | return $value; |
| 137 | 137 | } |
| 138 | 138 | ); |
| 139 | 139 | $this->register( |
| 140 | 140 | 'replace', |
| 141 | - function () { |
|
| 141 | + function() { |
|
| 142 | 142 | }, |
| 143 | - function (array $values, $search, $replace, $subject, $regex = false) { |
|
| 143 | + function(array $values, $search, $replace, $subject, $regex = false) { |
|
| 144 | 144 | if ($regex) { |
| 145 | 145 | return preg_replace($search, $replace, $subject); |
| 146 | 146 | } else { |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | namespace Netresearch\Kite\Service; |
| 16 | 16 | use Netresearch\Kite\Job; |
| 17 | 17 | use Netresearch\Kite\Service\Composer\Package; |
| 18 | -use Netresearch\Kite\Task; |
|
| 19 | 18 | use Netresearch\Kite\Exception; |
| 20 | 19 | use Netresearch\Kite\Tasks; |
| 21 | 20 | |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * See class comment |
|
| 4 | - * |
|
| 5 | - * PHP Version 5 |
|
| 6 | - * |
|
| 7 | - * @category Netresearch |
|
| 8 | - * @package Netresearch\Kite |
|
| 9 | - * @subpackage Service |
|
| 10 | - * @author Christian Opitz <[email protected]> |
|
| 11 | - * @license http://www.netresearch.de Netresearch Copyright |
|
| 12 | - * @link http://www.netresearch.de |
|
| 13 | - */ |
|
| 3 | + * See class comment |
|
| 4 | + * |
|
| 5 | + * PHP Version 5 |
|
| 6 | + * |
|
| 7 | + * @category Netresearch |
|
| 8 | + * @package Netresearch\Kite |
|
| 9 | + * @subpackage Service |
|
| 10 | + * @author Christian Opitz <[email protected]> |
|
| 11 | + * @license http://www.netresearch.de Netresearch Copyright |
|
| 12 | + * @link http://www.netresearch.de |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | namespace Netresearch\Kite\Service; |
| 16 | 16 | use Netresearch\Kite\Job; |
@@ -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; |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * See class comment |
|
| 4 | - * |
|
| 5 | - * PHP Version 5 |
|
| 6 | - * |
|
| 7 | - * @category Netresearch |
|
| 8 | - * @package Netresearch\Kite |
|
| 9 | - * @subpackage Service |
|
| 10 | - * @author Christian Opitz <[email protected]> |
|
| 11 | - * @license http://www.netresearch.de Netresearch Copyright |
|
| 12 | - * @link http://www.netresearch.de |
|
| 13 | - */ |
|
| 3 | + * See class comment |
|
| 4 | + * |
|
| 5 | + * PHP Version 5 |
|
| 6 | + * |
|
| 7 | + * @category Netresearch |
|
| 8 | + * @package Netresearch\Kite |
|
| 9 | + * @subpackage Service |
|
| 10 | + * @author Christian Opitz <[email protected]> |
|
| 11 | + * @license http://www.netresearch.de Netresearch Copyright |
|
| 12 | + * @link http://www.netresearch.de |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | namespace Netresearch\Kite\Service; |
| 16 | 16 | |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | namespace Netresearch\Kite\Service; |
| 15 | -use Netresearch\Kite\Exception; |
|
| 16 | 15 | use Netresearch\Kite\Task; |
| 17 | 16 | |
| 18 | 17 | /** |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * See class comment |
|
| 4 | - * |
|
| 5 | - * PHP Version 5 |
|
| 6 | - * |
|
| 7 | - * @category Netresearch |
|
| 8 | - * @package Netresearch\Kite\Service |
|
| 9 | - * @author Christian Opitz <[email protected]> |
|
| 10 | - * @license http://www.netresearch.de Netresearch Copyright |
|
| 11 | - * @link http://www.netresearch.de |
|
| 12 | - */ |
|
| 3 | + * See class comment |
|
| 4 | + * |
|
| 5 | + * PHP Version 5 |
|
| 6 | + * |
|
| 7 | + * @category Netresearch |
|
| 8 | + * @package Netresearch\Kite\Service |
|
| 9 | + * @author Christian Opitz <[email protected]> |
|
| 10 | + * @license http://www.netresearch.de Netresearch Copyright |
|
| 11 | + * @link http://www.netresearch.de |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Netresearch\Kite\Service; |
| 15 | 15 | use Netresearch\Kite\Exception; |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | * @param callable|null $callback A PHP callback to run whenever there is some |
| 136 | 136 | * output available on STDOUT or STDERR |
| 137 | 137 | * |
| 138 | - * @return mixed The output of the shell command or FALSE if the command returned a non-zero exit code and $ignoreErrors was enabled. |
|
| 138 | + * @return null|string The output of the shell command or FALSE if the command returned a non-zero exit code and $ignoreErrors was enabled. |
|
| 139 | 139 | */ |
| 140 | 140 | public function run($callback = NULL) |
| 141 | 141 | { |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | parent::run( |
| 151 | - function ($type, $buffer) use ($callback) { |
|
| 151 | + function($type, $buffer) use ($callback) { |
|
| 152 | 152 | if ($callback) { |
| 153 | 153 | call_user_func($callback, $type, $buffer); |
| 154 | 154 | } |