@@ -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; |
@@ -125,7 +125,7 @@ |
||
125 | 125 | |
126 | 126 | $dir = opendir($src); |
127 | 127 | if (!$dir) { |
128 | - throw new Exception('Unable to read dir: '. $src); |
|
128 | + throw new Exception('Unable to read dir: ' . $src); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | while (false !== ($file = readdir($dir))) { |
@@ -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 | /** |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | return true; |
90 | 90 | } elseif (method_exists($model, $name)) { |
91 | - return call_user_func([$model,$name], $this); |
|
91 | + return call_user_func([$model, $name], $this); |
|
92 | 92 | } else { |
93 | 93 | throw new Exception('Validator ' . $name . ' not defined.'); |
94 | 94 | } |