@@ -87,7 +87,7 @@ |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param $formatter |
|
| 90 | + * @param \Closure $formatter |
|
| 91 | 91 | * @return Producer $this |
| 92 | 92 | */ |
| 93 | 93 | public function withFormatter($formatter) |
@@ -51,8 +51,8 @@ |
||
| 51 | 51 | { |
| 52 | 52 | $this->connection = $connection; |
| 53 | 53 | |
| 54 | - $this->withFormatter(function ($message) { |
|
| 55 | - return (string)$message; |
|
| 54 | + $this->withFormatter(function($message) { |
|
| 55 | + return (string) $message; |
|
| 56 | 56 | }); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | throw new ConsumerNotProperlyConfigured('Worker is not defined.'); |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - $wrapper = function (AMQPMessage $message) { |
|
| 123 | + $wrapper = function(AMQPMessage $message) { |
|
| 124 | 124 | $result = call_user_func($this->worker, $message->getBody()); |
| 125 | 125 | |
| 126 | 126 | if ($result && $this->producer) { |