Passed
Pull Request — master (#662)
by Maxim
09:11 queued 01:07
created
src/Queue/src/QueueableDetector.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $reflection = new \ReflectionClass($object);
25 25
 
26
-        if ($reflection->implementsInterface(QueueableInterface::class)) {
26
+        if ($reflection->implementsInterface(QueueableInterface::class))
27
+        {
27 28
             return true;
28 29
         }
29 30
 
@@ -38,11 +39,13 @@  discard block
 block discarded – undo
38 39
         $reflection = new \ReflectionClass($object);
39 40
 
40 41
         $attribute = $this->reader->firstClassMetadata($reflection, Queueable::class);
41
-        if ($attribute !== null) {
42
+        if ($attribute !== null)
43
+        {
42 44
             return $attribute->queue;
43 45
         }
44 46
 
45
-        if (\is_object($object) && $reflection->hasMethod('getQueue')) {
47
+        if (\is_object($object) && $reflection->hasMethod('getQueue'))
48
+        {
46 49
             return $reflection->getMethod('getQueue')->invoke($object);
47 50
         }
48 51
 
Please login to merge, or discard this patch.