@@ -17,8 +17,8 @@ |
||
| 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 | } |
@@ -17,8 +17,9 @@ |
||
| 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 | } |