@@ -63,7 +63,7 @@ |
||
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 | } |
@@ -170,7 +170,7 @@ |
||
170 | 170 | 'Condition' => [ |
171 | 171 | 'ArnEquals' => [ |
172 | 172 | 'aws:SourceArn' => $topicArn, |
173 | - ], |
|
173 | + ], |
|
174 | 174 | ], |
175 | 175 | ], |
176 | 176 | ]), |
@@ -68,15 +68,15 @@ |
||
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 | } |