Completed
Push — master ( e9aa87...4d1ca6 )
by Tomasz
08:27
created
Gendoria/CommandQueueBundle/CommandQueue/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.
src/Gendoria/CommandQueueBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 ->isRequired()
47 47
                 ->requiresAtLeastOneElement()
48 48
                 ->validate()
49
-                ->ifTrue(function (array $value) {
49
+                ->ifTrue(function(array $value) {
50 50
                         return !array_key_exists('default', $value);
51 51
                 })
52 52
                     ->thenInvalid('Default service not present')
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                         ->scalarNode('send_driver')
57 57
                             ->isRequired()
58 58
                             ->validate()
59
-                            ->ifTrue(function ($value) {
59
+                            ->ifTrue(function($value) {
60 60
                                     return !preg_match('/^@[a-zA-Z\.\-0-9\_]+$/', $value);
61 61
                             })
62 62
                                 ->thenInvalid('Malformed service ID "%s"')
Please login to merge, or discard this patch.
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.