Passed
Push — main ( a61294...21a5e3 )
by Sammy
07:18 queued 05:17
created
Traitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.