@@ -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 | ); |
@@ -206,10 +206,10 @@ |
||
| 206 | 206 | $commandPrefix = (string) $this->getName(); |
| 207 | 207 | |
| 208 | 208 | $commands = array_map( |
| 209 | - function (Command $command) use ($helperSet, $commandPrefix) { |
|
| 209 | + function(Command $command) use ($helperSet, $commandPrefix) { |
|
| 210 | 210 | if ($commandPrefix !== '') { |
| 211 | 211 | $commandNames = array_map( |
| 212 | - function ($commandName) use ($commandPrefix) { |
|
| 212 | + function($commandName) use ($commandPrefix) { |
|
| 213 | 213 | $key = preg_match('/^couchdb:odm:/', $commandName) ? 'couchdb_odm' : 'couchdb'; |
| 214 | 214 | |
| 215 | 215 | return preg_replace( |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | |
| 347 | 347 | return array_filter( |
| 348 | 348 | $filters, |
| 349 | - function ($name) { |
|
| 349 | + function($name) { |
|
| 350 | 350 | return is_string($name); |
| 351 | 351 | }, |
| 352 | 352 | ARRAY_FILTER_USE_KEY |
@@ -384,10 +384,10 @@ discard block |
||
| 384 | 384 | $commandPrefix = (string) $this->getName(); |
| 385 | 385 | |
| 386 | 386 | $commands = array_map( |
| 387 | - function (Command $command) use ($helperSet, $commandPrefix) { |
|
| 387 | + function(Command $command) use ($helperSet, $commandPrefix) { |
|
| 388 | 388 | if ($commandPrefix !== '') { |
| 389 | 389 | $commandNames = array_map( |
| 390 | - function ($commandName) use ($commandPrefix) { |
|
| 390 | + function($commandName) use ($commandPrefix) { |
|
| 391 | 391 | return preg_replace('/^odm:/', 'odm:' . $commandPrefix . ':', $commandName); |
| 392 | 392 | }, |
| 393 | 393 | array_merge([$command->getName()], $command->getAliases()) |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | |
| 473 | 473 | return array_filter( |
| 474 | 474 | $functions, |
| 475 | - function ($name) { |
|
| 475 | + function($name) { |
|
| 476 | 476 | return is_string($name); |
| 477 | 477 | }, |
| 478 | 478 | ARRAY_FILTER_USE_KEY |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | |
| 491 | 491 | return array_filter( |
| 492 | 492 | $functions, |
| 493 | - function ($name) { |
|
| 493 | + function($name) { |
|
| 494 | 494 | return is_string($name); |
| 495 | 495 | }, |
| 496 | 496 | ARRAY_FILTER_USE_KEY |
@@ -508,7 +508,7 @@ discard block |
||
| 508 | 508 | |
| 509 | 509 | return array_filter( |
| 510 | 510 | $functions, |
| 511 | - function ($name) { |
|
| 511 | + function($name) { |
|
| 512 | 512 | return is_string($name); |
| 513 | 513 | }, |
| 514 | 514 | ARRAY_FILTER_USE_KEY |
@@ -526,7 +526,7 @@ discard block |
||
| 526 | 526 | |
| 527 | 527 | return array_filter( |
| 528 | 528 | $types, |
| 529 | - function ($name) { |
|
| 529 | + function($name) { |
|
| 530 | 530 | return is_string($name); |
| 531 | 531 | }, |
| 532 | 532 | ARRAY_FILTER_USE_KEY |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | |
| 545 | 545 | return array_filter( |
| 546 | 546 | $filters, |
| 547 | - function ($name) { |
|
| 547 | + function($name) { |
|
| 548 | 548 | return is_string($name); |
| 549 | 549 | }, |
| 550 | 550 | ARRAY_FILTER_USE_KEY |
@@ -597,10 +597,10 @@ discard block |
||
| 597 | 597 | $commandPrefix = (string) $this->getName(); |
| 598 | 598 | |
| 599 | 599 | $commands = array_map( |
| 600 | - function (Command $command) use ($helperSet, $commandPrefix) { |
|
| 600 | + function(Command $command) use ($helperSet, $commandPrefix) { |
|
| 601 | 601 | if ($commandPrefix !== '') { |
| 602 | 602 | $commandNames = array_map( |
| 603 | - function ($commandName) use ($commandPrefix) { |
|
| 603 | + function($commandName) use ($commandPrefix) { |
|
| 604 | 604 | return preg_replace('/^(dbal|orm):/', '$1:' . $commandPrefix . ':', $commandName); |
| 605 | 605 | }, |
| 606 | 606 | array_merge([$command->getName()], $command->getAliases()) |