Passed
Branch master (7649b2)
by Mauro
03:14
created
Category
src/DIC.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public static function set($key, $content)
106 106
     {
107 107
         if (false === self::has($key)) {
108
-            self::$container[$key] = function ($c) use ($content) {
108
+            self::$container[$key] = function($c) use ($content) {
109 109
 
110 110
                 // if is not a class set the entry value in DIC
111 111
                 if (false === isset($content['class'])) {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                     // if specified, call the method with provided arguments
125 125
                     if ($methodArguments) {
126 126
                         try {
127
-                            return call_user_func_array([ $class, $method ], self::getArgumentsToInject($c, $methodArguments));
127
+                            return call_user_func_array([$class, $method], self::getArgumentsToInject($c, $methodArguments));
128 128
                         } catch (\Error $error) {
129 129
                             return false;
130 130
                         } catch (\Exception $exception) {
Please login to merge, or discard this patch.
src/Console/DICDebug.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         asort($keys);
41 41
 
42 42
         $table = new Table($output);
43
-        $table->setHeaders(['#','Entry', 'Type', 'Content']);
43
+        $table->setHeaders(['#', 'Entry', 'Type', 'Content']);
44 44
 
45 45
         $i = 1;
46 46
         foreach ($keys as $key) {
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
         }
76 76
 
77 77
         if (is_object($dicKey)) {
78
-            return '<fg=cyan>'. get_class($dicKey) . '</>';
78
+            return '<fg=cyan>' . get_class($dicKey) . '</>';
79 79
         }
80 80
 
81 81
         if (is_array($dicKey)) {
82
-            return '<fg=green>'. implode("|", $dicKey) . '</>';
82
+            return '<fg=green>' . implode("|", $dicKey) . '</>';
83 83
         }
84 84
 
85
-        return '<fg=yellow>'. $dicKey . '</>';
85
+        return '<fg=yellow>' . $dicKey . '</>';
86 86
     }
87 87
 }
Please login to merge, or discard this patch.