@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | */ |
| 169 | 169 | public function getConfig() |
| 170 | 170 | { |
| 171 | - return include($this->modulePath .'/' . $this->getModuleName() . '/config/module.config.php'); |
|
| 171 | + return include($this->modulePath . '/' . $this->getModuleName() . '/config/module.config.php'); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /** |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $nm = explode('\\', $name); |
| 184 | 184 | $module = array_shift($nm); |
| 185 | 185 | |
| 186 | - $class = $this->modulePath ."/". $module . "/source/" . implode("/", $nm) . ".php"; |
|
| 186 | + $class = $this->modulePath . "/" . $module . "/source/" . implode("/", $nm) . ".php"; |
|
| 187 | 187 | |
| 188 | 188 | if (file_exists($class)) |
| 189 | 189 | include $class; |
@@ -193,8 +193,8 @@ discard block |
||
| 193 | 193 | { |
| 194 | 194 | foreach ($params as $param => $value) |
| 195 | 195 | { |
| 196 | - if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set'.$param)) |
|
| 197 | - $this->{'set'.$param}($value); |
|
| 196 | + if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set' . $param)) |
|
| 197 | + $this->{'set' . $param}($value); |
|
| 198 | 198 | } |
| 199 | 199 | } |
| 200 | 200 | |
@@ -218,11 +218,11 @@ discard block |
||
| 218 | 218 | $view = ""; |
| 219 | 219 | |
| 220 | 220 | if (!is_null($controller->getModule())) |
| 221 | - $view .= $controller->getModule()->getModulePath() .'/'. $controller->getModule()->getModuleName(); |
|
| 221 | + $view .= $controller->getModule()->getModulePath() . '/' . $controller->getModule()->getModuleName(); |
|
| 222 | 222 | |
| 223 | 223 | $view .= |
| 224 | - '/'. $controller->getModule()->getModulePath() . '/'. basename(str_replace('\\','/',get_class($controller))) . |
|
| 225 | - '/'. $controller->getMethod() . '.phtml'; |
|
| 224 | + '/' . $controller->getModule()->getModulePath() . '/' . basename(str_replace('\\', '/', get_class($controller))) . |
|
| 225 | + '/' . $controller->getMethod() . '.phtml'; |
|
| 226 | 226 | |
| 227 | 227 | $this->view = $view; |
| 228 | 228 | } |
@@ -313,7 +313,7 @@ |
||
| 313 | 313 | if ($_SERVER['REQUEST_METHOD'] != 'JSON') |
| 314 | 314 | throw new \LogicException("Request method is not JSON"); |
| 315 | 315 | |
| 316 | - $input = file_get_contents('php://input'); |
|
| 316 | + $input = file_get_contents('php://input'); |
|
| 317 | 317 | $array = explode("&", $input); |
| 318 | 318 | |
| 319 | 319 | $result = []; |