@@ -65,7 +65,7 @@ |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | /** @var ConsoleCommand $command */ |
68 | - $command = new $command (['container' => $this->container, 'args' => $this->args]); |
|
68 | + $command = new $command(['container' => $this->container, 'args' => $this->args]); |
|
69 | 69 | $command->execute(); |
70 | 70 | |
71 | 71 | return $command; |
@@ -132,7 +132,7 @@ |
||
132 | 132 | if (!$this->loaded) { |
133 | 133 | $this->initializeContainer(); |
134 | 134 | |
135 | - $this->addListener('kernel.kill', function (array $params) { |
|
135 | + $this->addListener('kernel.kill', function(array $params) { |
|
136 | 136 | if ($params['container']->kernel->isDebug() && !$params['container']->request->isCli()) { |
137 | 137 | // Add timer into page |
138 | 138 | echo '<div class=debug_timer>', (microtime(true) - $params['container']->kernel->getStartTime()), '</div>'; |
@@ -370,7 +370,7 @@ |
||
370 | 370 | if (self::$primaryKey) { |
371 | 371 | $where .= '`' . self::$primaryKey . '` = :' . self::$primaryKey; |
372 | 372 | } else { |
373 | - throw new Exception ($this->container, |
|
373 | + throw new Exception($this->container, |
|
374 | 374 | 'In table ' . static::tableName() . ' option `id` not defined/not use.' |
375 | 375 | ); |
376 | 376 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | $view = null; |
74 | 74 | if ($actionClass) { |
75 | 75 | /** @var \Micro\Mvc\Action $cl */ |
76 | - $cl = new $actionClass ($this->container); |
|
76 | + $cl = new $actionClass($this->container); |
|
77 | 77 | $view = $cl->run(); |
78 | 78 | } else { |
79 | 79 | $view = $this->{'action' . ucfirst($name)}(); |
@@ -112,7 +112,7 @@ |
||
112 | 112 | */ |
113 | 113 | private static function CamelCaseToLowerNamespace($path) |
114 | 114 | { |
115 | - $classNameArr = array_map(function ($val) { |
|
115 | + $classNameArr = array_map(function($val) { |
|
116 | 116 | return lcfirst($val); |
117 | 117 | }, explode('\\', $path)); |
118 | 118 |