Completed
Push — master ( 6dd5c7...9b75d7 )
by Tomasz
03:38
created
src/Gendoria/CommandQueueBundle/DependencyInjection/Pass/PoolsPass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'];
Please login to merge, or discard this patch.
src/Gendoria/CommandQueueBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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"')
Please login to merge, or discard this patch.
CommandQueueBundle/DependencyInjection/Pass/CommandProcessorPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
CommandQueueBundle/ProcessorFactory/ContainerAwareProcessorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.