@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** @var \Micro\cli\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; |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $view = null; |
| 55 | 55 | if ($actionClass) { |
| 56 | 56 | /** @var \Micro\mvc\Action $cl */ |
| 57 | - $cl = new $actionClass ($this->container); |
|
| 57 | + $cl = new $actionClass($this->container); |
|
| 58 | 58 | $view = $cl->run(); |
| 59 | 59 | } else { |
| 60 | 60 | $view = $this->{'action' . ucfirst($name)}(); |
@@ -372,7 +372,7 @@ |
||
| 372 | 372 | if (self::$primaryKey) { |
| 373 | 373 | $where .= '`' . self::$primaryKey . '` = :' . self::$primaryKey; |
| 374 | 374 | } else { |
| 375 | - throw new Exception ($this->container, |
|
| 375 | + throw new Exception($this->container, |
|
| 376 | 376 | 'In table ' . static::tableName() . ' option `id` not defined/not use.' |
| 377 | 377 | ); |
| 378 | 378 | } |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | throw new Exception('Controller ' . $cls . ' not found'); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - return new $cls ($this->container, $this->getModules()); |
|
| 58 | + return new $cls($this->container, $this->getModules()); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | */ |
| 106 | 106 | private static function CamelCaseToLowerNamespace($path) |
| 107 | 107 | { |
| 108 | - $classNameArr = array_map(function ($val) { |
|
| 108 | + $classNameArr = array_map(function($val) { |
|
| 109 | 109 | return lcfirst($val); |
| 110 | 110 | }, explode('\\', $path)); |
| 111 | 111 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | protected static function doRun() |
| 57 | 57 | { |
| 58 | - $str = '<div class="error" style="width: 100%;">'; |
|
| 58 | + $str = '<div class="error" style="width: 100%;">'; |
|
| 59 | 59 | $str .= '<h2>FatalError ' . static::$number . ' - ' . static::$message . ' on ' . static::$file . ':' . static::$line . '</h2>'; |
| 60 | 60 | |
| 61 | 61 | $str .= '<table width="100%" style="width: 100%">'; |
@@ -235,7 +235,7 @@ |
||
| 235 | 235 | if (!$this->loaded) { |
| 236 | 236 | $this->initializeContainer(); |
| 237 | 237 | |
| 238 | - $this->addListener('kernel.kill', function (array $params) { |
|
| 238 | + $this->addListener('kernel.kill', function(array $params) { |
|
| 239 | 239 | if ($params['container']->kernel->isDebug() && !$params['container']->request->isCli()) { |
| 240 | 240 | // Add timer into page |
| 241 | 241 | echo '<div class=debug_timer>', (microtime(true) - $params['container']->kernel->getStartTime()), '</div>'; |