@@ -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 | ); |
@@ -188,13 +188,13 @@ |
||
| 188 | 188 | |
| 189 | 189 | if ($commandPrefix !== '') { |
| 190 | 190 | $commands = array_map( |
| 191 | - function (Command $command) use ($commandPrefix) { |
|
| 192 | - $command->setName(preg_replace('/^couchdb:/', $commandPrefix . ':', $command->getName())); |
|
| 191 | + function(Command $command) use ($commandPrefix) { |
|
| 192 | + $command->setName(preg_replace('/^couchdb:/', $commandPrefix.':', $command->getName())); |
|
| 193 | 193 | |
| 194 | 194 | $aliases = []; |
| 195 | 195 | // @codeCoverageIgnoreStart |
| 196 | 196 | foreach ($command->getAliases() as $alias) { |
| 197 | - $aliases[] = preg_replace('/^couchdb:/', $commandPrefix . ':$1:', $alias); |
|
| 197 | + $aliases[] = preg_replace('/^couchdb:/', $commandPrefix.':$1:', $alias); |
|
| 198 | 198 | } |
| 199 | 199 | // @codeCoverageIgnoreEnd |
| 200 | 200 | $command->setAliases($aliases); |
@@ -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,13 +345,13 @@ discard block |
||
| 345 | 345 | |
| 346 | 346 | if ($commandPrefix !== '') { |
| 347 | 347 | $commands = array_map( |
| 348 | - function (Command $command) use ($commandPrefix) { |
|
| 349 | - $command->setName(preg_replace('/^odm:/', $commandPrefix . ':odm:', $command->getName())); |
|
| 348 | + function(Command $command) use ($commandPrefix) { |
|
| 349 | + $command->setName(preg_replace('/^odm:/', $commandPrefix.':odm:', $command->getName())); |
|
| 350 | 350 | |
| 351 | 351 | $aliases = []; |
| 352 | 352 | // @codeCoverageIgnoreStart |
| 353 | 353 | foreach ($command->getAliases() as $alias) { |
| 354 | - $aliases[] = preg_replace('/^odm:/', $commandPrefix . ':$1:', $alias); |
|
| 354 | + $aliases[] = preg_replace('/^odm:/', $commandPrefix.':$1:', $alias); |
|
| 355 | 355 | } |
| 356 | 356 | // @codeCoverageIgnoreEnd |
| 357 | 357 | $command->setAliases($aliases); |
@@ -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,12 +496,12 @@ discard block |
||
| 496 | 496 | |
| 497 | 497 | if ($commandPrefix !== '') { |
| 498 | 498 | $commands = array_map( |
| 499 | - function (Command $command) use ($commandPrefix) { |
|
| 500 | - $command->setName(preg_replace('/^(dbal|orm):/', $commandPrefix . ':$1:', $command->getName())); |
|
| 499 | + function(Command $command) use ($commandPrefix) { |
|
| 500 | + $command->setName(preg_replace('/^(dbal|orm):/', $commandPrefix.':$1:', $command->getName())); |
|
| 501 | 501 | |
| 502 | 502 | $aliases = []; |
| 503 | 503 | foreach ($command->getAliases() as $alias) { |
| 504 | - $aliases[] = preg_replace('/^(dbal|orm):/', $commandPrefix . ':$1:', $alias); |
|
| 504 | + $aliases[] = preg_replace('/^(dbal|orm):/', $commandPrefix.':$1:', $alias); |
|
| 505 | 505 | } |
| 506 | 506 | $command->setAliases($aliases); |
| 507 | 507 | |