Passed
Pull Request — master (#37)
by Nicolas
03:21
created
src/Workers/MessageAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
         $skippedAttributes = array('timestamp', 'headers', 'app_id', 'routing_key');
110 110
         foreach($attributes as $attributeName => $value)
111 111
         {
112
-            if(! in_array($attributeName, $skippedAttributes))
112
+            if( ! in_array($attributeName, $skippedAttributes))
113 113
             {
114 114
                 $writable->setAttribute($attributeName, $value);
115 115
             }
Please login to merge, or discard this patch.
features/bootstrap/ConsumeContext.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@  discard block
 block discarded – undo
103 103
         $this->theMessageIs(self::JSON_ROUTING_KEY, ContentType::JSON);
104 104
     }
105 105
     
106
+    /**
107
+     * @param string $routingKey
108
+     */
106 109
     private function theMessageIs($routingKey, $contentType)
107 110
     {
108 111
         $firstMessage = $this->consumedMessages[0];
@@ -145,6 +148,9 @@  discard block
 block discarded – undo
145 148
         $this->oneOfTheMessagesIs(ContentType::JSON, self::JSON_ROUTING_KEY);
146 149
     }
147 150
     
151
+    /**
152
+     * @param string $routingKey
153
+     */
148 154
     private function oneOfTheMessagesIs($contentType, $routingKey)
149 155
     {
150 156
         $found = null;
Please login to merge, or discard this patch.
src/Messages/Processors/AddHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         
29 29
         foreach($this->headers as $header => $value)
30 30
         {
31
-            if(! isset($alreadySetHeaders[$header]))
31
+            if( ! isset($alreadySetHeaders[$header]))
32 32
             {
33 33
                 $message->addHeader($header, $value);
34 34
             }
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
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             'retry_key_pattern' => sprintf(self::RETRY_ROUTING_KEY_PATTERN, $workerContext->getQueueName()),
52 52
         );
53 53
 
54
-        if(! empty($this->retries))
54
+        if( ! empty($this->retries))
55 55
         {
56 56
             $options['retry_attempts'] = $this->retries;
57 57
         }
Please login to merge, or discard this patch.
src/Workers/ReadableMessageModifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         $this->originalMessage = $originalMessage;
21 21
         
22
-        $this->newRoutingKey= $originalMessage->getRoutingKey();
22
+        $this->newRoutingKey = $originalMessage->getRoutingKey();
23 23
         $this->newBody = null;
24 24
         
25 25
         $this->newAttributeValues = [];
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
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     
48 48
     public function changeText($text)
49 49
     {
50
-        if(! $this->isConvertibleToString($text))
50
+        if( ! $this->isConvertibleToString($text))
51 51
         {
52 52
             throw new \LogicException('Body of type Text must be string convertible.');
53 53
         }
Please login to merge, or discard this patch.
src/Messages/Processors/GZip.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $this->encodingMode = FORCE_GZIP;
37 37
         $this->logger = new NullLogger();
38 38
         
39
-        if(! $bodyFactory instanceof BodyFactory)
39
+        if( ! $bodyFactory instanceof BodyFactory)
40 40
         {
41 41
             $bodyFactory = new Standard();
42 42
         }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function setCompressionLevel($compressionLevel = -1)
50 50
     {
51
-        if(! $this->isCompressionLevelValid($compressionLevel))
51
+        if( ! $this->isCompressionLevelValid($compressionLevel))
52 52
         {
53 53
             $this->logWarning(sprintf(
54 54
                 "Invalid compression level (%s)",
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     
80 80
     public function setEncodingMode($mode)
81 81
     {
82
-        if(! is_scalar($mode) || ! in_array($mode, [FORCE_GZIP, FORCE_DEFLATE]))
82
+        if( ! is_scalar($mode) || ! in_array($mode, [FORCE_GZIP, FORCE_DEFLATE]))
83 83
         {
84 84
             $this->logWarning(sprintf(
85 85
                 "Invalid encoding mode (%s)",
Please login to merge, or discard this patch.
src/Workers/ProcessorInterfaceAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $this->workerContext = $workerContext;
23 23
         $this->eventDispatcher = new NullEventDispatcher();
24 24
         
25
-        if(! $factory instanceof MessageAdapterFactory)
25
+        if( ! $factory instanceof MessageAdapterFactory)
26 26
         {
27 27
             $factory = new MessageAdapterFactory();
28 28
         }
Please login to merge, or discard this patch.
src/Workers/MessageAdapterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     public function __construct(BodyFactory $bodyFactory = null)
14 14
     {
15
-        if(! $bodyFactory instanceof BodyFactory)
15
+        if( ! $bodyFactory instanceof BodyFactory)
16 16
         {
17 17
             $bodyFactory = new Standard();
18 18
         }
Please login to merge, or discard this patch.