Passed
Push — main ( 7bfcaa...d3cfa6 )
by Sammy
07:41 queued 35s
created
src/Traitor.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
                 if (preg_match($regex, $method->name, $match) === 1) {
18 18
                     $callable = current($match);
19 19
                     $res = $this->$callable();
20
-                    if(is_array($res) && !empty($res))
21
-                        $ret[$trait_name . '::' . $method->name] = $res;
20
+                    if (is_array($res) && !empty($res))
21
+                        $ret[$trait_name.'::'.$method->name] = $res;
22 22
                 }
23 23
             }
24 24
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,9 @@
 block discarded – undo
17 17
                 if (preg_match($regex, $method->name, $match) === 1) {
18 18
                     $callable = current($match);
19 19
                     $res = $this->$callable();
20
-                    if(is_array($res) && !empty($res))
21
-                        $ret[$trait_name . '::' . $method->name] = $res;
20
+                    if(is_array($res) && !empty($res)) {
21
+                                            $ret[$trait_name . '::' . $method->name] = $res;
22
+                    }
22 23
                 }
23 24
             }
24 25
         }
Please login to merge, or discard this patch.