@@ -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()) |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | |
478 | 478 | return array_filter( |
479 | 479 | $functions, |
480 | - function ($name) { |
|
480 | + function($name) { |
|
481 | 481 | return is_string($name); |
482 | 482 | }, |
483 | 483 | ARRAY_FILTER_USE_KEY |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | |
496 | 496 | return array_filter( |
497 | 497 | $functions, |
498 | - function ($name) { |
|
498 | + function($name) { |
|
499 | 499 | return is_string($name); |
500 | 500 | }, |
501 | 501 | ARRAY_FILTER_USE_KEY |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | |
514 | 514 | return array_filter( |
515 | 515 | $functions, |
516 | - function ($name) { |
|
516 | + function($name) { |
|
517 | 517 | return is_string($name); |
518 | 518 | }, |
519 | 519 | ARRAY_FILTER_USE_KEY |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | |
532 | 532 | return array_filter( |
533 | 533 | $types, |
534 | - function ($name) { |
|
534 | + function($name) { |
|
535 | 535 | return is_string($name); |
536 | 536 | }, |
537 | 537 | ARRAY_FILTER_USE_KEY |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | |
550 | 550 | return array_filter( |
551 | 551 | $mappingTypes, |
552 | - function ($name) { |
|
552 | + function($name) { |
|
553 | 553 | return is_string($name); |
554 | 554 | }, |
555 | 555 | ARRAY_FILTER_USE_KEY |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | |
568 | 568 | return array_filter( |
569 | 569 | $filters, |
570 | - function ($name) { |
|
570 | + function($name) { |
|
571 | 571 | return is_string($name); |
572 | 572 | }, |
573 | 573 | ARRAY_FILTER_USE_KEY |
@@ -620,10 +620,10 @@ discard block |
||
620 | 620 | $commandPrefix = (string) $this->getName(); |
621 | 621 | |
622 | 622 | $commands = array_map( |
623 | - function (Command $command) use ($helperSet, $commandPrefix) { |
|
623 | + function(Command $command) use ($helperSet, $commandPrefix) { |
|
624 | 624 | if ($commandPrefix !== '') { |
625 | 625 | $commandNames = array_map( |
626 | - function ($commandName) use ($commandPrefix) { |
|
626 | + function($commandName) use ($commandPrefix) { |
|
627 | 627 | return preg_replace('/^(dbal|orm):/', '$1:' . $commandPrefix . ':', $commandName); |
628 | 628 | }, |
629 | 629 | array_merge([$command->getName()], $command->getAliases()) |