Test Failed
Pull Request — master (#9)
by Nicolas
06:10
created
src/Consumers/InstantRetry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@
 block discarded – undo
43 43
             'max_execution_time' => self::DEFAULT_MAX_EXECUTION_TIME,
44 44
         );
45 45
 
46
-        if(!empty($this->retries))
46
+        if( ! empty($this->retries))
47 47
         {
48 48
             $options['instant_retry_attempts'] = $this->retries;
49 49
         }
50 50
 
51
-        if(!empty($this->delay))
51
+        if( ! empty($this->delay))
52 52
         {
53 53
             $options['instant_retry_delay'] = $this->delay * 1000000; //computed in microseconds
54 54
         }
Please login to merge, or discard this patch.
src/Consumers/Retry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             'retry_key_pattern' => sprintf(self::RETRY_ROUTING_KEY_PATTERN, $workerContext->queue),
53 53
         );
54 54
 
55
-        if(! empty($this->retries))
55
+        if( ! empty($this->retries))
56 56
         {
57 57
             $options['retry_attempts'] = $this->retries;
58 58
         }
Please login to merge, or discard this patch.
src/Commands/Worker/ListAll.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $workerNamePattern = $input->getArgument('workerNamePattern');
40 40
 
41
-        if(!empty($workerNamePattern))
41
+        if( ! empty($workerNamePattern))
42 42
         {
43 43
             $comment = sprintf('List of worker with following pattern: %s', $workerNamePattern);
44 44
             $services = $this->workerProvider->listWithRegexFilter($workerNamePattern);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
         $output->writeln(sprintf('<comment>%s</comment>', $comment));
53 53
 
54
-        if(empty($services) || !is_array($services))
54
+        if(empty($services) || ! is_array($services))
55 55
         {
56 56
             $output->writeln('<error>No worker found</error>');
57 57
             return;
Please login to merge, or discard this patch.
src/Commands/GenerateSupervisorConfigurationFiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     {
79 79
         $value = $input->getOption($name);
80 80
 
81
-        if(! in_array($value, ['true', 'false']))
81
+        if( ! in_array($value, ['true', 'false']))
82 82
         {
83 83
             throw new \InvalidArgumentException(sprintf('Invalid value "%s" for option %s, expecting boolean.', $value, $name));
84 84
         }
Please login to merge, or discard this patch.
src/Clients/Decorators/PrefixedExchangesClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $exchangeParts = [];
37 37
         
38
-        if(! empty($this->exchangesPrefix))
38
+        if( ! empty($this->exchangesPrefix))
39 39
         {
40 40
             $exchangeParts[] = trim($this->exchangesPrefix);
41 41
         }
Please login to merge, or discard this patch.
src/Clients/Pecl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     private function ensureIsConnected()
32 32
     {
33
-        if(! $this->channel instanceof \AMQPChannel)
33
+        if( ! $this->channel instanceof \AMQPChannel)
34 34
         {
35 35
             $configuration = new PrefixedConfiguration($this->configuration, 'amqp/broker');
36 36
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         $ex = new \AMQPExchange($this->channel);
110 110
 
111
-        if(!empty($exchangeName))
111
+        if( ! empty($exchangeName))
112 112
         {
113 113
             $ex->setName($exchangeName);
114 114
             $ex->setType($type);
Please login to merge, or discard this patch.
src/Messages/Bodies/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     
33 33
     public function changeContent($content)
34 34
     {
35
-        if(! is_array($content))
35
+        if( ! is_array($content))
36 36
         {
37 37
             $content = array($content);
38 38
         }
Please login to merge, or discard this patch.
src/Messages/Bodies/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     
28 28
     public function changeText($text)
29 29
     {
30
-        if(! is_array($text))
30
+        if( ! is_array($text))
31 31
         {
32 32
             $text = array($text);
33 33
         }
Please login to merge, or discard this patch.
src/Messages/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
         $skippedAttributes = array('timestamp', 'headers', 'app_id', 'routing_key');
219 219
         foreach($attributes as $attributeName => $value)
220 220
         {
221
-            if(! in_array($attributeName, $skippedAttributes))
221
+            if( ! in_array($attributeName, $skippedAttributes))
222 222
             {
223 223
                 $writableMessage->setAttribute($attributeName, $value);
224 224
             }
Please login to merge, or discard this patch.