@@ -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); |
@@ -149,10 +149,10 @@ |
||
| 149 | 149 | $newline = true; |
| 150 | 150 | } |
| 151 | 151 | if ($this->previousWasNewLine && $l >= 0 && $message[0] !== "\n") { |
| 152 | - $message = $this->getIndention() . $message; |
|
| 152 | + $message = $this->getIndention().$message; |
|
| 153 | 153 | } |
| 154 | 154 | if (strpos($message, "\n") !== false) { |
| 155 | - $message = str_replace("\n", "\n" . $this->getIndention(), $message); |
|
| 155 | + $message = str_replace("\n", "\n".$this->getIndention(), $message); |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | // TODO: Indent wrapped lines - that's just not that easy because of the ANSI color escape codes |
@@ -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)); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | . "from kite configuration:\n\n" |
| 145 | 145 | . $this->getHelper('formatter')->formatBlock($this->getDescription(), 'fg=black;bg=green', true) |
| 146 | 146 | . "\n\nThe canonicalized command is:\n\n" |
| 147 | - . " <info>php " . $_SERVER['PHP_SELF'] . ' ' . preg_replace('/^generic:([^:]+):([^ ]+)/', '--$1=$2', $this->getName()) . "</info>\n"; |
|
| 147 | + . " <info>php ".$_SERVER['PHP_SELF'].' '.preg_replace('/^generic:([^:]+):([^ ]+)/', '--$1=$2', $this->getName())."</info>\n"; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
@@ -178,13 +178,13 @@ discard block |
||
| 178 | 178 | if (!$input->getOption('no-debug-file') && $debugDir = $input->getOption('debug-dir')) { |
| 179 | 179 | $this->console->getFilesystem()->ensureDirectoryExists($debugDir); |
| 180 | 180 | // keep max 20 logs |
| 181 | - $files = glob($debugDir . '/*'); |
|
| 181 | + $files = glob($debugDir.'/*'); |
|
| 182 | 182 | while (count($files) > 19) { |
| 183 | 183 | $this->console->getFilesystem()->remove(array_shift($files)); |
| 184 | 184 | } |
| 185 | 185 | $logFile = date('YmdHis'); |
| 186 | 186 | $debugOutput = new Output( |
| 187 | - fopen(rtrim($debugDir, '\\/') . '/' . $logFile, 'w'), |
|
| 187 | + fopen(rtrim($debugDir, '\\/').'/'.$logFile, 'w'), |
|
| 188 | 188 | Output::VERBOSITY_VERY_VERBOSE, |
| 189 | 189 | true |
| 190 | 190 | ); |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | $debugOutput->writeln( |
| 194 | 194 | $this->getHelper('formatter')->formatBlock( |
| 195 | 195 | implode(' ', $_SERVER['argv']), 'fg=black;bg=white', true |
| 196 | - ) . "\n" |
|
| 196 | + )."\n" |
|
| 197 | 197 | ); |
| 198 | 198 | } |
| 199 | 199 | } |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | } catch (\Exception $e) { |
| 224 | 224 | if ($e instanceof ExitException && $e->getCode() === 0) { |
| 225 | 225 | if ($e->getMessage()) { |
| 226 | - $output->writeln('<info>' . $e->getMessage() . '</info>'); |
|
| 226 | + $output->writeln('<info>'.$e->getMessage().'</info>'); |
|
| 227 | 227 | } |
| 228 | 228 | return 0; |
| 229 | 229 | } |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | if (!$name) { |
| 284 | 284 | return 0; |
| 285 | 285 | } |
| 286 | - $key = $type . ':' . $name; |
|
| 286 | + $key = $type.':'.$name; |
|
| 287 | 287 | $tasksAdded = 0; |
| 288 | 288 | if (array_key_exists($key, $this->job->deferredTasks)) { |
| 289 | 289 | while ($task = array_shift($this->job->deferredTasks[$key])) { |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | $shouldRun = $if; |
| 311 | 311 | } elseif (is_string($if)) { |
| 312 | 312 | $shouldRun = (boolean) $task->expand( |
| 313 | - '{' . $if . ' ? 1 : 0}' |
|
| 313 | + '{'.$if.' ? 1 : 0}' |
|
| 314 | 314 | ); |
| 315 | 315 | } else { |
| 316 | 316 | $shouldRun = call_user_func_array($if, array($task, $this->console)); |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | if ($name === '@self') { |
| 350 | 350 | $name = $this->get('name'); |
| 351 | 351 | } |
| 352 | - $key = $type . ':' . $name; |
|
| 352 | + $key = $type.':'.$name; |
|
| 353 | 353 | $this->job->deferredTasks[$key][] = $task; |
| 354 | 354 | } |
| 355 | 355 | } |
@@ -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; |