Passed
Push — main ( 21a5e3...5e30dc )
by Sammy
01:44
created
Traitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.