Passed
Pull Request — master (#662)
by Maxim
07:49
created
src/Queue/src/QueueableDetector.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  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
             return true;
28 28
         }
29 29
 
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this 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.