@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $this->baseDomain = App::$Properties->get('baseDomain'); |
63 | 63 | } |
64 | 64 | // build script url |
65 | - $this->scriptUrl = App::$Request->getScheme() . '://' . $this->baseDomain; |
|
65 | + $this->scriptUrl = App::$Request->getScheme().'://'.$this->baseDomain; |
|
66 | 66 | if (App::$Properties->get('basePath') !== '/') { |
67 | 67 | $this->scriptUrl .= rtrim(App::$Properties->get('basePath'), '/'); |
68 | 68 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | $this->baseUrlNoLang = $this->baseUrl; |
76 | 76 | if (App::$Request->languageInPath() && App::$Request->getLanguage() !== null) { |
77 | - $this->baseUrl .= '/' . App::$Request->getLanguage(); |
|
77 | + $this->baseUrl .= '/'.App::$Request->getLanguage(); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | // @todo: add cron initiation from user if enabled -> move to layout |
@@ -86,6 +86,6 @@ discard block |
||
86 | 86 | if (!isset($themeAll[env_name]) || Str::length($themeAll[env_name]) < 1) { |
87 | 87 | $themeAll[env_name] = 'default'; |
88 | 88 | } |
89 | - $this->currentViewUrl = $this->scriptUrl . '/Apps/View/' . env_name . '/' . $themeAll[env_name]; |
|
89 | + $this->currentViewUrl = $this->scriptUrl.'/Apps/View/'.env_name.'/'.$themeAll[env_name]; |
|
90 | 90 | } |
91 | 91 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $theme = App::$Properties->get('theme')[env_name] ?? 'default'; |
33 | 33 | $env = ucfirst(Str::lowerCase(env_name)); |
34 | 34 | |
35 | - $this->path = root . DIRECTORY_SEPARATOR . 'Apps' . DIRECTORY_SEPARATOR . 'View' . DIRECTORY_SEPARATOR . $env . DIRECTORY_SEPARATOR . $theme; |
|
35 | + $this->path = root.DIRECTORY_SEPARATOR.'Apps'.DIRECTORY_SEPARATOR.'View'.DIRECTORY_SEPARATOR.$env.DIRECTORY_SEPARATOR.$theme; |
|
36 | 36 | |
37 | 37 | // initialize template engine with path and load default extensions |
38 | 38 | parent::__construct($this->path); |
@@ -184,12 +184,12 @@ discard block |
||
184 | 184 | try { |
185 | 185 | /** @var \Ffcms\Core\Arch\Controller $callClass */ |
186 | 186 | $callClass = $this->getCallbackClass(); |
187 | - $callMethod = 'action' . self::$Request->getAction(); |
|
187 | + $callMethod = 'action'.self::$Request->getAction(); |
|
188 | 188 | $arguments = $this->getArguments(); |
189 | 189 | |
190 | 190 | // check if callback method (action) is exist in class object |
191 | 191 | if (!method_exists($callClass, $callMethod)) { |
192 | - throw new NotFoundException('Method "' . App::$Security->strip_tags($callMethod) . '()" not founded in "' . get_class($callClass) . '"'); |
|
192 | + throw new NotFoundException('Method "'.App::$Security->strip_tags($callMethod).'()" not founded in "'.get_class($callClass).'"'); |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | // check if method arguments counts equals passed count |
@@ -204,10 +204,10 @@ discard block |
||
204 | 204 | ])); |
205 | 205 | } |
206 | 206 | |
207 | - $this->startMeasure(get_class($callClass) . '::' . $callMethod); |
|
207 | + $this->startMeasure(get_class($callClass).'::'.$callMethod); |
|
208 | 208 | // make callback call to action in controller and get response |
209 | 209 | $response = call_user_func_array([$callClass, $callMethod], $arguments); |
210 | - $this->stopMeasure(get_class($callClass) . '::' . $callMethod); |
|
210 | + $this->stopMeasure(get_class($callClass).'::'.$callMethod); |
|
211 | 211 | |
212 | 212 | // if no response - throw 404 not found |
213 | 213 | if (!$response) { |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | $response = $e->display(); |
220 | 220 | } else { // or hook exception to system based :))) |
221 | 221 | if (App::$Debug) { |
222 | - $msg = $e->getMessage() . $e->getTraceAsString(); |
|
222 | + $msg = $e->getMessage().$e->getTraceAsString(); |
|
223 | 223 | $response = (new NativeException($msg))->display(); |
224 | 224 | } else { |
225 | 225 | $response = (new NativeException($e->getMessage()))->display(); |
@@ -241,9 +241,9 @@ discard block |
||
241 | 241 | private function getCallbackClass() |
242 | 242 | { |
243 | 243 | // define callback class namespace/name full path |
244 | - $cName = (self::$Request->getCallbackAlias() ?? '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController()); |
|
244 | + $cName = (self::$Request->getCallbackAlias() ?? '\Apps\Controller\\'.env_name.'\\'.self::$Request->getController()); |
|
245 | 245 | if (!class_exists($cName)) { |
246 | - throw new NotFoundException('Callback class not found: ' . App::$Security->strip_tags($cName)); |
|
246 | + throw new NotFoundException('Callback class not found: '.App::$Security->strip_tags($cName)); |
|
247 | 247 | } |
248 | 248 | |
249 | 249 | return new $cName; |