@@ -355,9 +355,9 @@ |
||
| 355 | 355 | |
| 356 | 356 | if ($commandPrefix !== '') { |
| 357 | 357 | $commands = array_map( |
| 358 | - function (Command $command) use ($commandPrefix) { |
|
| 358 | + function(Command $command) use ($commandPrefix) { |
|
| 359 | 359 | $commandNames = array_map( |
| 360 | - function ($commandName) use ($commandPrefix) { |
|
| 360 | + function($commandName) use ($commandPrefix) { |
|
| 361 | 361 | return preg_replace('/^odm:/', $commandPrefix . ':odm:', $commandName); |
| 362 | 362 | }, |
| 363 | 363 | array_merge([$command->getName()], $command->getAliases()) |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | |
| 423 | 423 | return array_filter( |
| 424 | 424 | $functions, |
| 425 | - function ($name) { |
|
| 425 | + function($name) { |
|
| 426 | 426 | return is_string($name); |
| 427 | 427 | }, |
| 428 | 428 | ARRAY_FILTER_USE_KEY |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | |
| 441 | 441 | return array_filter( |
| 442 | 442 | $functions, |
| 443 | - function ($name) { |
|
| 443 | + function($name) { |
|
| 444 | 444 | return is_string($name); |
| 445 | 445 | }, |
| 446 | 446 | ARRAY_FILTER_USE_KEY |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | |
| 459 | 459 | return array_filter( |
| 460 | 460 | $functions, |
| 461 | - function ($name) { |
|
| 461 | + function($name) { |
|
| 462 | 462 | return is_string($name); |
| 463 | 463 | }, |
| 464 | 464 | ARRAY_FILTER_USE_KEY |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | |
| 477 | 477 | return array_filter( |
| 478 | 478 | $types, |
| 479 | - function ($name) { |
|
| 479 | + function($name) { |
|
| 480 | 480 | return is_string($name); |
| 481 | 481 | }, |
| 482 | 482 | ARRAY_FILTER_USE_KEY |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | |
| 495 | 495 | return array_filter( |
| 496 | 496 | $filters, |
| 497 | - function ($name) { |
|
| 497 | + function($name) { |
|
| 498 | 498 | return is_string($name); |
| 499 | 499 | }, |
| 500 | 500 | ARRAY_FILTER_USE_KEY |
@@ -547,9 +547,9 @@ discard block |
||
| 547 | 547 | |
| 548 | 548 | if ($commandPrefix !== '') { |
| 549 | 549 | $commands = array_map( |
| 550 | - function (Command $command) use ($commandPrefix) { |
|
| 550 | + function(Command $command) use ($commandPrefix) { |
|
| 551 | 551 | $commandNames = array_map( |
| 552 | - function ($commandName) use ($commandPrefix) { |
|
| 552 | + function($commandName) use ($commandPrefix) { |
|
| 553 | 553 | return preg_replace('/^(dbal|orm):/', $commandPrefix . ':$1:', $commandName); |
| 554 | 554 | }, |
| 555 | 555 | array_merge([$command->getName()], $command->getAliases()) |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | |
| 376 | 376 | return array_filter( |
| 377 | 377 | $filters, |
| 378 | - function ($name) { |
|
| 378 | + function($name) { |
|
| 379 | 379 | return is_string($name); |
| 380 | 380 | }, |
| 381 | 381 | ARRAY_FILTER_USE_KEY |
@@ -412,9 +412,9 @@ discard block |
||
| 412 | 412 | |
| 413 | 413 | if ($commandPrefix !== '') { |
| 414 | 414 | $commands = array_map( |
| 415 | - function (Command $command) use ($commandPrefix) { |
|
| 415 | + function(Command $command) use ($commandPrefix) { |
|
| 416 | 416 | $commandNames = array_map( |
| 417 | - function ($commandName) use ($commandPrefix) { |
|
| 417 | + function($commandName) use ($commandPrefix) { |
|
| 418 | 418 | return preg_replace('/^odm:/', $commandPrefix . ':odm:', $commandName); |
| 419 | 419 | }, |
| 420 | 420 | array_merge([$command->getName()], $command->getAliases()) |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $annotationFiles = (array) $this->getOption('annotation_files'); |
| 139 | 139 | array_walk( |
| 140 | 140 | $annotationFiles, |
| 141 | - function ($file) { |
|
| 141 | + function($file) { |
|
| 142 | 142 | if (!file_exists($file)) { |
| 143 | 143 | throw new \RuntimeException(sprintf('"%s" file does not exist', $file)); |
| 144 | 144 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $annotationLoaders = (array) $this->getOption('annotation_autoloaders'); |
| 153 | 153 | array_walk( |
| 154 | 154 | $annotationLoaders, |
| 155 | - function ($autoLoader) { |
|
| 155 | + function($autoLoader) { |
|
| 156 | 156 | AnnotationRegistry::registerLoader($autoLoader); |
| 157 | 157 | } |
| 158 | 158 | ); |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | |
| 170 | 170 | return array_filter( |
| 171 | 171 | $namespaces, |
| 172 | - function ($namespace) { |
|
| 172 | + function($namespace) { |
|
| 173 | 173 | return is_string($namespace); |
| 174 | 174 | }, |
| 175 | 175 | ARRAY_FILTER_USE_KEY |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | |
| 495 | 495 | return array_filter( |
| 496 | 496 | $eventSubscribers, |
| 497 | - function ($name) { |
|
| 497 | + function($name) { |
|
| 498 | 498 | return is_string($name); |
| 499 | 499 | }, |
| 500 | 500 | ARRAY_FILTER_USE_KEY |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | /** |
| 303 | 303 | * Get annotation metadata driver. |
| 304 | 304 | * |
| 305 | - * @param array $paths |
|
| 305 | + * @param string $paths |
|
| 306 | 306 | * |
| 307 | 307 | * @return MappingDriver |
| 308 | 308 | */ |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | /** |
| 312 | 312 | * Get XML metadata driver. |
| 313 | 313 | * |
| 314 | - * @param array $paths |
|
| 314 | + * @param string $paths |
|
| 315 | 315 | * @param string|null $extension |
| 316 | 316 | * |
| 317 | 317 | * @return MappingDriver |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | /** |
| 322 | 322 | * Get YAML metadata driver. |
| 323 | 323 | * |
| 324 | - * @param array $paths |
|
| 324 | + * @param string $paths |
|
| 325 | 325 | * @param string|null $extension |
| 326 | 326 | * |
| 327 | 327 | * @return MappingDriver |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | /** |
| 344 | 344 | * Get PHP metadata driver. |
| 345 | 345 | * |
| 346 | - * @param array $paths |
|
| 346 | + * @param string $paths |
|
| 347 | 347 | * |
| 348 | 348 | * @return PHPDriver |
| 349 | 349 | */ |