@@ -105,7 +105,7 @@ discard block |
||
| 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 |
||
| 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) { |
@@ -40,7 +40,7 @@ discard block |
||
| 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 |
||
| 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 | } |