Completed
Pull Request — master (#5)
by Quim
03:59
created
src/Domain/Task/Task.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function __construct($name, array $body, $delay=0)
32 32
     {
33 33
         $this->setName($name)
34
-             ->setDelay($delay)
34
+                ->setDelay($delay)
35 35
         ;
36 36
         $this->body = $body;
37 37
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param array $body
29 29
      * @param int $delay
30 30
      */
31
-    public function __construct($name, array $body, $delay=0)
31
+    public function __construct($name, array $body, $delay = 0)
32 32
     {
33 33
         $this->setName($name)
34 34
              ->setDelay($delay)
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected function setName($name)
69 69
     {
70
-        if(empty($name)) {
70
+        if (empty($name)) {
71 71
             throw new TaskException('Task name cannot be empty');
72 72
         }
73 73
         $this->name = $name;
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     protected function setDelay($delay)
83 83
     {
84
-        if(!is_null($delay) && !preg_match('/^\d+$/', $delay)) {
84
+        if (!is_null($delay) && !preg_match('/^\d+$/', $delay)) {
85 85
             throw new TaskException("Task delay $delay is not a valid delay.");
86 86
         }
87 87
         $this->delay = $delay;
Please login to merge, or discard this patch.
src/Infrastructure/AmqpLib/v26/RabbitMQ/Queue/MessageHandler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 use Domain\Queue\JSONMessageFactory;
12 12
 use PhpAmqpLib\Message\AMQPMessage;
13
-use Psr\Log\LoggerInterface;
14 13
 
15 14
 class MessageHandler
16 15
 {
Please login to merge, or discard this patch.