@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | public function traitor($method_name) |
8 | 8 | { |
9 | 9 | $regex = sprintf('/.+Traitor_%s$/', $method_name); |
10 | - $errors = []; |
|
10 | + $errors = [ ]; |
|
11 | 11 | $traits = (new \ReflectionClass($this))->getTraitNames(); |
12 | 12 | |
13 | 13 | foreach ($traits as $trait_name) { |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | foreach ($trait_methods as $method) { |
16 | 16 | if (preg_match($regex, $method->name, $match) === 1) { |
17 | 17 | $callable = current($match); |
18 | - $errors ["$trait_name::" . $method->name] = $this->$callable(); |
|
18 | + $errors [ "$trait_name::".$method->name ] = $this->$callable(); |
|
19 | 19 | } |
20 | 20 | } |
21 | 21 | } |