Passed
Pull Request — master (#41)
by Nicolas
07:46 queued 33s
created
src/Clients/ChunkedMessageClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         $this->changeRoutingKeyPrefix(self::DEFAULT_ROUTING_KEY_PREFIX);
22 22
 
23
-        if(! $memory instanceof MemoryManagementStrategy)
23
+        if( ! $memory instanceof MemoryManagementStrategy)
24 24
         {
25 25
             $memory = new NullMemoryManagementStrategy();
26 26
         }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         $streamedContent = $chunkedMessage->getBodyInTransportFormat();
45 45
 
46
-        if(! $streamedContent instanceof \Generator)
46
+        if( ! $streamedContent instanceof \Generator)
47 47
         {
48 48
             return $this->client->publish($exchangeName, $chunkedMessage);
49 49
         }
Please login to merge, or discard this patch.
src/Messages/Bodies/StreamedFile.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
 
53 53
         $stream = fopen($this->filepath, 'r');
54 54
 
55
-        while(! feof($stream))
55
+        while( ! feof($stream))
56 56
         {
57 57
             $content = fread($stream, $this->chunkSize->toBytes());
58 58
             $playhead++;
Please login to merge, or discard this patch.
src/Messages/Chunks/ChunkedMessageMetadata.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
         foreach($requiredKeys as $key)
28 28
         {
29
-            if(! isset($headers[$key]))
29
+            if( ! isset($headers[$key]))
30 30
             {
31 31
                 throw new \InvalidArgumentException("Missing $key in chunked message metadata");
32 32
             }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         {
29 29
             if(! isset($headers[$key]))
30 30
             {
31
-                throw new \InvalidArgumentException("Missing $key in chunked message metadata");
31
+                throw new \InvalidArgumentException("missing $key in chunked message metadata");
32 32
             }
33 33
         }
34 34
 
Please login to merge, or discard this patch.
src/Messages/Chunks/ChunkMetadata.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
         foreach($requiredKeys as $key)
24 24
         {
25
-            if(! isset($headers[$key]))
25
+            if( ! isset($headers[$key]))
26 26
             {
27 27
                 throw new \InvalidArgumentException("Missing $key in chunk metadata");
28 28
             }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         {
25 25
             if(! isset($headers[$key]))
26 26
             {
27
-                throw new \InvalidArgumentException("Missing $key in chunk metadata");
27
+                throw new \InvalidArgumentException("missing $key in chunk metadata");
28 28
             }
29 29
         }
30 30
 
Please login to merge, or discard this patch.