@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | )); |
| 58 | 58 | } |
| 59 | 59 | if (!$container->hasDefinition($sendServiceId)) { |
| 60 | - throw new InvalidArgumentException('Non existing send driver service provided: ' . $poolData['send_driver'].'.'); |
|
| 60 | + throw new InvalidArgumentException('Non existing send driver service provided: '.$poolData['send_driver'].'.'); |
|
| 61 | 61 | } |
| 62 | 62 | $sendDriverReflection = new ReflectionClass($container->getDefinition($sendServiceId)->getClass()); |
| 63 | 63 | if (!$sendDriverReflection->implementsInterface(SendDriverInterface::class)) { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | private function setupSingleQueueManager($id, Definition $def, array $tags, array $pools) |
| 87 | 87 | { |
| 88 | 88 | if (count($tags) > 1) { |
| 89 | - throw new InvalidArgumentException('Only single ' . self::QUEUE_MANAGER_TAG . ' tag possible on service ' . $id.'.'); |
|
| 89 | + throw new InvalidArgumentException('Only single '.self::QUEUE_MANAGER_TAG.' tag possible on service '.$id.'.'); |
|
| 90 | 90 | } |
| 91 | 91 | if (!empty($tags[0]['pool'])) { |
| 92 | 92 | $poolName = $tags[0]['pool']; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | ->arrayNode('pools') |
| 53 | 53 | ->requiresAtLeastOneElement() |
| 54 | 54 | ->validate() |
| 55 | - ->ifTrue(function (array $value) { |
|
| 55 | + ->ifTrue(function(array $value) { |
|
| 56 | 56 | return !array_key_exists('default', $value); |
| 57 | 57 | }) |
| 58 | 58 | ->thenInvalid('Default service not present') |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | ->scalarNode('send_driver') |
| 63 | 63 | ->isRequired() |
| 64 | 64 | ->validate() |
| 65 | - ->ifTrue(function ($value) { |
|
| 65 | + ->ifTrue(function($value) { |
|
| 66 | 66 | return !preg_match('/^@[a-zA-Z\.\-0-9\_]+$/', $value); |
| 67 | 67 | }) |
| 68 | 68 | ->thenInvalid('Malformed service ID "%s"') |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | } |
| 92 | 92 | $refl = new ReflectionClass($def->getClass()); |
| 93 | 93 | if (!$refl->implementsInterface(CommandProcessorInterface::class)) { |
| 94 | - throw new InvalidArgumentException(sprintf('The service "%s" has to implement ' . CommandProcessorInterface::class . '.', $id)); |
|
| 94 | + throw new InvalidArgumentException(sprintf('The service "%s" has to implement '.CommandProcessorInterface::class.'.', $id)); |
|
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | } |
@@ -61,6 +61,7 @@ |
||
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * {@inheritdoc} |
| 64 | + * @param string $commandClassName |
|
| 64 | 65 | */ |
| 65 | 66 | public function hasProcessor($commandClassName) |
| 66 | 67 | { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | public function hasProcessor($commandClassName) |
| 66 | 66 | { |
| 67 | - return parent::hasProcessor($commandClassName) || array_key_exists($commandClassName, $this->serviceIds) ; |
|
| 67 | + return parent::hasProcessor($commandClassName) || array_key_exists($commandClassName, $this->serviceIds); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |