Test Failed
Pull Request — master (#9)
by Nicolas
02:36
created
src/Workers/MessageAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,14 +108,14 @@
 block discarded – undo
108 108
     {
109 109
         $retryHeader = $this->getHeader(\Puzzle\AMQP\Consumers\Retry::DEFAULT_RETRY_HEADER);
110 110
 
111
-        return (!empty($retryHeader) && (int) $retryHeader === $retryOccurence);
111
+        return ( ! empty($retryHeader) && (int) $retryHeader === $retryOccurence);
112 112
     }
113 113
 
114 114
     public function getRoutingKeyFromHeader()
115 115
     {
116 116
         $headers = $this->getHeaders();
117 117
 
118
-        if(! array_key_exists('routing_key', $headers))
118
+        if( ! array_key_exists('routing_key', $headers))
119 119
         {
120 120
             return null;
121 121
         }
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
         // FIXME TODO
213 213
         $decodedBody = $readableMessage->getDecodedBody();
214
-        if(! is_array($decodedBody))
214
+        if( ! is_array($decodedBody))
215 215
         {
216 216
             $decodedBody = array($decodedBody);
217 217
         }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         $skippedAttributes = array('timestamp', 'headers', 'app_id', 'routing_key');
226 226
         foreach($attributes as $attributeName => $value)
227 227
         {
228
-            if(! in_array($attributeName, $skippedAttributes))
228
+            if( ! in_array($attributeName, $skippedAttributes))
229 229
             {
230 230
                 $writableMessage->setAttribute($attributeName, $value);
231 231
             }
Please login to merge, or discard this patch.
src/Messages/InMemory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@
 block discarded – undo
26 26
     {
27 27
         $retryHeader = $this->getHeader(\Puzzle\AMQP\Consumers\Retry::DEFAULT_RETRY_HEADER);
28 28
 
29
-        return (!empty($retryHeader) && (int) $retryHeader === $retryOccurence);
29
+        return ( ! empty($retryHeader) && (int) $retryHeader === $retryOccurence);
30 30
     }
31 31
 
32 32
     public function getRoutingKeyFromHeader()
33 33
     {
34 34
         $headers = $this->getHeaders();
35 35
 
36
-        if(! array_key_exists('routing_key', $headers))
36
+        if( ! array_key_exists('routing_key', $headers))
37 37
         {
38 38
             return null;
39 39
         }
Please login to merge, or discard this patch.