@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | list($dir, $file) = $dirAndFile; |
82 | 82 | if (is_dir($dir)) { |
83 | 83 | $app = $appName; |
84 | - $expectedFile = $dir . '/' . $file; |
|
84 | + $expectedFile = $dir.'/'.$file; |
|
85 | 85 | break; |
86 | 86 | } |
87 | 87 | } |
@@ -91,9 +91,9 @@ discard block |
||
91 | 91 | } catch (\Exception $e) { |
92 | 92 | if ($app) { |
93 | 93 | $message = [ |
94 | - 'You appear to be in a ' . $app . ' root directory but', |
|
94 | + 'You appear to be in a '.$app.' root directory but', |
|
95 | 95 | 'there is no kite config file at the expected', |
96 | - 'location (' . $expectedFile . ').' |
|
96 | + 'location ('.$expectedFile.').' |
|
97 | 97 | ]; |
98 | 98 | } else { |
99 | 99 | $message = [ |
@@ -103,9 +103,9 @@ discard block |
||
103 | 103 | 'The config file path is expected to be:', |
104 | 104 | ]; |
105 | 105 | foreach ($indicators as $appName => $dirAndFile) { |
106 | - $message[] = ' - "' . implode('/', $dirAndFile) . '" for ' . $appName . ' applications or'; |
|
106 | + $message[] = ' - "'.implode('/', $dirAndFile).'" for '.$appName.' applications or'; |
|
107 | 107 | } |
108 | - $message[] = ' - "' . $expectedFile . '" for any other application'; |
|
108 | + $message[] = ' - "'.$expectedFile.'" for any other application'; |
|
109 | 109 | } |
110 | 110 | $lMax = 0; |
111 | 111 | foreach ($message as $line) { |
@@ -113,12 +113,12 @@ discard block |
||
113 | 113 | $lMax = $l; |
114 | 114 | } |
115 | 115 | } |
116 | - $this->output->writeln('<warning>' . str_repeat(' ', $lMax + 4) . '</warning>'); |
|
116 | + $this->output->writeln('<warning>'.str_repeat(' ', $lMax + 4).'</warning>'); |
|
117 | 117 | foreach ($message as $line) { |
118 | 118 | $line = str_pad($line, $lMax + 2); |
119 | 119 | $this->output->writeln("<warning> $line</warning>"); |
120 | 120 | } |
121 | - $this->output->writeln('<warning>' . str_repeat(' ', $lMax + 4) . '</warning>'); |
|
121 | + $this->output->writeln('<warning>'.str_repeat(' ', $lMax + 4).'</warning>'); |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | . "| ' /| | __/ _ \\\n" |
136 | 136 | . "| . \\| | |_| __/\n" |
137 | 137 | . "|_|\\_|_|\\__\\___|\n\n" |
138 | - . $this->getLongVersion() . "\n\n" |
|
138 | + . $this->getLongVersion()."\n\n" |
|
139 | 139 | . $this->getSelfPackage()->description; |
140 | 140 | |
141 | 141 | return $help; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | if (isset($package->source)) { |
154 | 154 | $v .= " <comment>({$package->source->reference})</comment>"; |
155 | 155 | } |
156 | - $v .= ' ' . $package->time; |
|
156 | + $v .= ' '.$package->time; |
|
157 | 157 | return $v; |
158 | 158 | } |
159 | 159 | |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | { |
167 | 167 | static $package = null; |
168 | 168 | if (!$package) { |
169 | - $files = [__DIR__ . '/../../../../composer/installed.json', __DIR__ . '/vendor/composer/installed.json']; |
|
169 | + $files = [__DIR__.'/../../../../composer/installed.json', __DIR__.'/vendor/composer/installed.json']; |
|
170 | 170 | foreach ($files as $file) { |
171 | 171 | if (file_exists($file)) { |
172 | 172 | $installed = json_decode(file_get_contents($file)); |
@@ -183,9 +183,9 @@ discard block |
||
183 | 183 | $process = new Process('git symbolic-ref -q --short HEAD || git describe --tags --exact-match; git rev-parse HEAD; git show -s --format=%ct HEAD', $kitePath); |
184 | 184 | $process->run(); |
185 | 185 | if ($output = $process->getOutput()) { |
186 | - $package = json_decode(file_get_contents($kitePath . '/composer.json')); |
|
186 | + $package = json_decode(file_get_contents($kitePath.'/composer.json')); |
|
187 | 187 | list($name, $revision, $tstamp) = explode("\n", trim($output), 3); |
188 | - $package->version = preg_match('/^v?[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?$/i', $name) ? $name : 'dev-' . $name; |
|
188 | + $package->version = preg_match('/^v?[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?$/i', $name) ? $name : 'dev-'.$name; |
|
189 | 189 | $package->source = (object) ['reference' => $revision]; |
190 | 190 | $package->time = date('Y-m-d H:i:s', $tstamp); |
191 | 191 | } else { |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | $definition->addOption(new InputOption('workflow', null, InputOption::VALUE_OPTIONAL, 'Run a workflow on the fly')); |
208 | 208 | |
209 | 209 | if (isset($_SERVER['HOME']) && is_writable($_SERVER['HOME'])) { |
210 | - $debugDir = $_SERVER['HOME'] . '/.kite/log'; |
|
210 | + $debugDir = $_SERVER['HOME'].'/.kite/log'; |
|
211 | 211 | } else { |
212 | 212 | $debugDir = false; |
213 | 213 | } |
@@ -251,19 +251,19 @@ discard block |
||
251 | 251 | $strInput .= ' --help'; |
252 | 252 | } |
253 | 253 | $workflow = $input->getParameterOption('--workflow'); |
254 | - $jobName = 'generic:workflow:' . $workflow; |
|
254 | + $jobName = 'generic:workflow:'.$workflow; |
|
255 | 255 | $this->config->configureJob($jobName, array('workflow' => $workflow)); |
256 | 256 | $command = new JobCommand($jobName, $this->config); |
257 | 257 | $this->add($command); |
258 | 258 | |
259 | - $parameterOption = '--workflow=' . $workflow; |
|
259 | + $parameterOption = '--workflow='.$workflow; |
|
260 | 260 | $input = new StringInput( |
261 | 261 | rtrim( |
262 | - $jobName . ' ' . |
|
262 | + $jobName.' '. |
|
263 | 263 | str_replace( |
264 | 264 | array( |
265 | - $parameterOption . ' ', |
|
266 | - ' ' . $parameterOption, |
|
265 | + $parameterOption.' ', |
|
266 | + ' '.$parameterOption, |
|
267 | 267 | $parameterOption |
268 | 268 | ), '', $strInput |
269 | 269 | ) |