@@ -272,7 +272,7 @@ |
||
272 | 272 | } elseif ($create) { |
273 | 273 | $branches = array_unique( |
274 | 274 | array_map( |
275 | - function ($el) { |
|
275 | + function($el) { |
|
276 | 276 | $parts = explode('/', $el); |
277 | 277 | return array_pop($parts); |
278 | 278 | }, |
@@ -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\Workflow |
|
9 | - * @subpackage Composer |
|
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\Workflow |
|
9 | + * @subpackage Composer |
|
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\Workflow\Composer; |
16 | 16 | use Netresearch\Kite\Service\Composer\Package; |
@@ -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\Workflow |
|
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\Workflow |
|
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\Workflow; |
15 | 15 | use Netresearch\Kite\Exception; |
@@ -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)); |
@@ -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 | |
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 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 Symfony\Component\ExpressionLanguage\SyntaxError; |
@@ -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 Symfony\Component\ExpressionLanguage\SyntaxError; |
@@ -172,10 +172,10 @@ |
||
172 | 172 | } |
173 | 173 | if ($isTest) { |
174 | 174 | if ($isFunctionCall) { |
175 | - throw new SyntaxError('Can\'t use function return value in write context', $stream->current->cursor); |
|
175 | + throw new SyntaxError('Can\'t use function return value in write context', $stream->current->cursor); |
|
176 | 176 | } |
177 | 177 | if (!$stream->current->test(Token::PUNCTUATION_TYPE, ')')) { |
178 | - throw new SyntaxError('Expected )', $stream->current->cursor); |
|
178 | + throw new SyntaxError('Expected )', $stream->current->cursor); |
|
179 | 179 | } |
180 | 180 | $tokens[] = new Token(Token::STRING_TYPE, implode('.', $names), $token->cursor); |
181 | 181 | } else { |
@@ -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 Exception |
|
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 Exception |
|
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; |
16 | 16 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | $error = sprintf( |
46 | - 'The command "%s" failed.'."\n\nExit Code: %s(%s)\n\nWorking directory: %s", |
|
46 | + 'The command "%s" failed.' . "\n\nExit Code: %s(%s)\n\nWorking directory: %s", |
|
47 | 47 | $process->getCommandLine(), |
48 | 48 | $process->getExitCode(), |
49 | 49 | $process->getExitCodeText(), |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $item = 'git ' . $item; |
43 | 43 | } |
44 | 44 | } else { |
45 | - $value = 'git ' . $value; |
|
45 | + $value = 'git ' . $value; |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 | parent::offsetSet($name, $value); |
@@ -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 Task |
|
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 Task |
|
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\Task; |
16 | 16 | use Netresearch\Kite\Task; |
@@ -51,7 +51,7 @@ |
||
51 | 51 | public function execute() |
52 | 52 | { |
53 | 53 | ob_start( |
54 | - function ($output) { |
|
54 | + function($output) { |
|
55 | 55 | $this->console->output($output, false); |
56 | 56 | return ''; |
57 | 57 | }, 2, 0 |
@@ -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 Task |
|
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 Task |
|
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\Task; |
16 | 16 | use Netresearch\Kite\Task; |
@@ -57,7 +57,7 @@ |
||
57 | 57 | { |
58 | 58 | if ($name === 'command') { |
59 | 59 | parent::offsetSet('composerCommand', $value); |
60 | - $value = 'composer ' . $value; |
|
60 | + $value = 'composer ' . $value; |
|
61 | 61 | } |
62 | 62 | parent::offsetSet($name, $value); |
63 | 63 | } |
@@ -136,7 +136,7 @@ |
||
136 | 136 | /** |
137 | 137 | * Execute the command |
138 | 138 | * |
139 | - * @return mixed |
|
139 | + * @return null|string |
|
140 | 140 | */ |
141 | 141 | protected function executeCommand() |
142 | 142 | { |
@@ -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 Task |
|
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 Task |
|
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\Task; |
16 | 16 | use Netresearch\Kite\Task; |