Passed
Pull Request — master (#662)
by Maxim
08:13
created
src/Queue/src/Attribute/QueueableTrait.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $reflection = new \ReflectionClass($object);
18 18
 
19
-        if ($reflection->isInterface()) {
19
+        if ($reflection->isInterface()){
20 20
             return null;
21 21
         }
22 22
 
23
-        if ($reflection->implementsInterface(QueueableInterface::class)) {
23
+        if ($reflection->implementsInterface(QueueableInterface::class)){
24 24
             return $this->createQueueable($reflection, $object);
25 25
         }
26 26
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $queueable = new Queueable();
36 36
 
37
-        if (\is_object($object) && $reflection->hasMethod('getQueue')) {
37
+        if (\is_object($object) && $reflection->hasMethod('getQueue')){
38 38
             $queueable->queue = $reflection->getMethod('getQueue')->invoke($object);
39 39
         }
40 40
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,11 +16,13 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $reflection = new \ReflectionClass($object);
18 18
 
19
-        if ($reflection->isInterface()) {
19
+        if ($reflection->isInterface())
20
+        {
20 21
             return null;
21 22
         }
22 23
 
23
-        if ($reflection->implementsInterface(QueueableInterface::class)) {
24
+        if ($reflection->implementsInterface(QueueableInterface::class))
25
+        {
24 26
             return $this->createQueueable($reflection, $object);
25 27
         }
26 28
 
@@ -34,7 +36,8 @@  discard block
 block discarded – undo
34 36
     {
35 37
         $queueable = new Queueable();
36 38
 
37
-        if (\is_object($object) && $reflection->hasMethod('getQueue')) {
39
+        if (\is_object($object) && $reflection->hasMethod('getQueue'))
40
+        {
38 41
             $queueable->queue = $reflection->getMethod('getQueue')->invoke($object);
39 42
         }
40 43
 
Please login to merge, or discard this patch.