@@ -208,9 +208,9 @@ |
||
| 208 | 208 | |
| 209 | 209 | if ($commandPrefix !== '') { |
| 210 | 210 | $commands = array_map( |
| 211 | - function (Command $command) use ($commandPrefix) { |
|
| 211 | + function(Command $command) use ($commandPrefix) { |
|
| 212 | 212 | $commandNames = array_map( |
| 213 | - function ($commandName) use ($commandPrefix) { |
|
| 213 | + function($commandName) use ($commandPrefix) { |
|
| 214 | 214 | return preg_replace('/^couchdb:/', $commandPrefix . ':', $commandName); |
| 215 | 215 | }, |
| 216 | 216 | 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()) |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $annotationFiles = (array) $this->getOption('annotation_files'); |
| 160 | 160 | array_walk( |
| 161 | 161 | $annotationFiles, |
| 162 | - function ($file) { |
|
| 162 | + function($file) { |
|
| 163 | 163 | if (!file_exists($file)) { |
| 164 | 164 | throw new \RuntimeException(sprintf('"%s" file does not exist', $file)); |
| 165 | 165 | } |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $annotationLoaders = (array) $this->getOption('annotation_autoloaders'); |
| 174 | 174 | array_walk( |
| 175 | 175 | $annotationLoaders, |
| 176 | - function ($autoLoader) { |
|
| 176 | + function($autoLoader) { |
|
| 177 | 177 | AnnotationRegistry::registerLoader($autoLoader); |
| 178 | 178 | } |
| 179 | 179 | ); |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | |
| 191 | 191 | return array_filter( |
| 192 | 192 | $namespaces, |
| 193 | - function ($namespace) { |
|
| 193 | + function($namespace) { |
|
| 194 | 194 | return is_string($namespace); |
| 195 | 195 | }, |
| 196 | 196 | ARRAY_FILTER_USE_KEY |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | |
| 504 | 504 | return array_filter( |
| 505 | 505 | $eventSubscribers, |
| 506 | - function ($subscriber) { |
|
| 506 | + function($subscriber) { |
|
| 507 | 507 | return $subscriber instanceof EventSubscriber; |
| 508 | 508 | } |
| 509 | 509 | ); |