@@ -9,4 +9,4 @@ |
||
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 | |
12 | -require __DIR__ . '/../vendor/autoload.php'; |
|
12 | +require __DIR__.'/../vendor/autoload.php'; |
@@ -10,8 +10,8 @@ discard block |
||
10 | 10 | use Symfony\Component\Console\Application; |
11 | 11 | |
12 | 12 | $autoloadFiles = [ |
13 | - __DIR__ . '/../vendor/autoload.php', |
|
14 | - __DIR__ . '/../../../autoload.php', |
|
13 | + __DIR__.'/../vendor/autoload.php', |
|
14 | + __DIR__.'/../../../autoload.php', |
|
15 | 15 | ]; |
16 | 16 | |
17 | 17 | foreach ($autoloadFiles as $autoloadFile) { |
@@ -24,10 +24,10 @@ discard block |
||
24 | 24 | |
25 | 25 | $directories = [ |
26 | 26 | getcwd(), |
27 | - getcwd() . DIRECTORY_SEPARATOR . 'config', |
|
27 | + getcwd().DIRECTORY_SEPARATOR.'config', |
|
28 | 28 | ]; |
29 | 29 | foreach ($directories as $directory) { |
30 | - $configFile = $directory . DIRECTORY_SEPARATOR . 'cli-config.php'; |
|
30 | + $configFile = $directory.DIRECTORY_SEPARATOR.'cli-config.php'; |
|
31 | 31 | |
32 | 32 | if (file_exists($configFile) && is_readable($configFile)) { |
33 | 33 | $application = require $configFile; |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | return $consoleBuilder->getApplication(); |
57 | 57 | |
58 | -HELP; |
|
58 | +help; |
|
59 | 59 | |
60 | 60 | exit(1); |
61 | 61 | } |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | |
394 | 394 | return array_filter( |
395 | 395 | $functions, |
396 | - function ($name) { |
|
396 | + function($name) { |
|
397 | 397 | return is_string($name); |
398 | 398 | }, |
399 | 399 | ARRAY_FILTER_USE_KEY |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | |
412 | 412 | return array_filter( |
413 | 413 | $functions, |
414 | - function ($name) { |
|
414 | + function($name) { |
|
415 | 415 | return is_string($name); |
416 | 416 | }, |
417 | 417 | ARRAY_FILTER_USE_KEY |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | |
430 | 430 | return array_filter( |
431 | 431 | $functions, |
432 | - function ($name) { |
|
432 | + function($name) { |
|
433 | 433 | return is_string($name); |
434 | 434 | }, |
435 | 435 | ARRAY_FILTER_USE_KEY |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | |
448 | 448 | return array_filter( |
449 | 449 | $types, |
450 | - function ($name) { |
|
450 | + function($name) { |
|
451 | 451 | return is_string($name); |
452 | 452 | }, |
453 | 453 | ARRAY_FILTER_USE_KEY |
@@ -496,10 +496,10 @@ discard block |
||
496 | 496 | |
497 | 497 | if ($commandPrefix !== '') { |
498 | 498 | $commands = array_map( |
499 | - function (Command $command) use ($commandPrefix) { |
|
499 | + function(Command $command) use ($commandPrefix) { |
|
500 | 500 | $commandNames = array_map( |
501 | - function ($commandName) use ($commandPrefix) { |
|
502 | - return preg_replace('/^(dbal|orm):/', $commandPrefix . ':$1:', $commandName); |
|
501 | + function($commandName) use ($commandPrefix) { |
|
502 | + return preg_replace('/^(dbal|orm):/', $commandPrefix.':$1:', $commandName); |
|
503 | 503 | }, |
504 | 504 | array_merge([$command->getName()], $command->getAliases()) |
505 | 505 | ); |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | break; |
188 | 188 | |
189 | 189 | default: |
190 | - throw new \InvalidArgumentException('Invalid argument: ' . $connection); |
|
190 | + throw new \InvalidArgumentException('Invalid argument: '.$connection); |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | return $connection; |
@@ -345,10 +345,10 @@ discard block |
||
345 | 345 | |
346 | 346 | if ($commandPrefix !== '') { |
347 | 347 | $commands = array_map( |
348 | - function (Command $command) use ($commandPrefix) { |
|
348 | + function(Command $command) use ($commandPrefix) { |
|
349 | 349 | $commandNames = array_map( |
350 | - function ($commandName) use ($commandPrefix) { |
|
351 | - return preg_replace('/^odm:/', $commandPrefix . ':odm:', $commandName); |
|
350 | + function($commandName) use ($commandPrefix) { |
|
351 | + return preg_replace('/^odm:/', $commandPrefix.':odm:', $commandName); |
|
352 | 352 | }, |
353 | 353 | array_merge([$command->getName()], $command->getAliases()) |
354 | 354 | ); |
@@ -188,10 +188,10 @@ |
||
188 | 188 | |
189 | 189 | if ($commandPrefix !== '') { |
190 | 190 | $commands = array_map( |
191 | - function (Command $command) use ($commandPrefix) { |
|
191 | + function(Command $command) use ($commandPrefix) { |
|
192 | 192 | $commandNames = array_map( |
193 | - function ($commandName) use ($commandPrefix) { |
|
194 | - return preg_replace('/^couchdb:/', $commandPrefix . ':', $commandName); |
|
193 | + function($commandName) use ($commandPrefix) { |
|
194 | + return preg_replace('/^couchdb:/', $commandPrefix.':', $commandName); |
|
195 | 195 | }, |
196 | 196 | array_merge([$command->getName()], $command->getAliases()) |
197 | 197 | ); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $annotationFiles = (array) $this->getOption('annotation_files'); |
232 | 232 | array_walk( |
233 | 233 | $annotationFiles, |
234 | - function ($file) { |
|
234 | + function($file) { |
|
235 | 235 | if (!file_exists($file)) { |
236 | 236 | throw new \RuntimeException(sprintf('"%s" file does not exist', $file)); |
237 | 237 | } |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | $annotationLoaders = (array) $this->getOption('annotation_autoloaders'); |
246 | 246 | array_walk( |
247 | 247 | $annotationLoaders, |
248 | - function ($autoLoader) { |
|
248 | + function($autoLoader) { |
|
249 | 249 | AnnotationRegistry::registerLoader($autoLoader); |
250 | 250 | } |
251 | 251 | ); |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | |
267 | 267 | return array_filter( |
268 | 268 | $namespaces, |
269 | - function ($namespace) { |
|
269 | + function($namespace) { |
|
270 | 270 | return is_string($namespace); |
271 | 271 | }, |
272 | 272 | ARRAY_FILTER_USE_KEY |
@@ -92,7 +92,7 @@ |
||
92 | 92 | |
93 | 93 | return array_walk( |
94 | 94 | $commands, |
95 | - function (Command $command) { |
|
95 | + function(Command $command) { |
|
96 | 96 | static::assertEquals(1, preg_match('/^test:(odm:)?/', $command->getName())); |
97 | 97 | } |
98 | 98 | ); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function testManagerNoAnnotationFile() |
95 | 95 | { |
96 | - $this->builder->setOption('annotation_files', __DIR__ . '/fake_file.php'); |
|
96 | + $this->builder->setOption('annotation_files', __DIR__.'/fake_file.php'); |
|
97 | 97 | |
98 | 98 | $this->builder->getManager(true, true); |
99 | 99 | } |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | |
209 | 209 | return array_walk( |
210 | 210 | $commands, |
211 | - function (Command $command) { |
|
211 | + function(Command $command) { |
|
212 | 212 | static::assertEquals(1, preg_match('/^test:(dbal|orm):/', $command->getName())); |
213 | 213 | } |
214 | 214 | ); |
@@ -97,7 +97,7 @@ |
||
97 | 97 | |
98 | 98 | return array_walk( |
99 | 99 | $commands, |
100 | - function (Command $command) { |
|
100 | + function(Command $command) { |
|
101 | 101 | static::assertEquals(1, preg_match('/^test:odm:/', $command->getName())); |
102 | 102 | } |
103 | 103 | ); |