@@ -113,7 +113,7 @@ |
||
| 113 | 113 | foreach (array('key', 'value') as $name) { |
| 114 | 114 | if ($$name) { |
| 115 | 115 | if ($this->has($$name)) { |
| 116 | - throw new Exception('Variable ' . $$name . ' is already present'); |
|
| 116 | + throw new Exception('Variable '.$$name.' is already present'); |
|
| 117 | 117 | } |
| 118 | 118 | $this->as[$name] = $$name; |
| 119 | 119 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $code = "<?php\n"; |
| 88 | 88 | foreach (array('to', 'from', 'filter', 'cliStub', 'webStub', 'alias', 'metadata') as $var) { |
| 89 | 89 | $value = $this->get($var); |
| 90 | - $code .= '$' . $var . " = unserialize('" . serialize($value) . "');\n"; |
|
| 90 | + $code .= '$'.$var." = unserialize('".serialize($value)."');\n"; |
|
| 91 | 91 | } |
| 92 | 92 | $code .= ' |
| 93 | 93 | $phar = new \Phar($to); |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | if (!is_dir($dir)) { |
| 73 | 73 | throw new Exception("Debug dir $dir doesn't exist"); |
| 74 | 74 | } |
| 75 | - $files = glob($dir . '/*'); |
|
| 75 | + $files = glob($dir.'/*'); |
|
| 76 | 76 | if ($input->getOption('list')) { |
| 77 | 77 | foreach ($files as $file) { |
| 78 | 78 | $output->writeln(basename($file)); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | ], |
| 33 | 33 | [ |
| 34 | 34 | 'type' => 'shell', |
| 35 | - 'command' => '{config["php"]} ' . __DIR__ . '/typo3/clear-cache.php', |
|
| 35 | + 'command' => '{config["php"]} '.__DIR__.'/typo3/clear-cache.php', |
|
| 36 | 36 | 'processSettings' => ['pt' => true] |
| 37 | 37 | ], |
| 38 | 38 | [ |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | ['workflow' => 'clearCodeCaches'], |
| 54 | 54 | [ |
| 55 | 55 | 'type' => 'scp', |
| 56 | - 'from' => __DIR__ . '/typo3', |
|
| 56 | + 'from' => __DIR__.'/typo3', |
|
| 57 | 57 | 'to' => '{node}:{node.deployPath}/current/{config["workspace"]}/typo3' |
| 58 | 58 | ], |
| 59 | 59 | [ |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | * @link http://www.netresearch.de |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -require_once __DIR__ . '/bootstrap.php'; |
|
| 14 | +require_once __DIR__.'/bootstrap.php'; |
|
| 15 | 15 | |
| 16 | 16 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
| 17 | 17 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | if ($execute) { |
| 42 | 42 | $GLOBALS['TYPO3_DB']->admin_query($query); |
| 43 | 43 | if ($GLOBALS['TYPO3_DB']->sql_error()) { |
| 44 | - throw new \Exception('SQL-Error: ' . $GLOBALS['TYPO3_DB']->sql_error()); |
|
| 44 | + throw new \Exception('SQL-Error: '.$GLOBALS['TYPO3_DB']->sql_error()); |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @link http://www.netresearch.de |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -require __DIR__ . '/bootstrap.php'; |
|
| 15 | +require __DIR__.'/bootstrap.php'; |
|
| 16 | 16 | |
| 17 | 17 | $dataHandler = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Core\DataHandling\DataHandler'); |
| 18 | 18 | $dataHandler->stripslashes_values = 0; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | die('Access denied'); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | -define('PATH_site', getcwd() . DIRECTORY_SEPARATOR); |
|
| 24 | +define('PATH_site', getcwd().DIRECTORY_SEPARATOR); |
|
| 25 | 25 | |
| 26 | 26 | $typo3VersionIsMinimum7 = true; |
| 27 | 27 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | if ($typo3VersionIsMinimum7) { |
| 36 | - $classLoader = include getcwd() . '/typo3_src/vendor/autoload.php'; |
|
| 36 | + $classLoader = include getcwd().'/typo3_src/vendor/autoload.php'; |
|
| 37 | 37 | \TYPO3\CMS\Core\Core\Bootstrap::getInstance() |
| 38 | 38 | ->initializeClassLoader($classLoader) |
| 39 | 39 | ->baseSetup(PATH_site) |
@@ -14,8 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace Netresearch\Kite\ExpressionLanguage; |
| 16 | 16 | use Netresearch\Kite\Task; |
| 17 | - |
|
| 18 | -use Symfony\Component\Console\Question\ChoiceQuestion; |
|
| 19 | 17 | use Symfony\Component\Console\Question\ConfirmationQuestion; |
| 20 | 18 | use Symfony\Component\Console\Question\Question; |
| 21 | 19 | use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface; |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | { |
| 123 | 123 | parent::registerFunctions(); |
| 124 | 124 | $functions = [ |
| 125 | - 'call' => function (array $values, $function) { |
|
| 125 | + 'call' => function(array $values, $function) { |
|
| 126 | 126 | $args = array_slice(func_get_args(), 2); |
| 127 | 127 | if (array_key_exists($function, $this->functions)) { |
| 128 | 128 | array_unshift($args, $values); |
@@ -130,29 +130,29 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | return call_user_func_array($function, $args); |
| 132 | 132 | }, |
| 133 | - 'isset' => function (array $values, $var) { |
|
| 133 | + 'isset' => function(array $values, $var) { |
|
| 134 | 134 | return $values[self::VARIABLES_KEY]->has($var); |
| 135 | 135 | }, |
| 136 | - 'empty' => function (array $values, $var) { |
|
| 136 | + 'empty' => function(array $values, $var) { |
|
| 137 | 137 | return !$values[self::VARIABLES_KEY]->has($var) || !$values[self::VARIABLES_KEY]->get($var); |
| 138 | 138 | }, |
| 139 | - 'get' => function (array $values, $var) { |
|
| 139 | + 'get' => function(array $values, $var) { |
|
| 140 | 140 | return $values[self::VARIABLES_KEY]->get($var); |
| 141 | 141 | }, |
| 142 | - 'set' => function (array $values, $var, $value) { |
|
| 142 | + 'set' => function(array $values, $var, $value) { |
|
| 143 | 143 | $values[self::VARIABLES_KEY]->set($var, $value); |
| 144 | 144 | return $value; |
| 145 | 145 | }, |
| 146 | - 'confirm' => function (array $values, $question) { |
|
| 146 | + 'confirm' => function(array $values, $question) { |
|
| 147 | 147 | return $this->ask($values[self::VARIABLES_KEY], new ConfirmationQuestion("<question>$question</question> [y] ")); |
| 148 | 148 | }, |
| 149 | - 'answer' => function (array $values, $question) { |
|
| 149 | + 'answer' => function(array $values, $question) { |
|
| 150 | 150 | return $this->ask($values[self::VARIABLES_KEY], new Question("<question>$question</question> ")); |
| 151 | 151 | }, |
| 152 | - 'choose' => function (array $values, $question) { |
|
| 152 | + 'choose' => function(array $values, $question) { |
|
| 153 | 153 | return $this->ask($values[self::VARIABLES_KEY], new Question("<question>$question</question> ")); |
| 154 | 154 | }, |
| 155 | - 'replace' => function (array $values, $search, $replace, $subject, $regex = false) { |
|
| 155 | + 'replace' => function(array $values, $search, $replace, $subject, $regex = false) { |
|
| 156 | 156 | $values[self::VARIABLES_KEY]->console->output( |
| 157 | 157 | '<warning>Expression language function "replace" is deprecated ' |
| 158 | 158 | . 'and will be removed in 1.6.0 - use preg_replace or str_replace</warning>' |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | foreach ($functions as $name => $function) { |
| 168 | 168 | $this->register( |
| 169 | 169 | $name, |
| 170 | - function () { |
|
| 170 | + function() { |
|
| 171 | 171 | |
| 172 | 172 | }, |
| 173 | 173 | $function |