@@ -9,14 +9,14 @@ |
||
9 | 9 | public function search_and_execute_trait_methods($method_name) |
10 | 10 | { |
11 | 11 | $pattern = sprintf($this->traitor_pattern, $method_name); |
12 | - $errors = []; |
|
12 | + $errors = [ ]; |
|
13 | 13 | $traits = (new \ReflectionClass($this))->getTraitNames(); |
14 | 14 | foreach ($traits as $trait_name) { |
15 | 15 | $trait_methods = (new \ReflectionClass($trait_name))->getMethods(); |
16 | 16 | foreach ($trait_methods as $method) { |
17 | 17 | if (preg_match($pattern, $method->name, $match) === 1) { |
18 | 18 | $callable = current($match); |
19 | - $errors ["$trait_name::".$method->name]= $this->$callable(); |
|
19 | + $errors [ "$trait_name::".$method->name ] = $this->$callable(); |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 | } |