@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | { |
24 | 24 | $reflection = new \ReflectionClass($object); |
25 | 25 | |
26 | - if ($reflection->implementsInterface(QueueableInterface::class)) { |
|
26 | + if ($reflection->implementsInterface(QueueableInterface::class)){ |
|
27 | 27 | return true; |
28 | 28 | } |
29 | 29 | |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | $reflection = new \ReflectionClass($object); |
39 | 39 | |
40 | 40 | $attribute = $this->reader->firstClassMetadata($reflection, Queueable::class); |
41 | - if ($attribute !== null) { |
|
41 | + if ($attribute !== null){ |
|
42 | 42 | return $attribute->queue; |
43 | 43 | } |
44 | 44 | |
45 | - if (\is_object($object) && $reflection->hasMethod('getQueue')) { |
|
45 | + if (\is_object($object) && $reflection->hasMethod('getQueue')){ |
|
46 | 46 | return $reflection->getMethod('getQueue')->invoke($object); |
47 | 47 | } |
48 | 48 |
@@ -23,7 +23,8 @@ discard block |
||
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 |
||
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 |