@@ -190,14 +190,14 @@ |
||
190 | 190 | |
191 | 191 | // Rename commands |
192 | 192 | return array_map( |
193 | - function (Command $command) use ($commandPrefix) { |
|
193 | + function(Command $command) use ($commandPrefix) { |
|
194 | 194 | if ($commandPrefix !== '') { |
195 | - $command->setName(preg_replace('/^couchdb:/', $commandPrefix . ':', $command->getName())); |
|
195 | + $command->setName(preg_replace('/^couchdb:/', $commandPrefix.':', $command->getName())); |
|
196 | 196 | |
197 | 197 | $aliases = []; |
198 | 198 | // @codeCoverageIgnoreStart |
199 | 199 | foreach ($command->getAliases() as $alias) { |
200 | - $aliases[] = preg_replace('/^couchdb:/', $commandPrefix . ':$1:', $alias); |
|
200 | + $aliases[] = preg_replace('/^couchdb:/', $commandPrefix.':$1:', $alias); |
|
201 | 201 | } |
202 | 202 | // @codeCoverageIgnoreEnd |
203 | 203 | $command->setAliases($aliases); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | break; |
190 | 190 | |
191 | 191 | default: |
192 | - throw new \InvalidArgumentException('Invalid argument: ' . $connection); |
|
192 | + throw new \InvalidArgumentException('Invalid argument: '.$connection); |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | return $connection; |
@@ -347,14 +347,14 @@ discard block |
||
347 | 347 | |
348 | 348 | // Rename commands |
349 | 349 | return array_map( |
350 | - function (Command $command) use ($commandPrefix) { |
|
350 | + function(Command $command) use ($commandPrefix) { |
|
351 | 351 | if ($commandPrefix !== '') { |
352 | - $command->setName(preg_replace('/^odm:/', $commandPrefix . ':odm:', $command->getName())); |
|
352 | + $command->setName(preg_replace('/^odm:/', $commandPrefix.':odm:', $command->getName())); |
|
353 | 353 | |
354 | 354 | $aliases = []; |
355 | 355 | // @codeCoverageIgnoreStart |
356 | 356 | foreach ($command->getAliases() as $alias) { |
357 | - $aliases[] = preg_replace('/^odm:/', $commandPrefix . ':$1:', $alias); |
|
357 | + $aliases[] = preg_replace('/^odm:/', $commandPrefix.':$1:', $alias); |
|
358 | 358 | } |
359 | 359 | // @codeCoverageIgnoreEnd |
360 | 360 | $command->setAliases($aliases); |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | |
396 | 396 | return array_filter( |
397 | 397 | $functions, |
398 | - function ($name) { |
|
398 | + function($name) { |
|
399 | 399 | return is_string($name); |
400 | 400 | }, |
401 | 401 | ARRAY_FILTER_USE_KEY |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | |
414 | 414 | return array_filter( |
415 | 415 | $functions, |
416 | - function ($name) { |
|
416 | + function($name) { |
|
417 | 417 | return is_string($name); |
418 | 418 | }, |
419 | 419 | ARRAY_FILTER_USE_KEY |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | |
432 | 432 | return array_filter( |
433 | 433 | $functions, |
434 | - function ($name) { |
|
434 | + function($name) { |
|
435 | 435 | return is_string($name); |
436 | 436 | }, |
437 | 437 | ARRAY_FILTER_USE_KEY |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | |
450 | 450 | return array_filter( |
451 | 451 | $types, |
452 | - function ($name) { |
|
452 | + function($name) { |
|
453 | 453 | return is_string($name); |
454 | 454 | }, |
455 | 455 | ARRAY_FILTER_USE_KEY |
@@ -498,13 +498,13 @@ discard block |
||
498 | 498 | |
499 | 499 | // Rename commands |
500 | 500 | return array_map( |
501 | - function (Command $command) use ($commandPrefix) { |
|
501 | + function(Command $command) use ($commandPrefix) { |
|
502 | 502 | if ($commandPrefix !== '') { |
503 | - $command->setName(preg_replace('/^(dbal|orm):/', $commandPrefix . ':$1:', $command->getName())); |
|
503 | + $command->setName(preg_replace('/^(dbal|orm):/', $commandPrefix.':$1:', $command->getName())); |
|
504 | 504 | |
505 | 505 | $aliases = []; |
506 | 506 | foreach ($command->getAliases() as $alias) { |
507 | - $aliases[] = preg_replace('/^(dbal|orm):/', $commandPrefix . ':$1:', $alias); |
|
507 | + $aliases[] = preg_replace('/^(dbal|orm):/', $commandPrefix.':$1:', $alias); |
|
508 | 508 | } |
509 | 509 | $command->setAliases($aliases); |
510 | 510 | } |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | $annotationFiles = (array) $this->getOption('annotation_files'); |
213 | 213 | array_walk( |
214 | 214 | $annotationFiles, |
215 | - function ($file) { |
|
215 | + function($file) { |
|
216 | 216 | if (!file_exists($file)) { |
217 | 217 | throw new \RuntimeException(sprintf('"%s" file does not exist', $file)); |
218 | 218 | } |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | $annotationLoaders = (array) $this->getOption('annotation_autoloaders'); |
227 | 227 | array_walk( |
228 | 228 | $annotationLoaders, |
229 | - function ($autoLoader) { |
|
229 | + function($autoLoader) { |
|
230 | 230 | AnnotationRegistry::registerLoader($autoLoader); |
231 | 231 | } |
232 | 232 | ); |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | |
248 | 248 | return array_filter( |
249 | 249 | $namespaces, |
250 | - function ($namespace) { |
|
250 | + function($namespace) { |
|
251 | 251 | return is_string($namespace); |
252 | 252 | }, |
253 | 253 | ARRAY_FILTER_USE_KEY |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | */ |
560 | 560 | protected function getCacheDriverNamespace() |
561 | 561 | { |
562 | - return (string) $this->getOption('cache_driver_namespace', 'dc2_' . sha1(sys_get_temp_dir()) . '_'); |
|
562 | + return (string) $this->getOption('cache_driver_namespace', 'dc2_'.sha1(sys_get_temp_dir()).'_'); |
|
563 | 563 | } |
564 | 564 | |
565 | 565 | /** |
@@ -9,4 +9,4 @@ |
||
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 | |
12 | -require __DIR__ . '/../vendor/autoload.php'; |
|
12 | +require __DIR__.'/../vendor/autoload.php'; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function testManagerNoAnnotationFile() |
76 | 76 | { |
77 | - $this->builder->setOption('annotation_files', __DIR__ . '/fake_file.php'); |
|
77 | + $this->builder->setOption('annotation_files', __DIR__.'/fake_file.php'); |
|
78 | 78 | |
79 | 79 | $this->builder->getManager(true, true); |
80 | 80 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | |
190 | 190 | return array_walk( |
191 | 191 | $commands, |
192 | - function ($command) { |
|
192 | + function($command) { |
|
193 | 193 | static::assertInstanceOf(Command::class, $command); |
194 | 194 | } |
195 | 195 | ); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | |
92 | 92 | return array_walk( |
93 | 93 | $commands, |
94 | - function ($command) { |
|
94 | + function($command) { |
|
95 | 95 | static::assertInstanceOf(Command::class, $command); |
96 | 96 | } |
97 | 97 | ); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | |
92 | 92 | return array_walk( |
93 | 93 | $commands, |
94 | - function ($command) { |
|
94 | + function($command) { |
|
95 | 95 | static::assertInstanceOf(Command::class, $command); |
96 | 96 | } |
97 | 97 | ); |