Completed
Pull Request — master (#15)
by Alex
01:44
created
src/Cmp/Queues/Infrastructure/AWS/v20121105/Queue/QueueWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                 'TopicArn' => $this->topicArn,
64 64
                 'Message' => json_encode($message),
65 65
             ]);
66
-        } catch(\Exception $e) {
66
+        } catch (\Exception $e) {
67 67
             $this->logger->error('Error writing messages', ['exception' => $e]);
68 68
             throw new WriterException($e->getMessage(), $e->getCode());
69 69
         }
Please login to merge, or discard this patch.
src/Cmp/Queues/Infrastructure/AWS/v20121105/Queue/QueueReader.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
                         'Condition' => [
171 171
                                 'ArnEquals' => [
172 172
                                     'aws:SourceArn' => $topicArn,
173
-                           ],
173
+                            ],
174 174
                         ],
175 175
                     ],
176 176
                 ]),
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,15 +68,15 @@
 block discarded – undo
68 68
      * @throws TimeoutReaderException
69 69
      * @throws ReaderException
70 70
      */
71
-    public function read(callable $callback, $timeout=0)
71
+    public function read(callable $callback, $timeout = 0)
72 72
     {
73 73
         $this->messageHandler->setCallback($callback);
74 74
 
75 75
         try {
76 76
             $this->consume($timeout);
77
-        } catch(TimeoutReaderException $e) {
77
+        } catch (TimeoutReaderException $e) {
78 78
             throw $e;
79
-        } catch(\Exception $e) {
79
+        } catch (\Exception $e) {
80 80
             throw new ReaderException("Error occurred while reading", 0, $e);
81 81
         }
82 82
     }
Please login to merge, or discard this patch.