@@ -184,10 +184,10 @@ discard block |
||
| 184 | 184 | $html = null; |
| 185 | 185 | // lets try to get html full content to page render |
| 186 | 186 | try { |
| 187 | - $this->startMeasure(__METHOD__ . '::callback'); |
|
| 187 | + $this->startMeasure(__METHOD__.'::callback'); |
|
| 188 | 188 | /** @var \Ffcms\Core\Arch\Controller $callClass */ |
| 189 | 189 | $callClass = null; |
| 190 | - $callMethod = 'action' . self::$Request->getAction(); |
|
| 190 | + $callMethod = 'action'.self::$Request->getAction(); |
|
| 191 | 191 | |
| 192 | 192 | // founded callback injection alias |
| 193 | 193 | if (self::$Request->getCallbackAlias() !== false) { |
@@ -195,20 +195,20 @@ discard block |
||
| 195 | 195 | if (class_exists($cName)) { |
| 196 | 196 | $callClass = new $cName; |
| 197 | 197 | } else { |
| 198 | - throw new NotFoundException('Callback alias of class "' . App::$Security->strip_tags($cName) . '" is not founded'); |
|
| 198 | + throw new NotFoundException('Callback alias of class "'.App::$Security->strip_tags($cName).'" is not founded'); |
|
| 199 | 199 | } |
| 200 | 200 | } else { // typical parsing of native apps |
| 201 | - $cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController(); |
|
| 201 | + $cName = '\Apps\Controller\\'.env_name.'\\'.self::$Request->getController(); |
|
| 202 | 202 | |
| 203 | 203 | // try to initialize class object |
| 204 | 204 | if (class_exists($cName)) { |
| 205 | 205 | $callClass = new $cName; |
| 206 | 206 | } else { |
| 207 | - throw new NotFoundException('Application can not be runned. Initialized class not founded: ' . App::$Security->strip_tags($cName)); |
|
| 207 | + throw new NotFoundException('Application can not be runned. Initialized class not founded: '.App::$Security->strip_tags($cName)); |
|
| 208 | 208 | } |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | - $this->stopMeasure(__METHOD__ . '::callback'); |
|
| 211 | + $this->stopMeasure(__METHOD__.'::callback'); |
|
| 212 | 212 | |
| 213 | 213 | // try to call method of founded callback class |
| 214 | 214 | if (method_exists($callClass, $callMethod)) { |
@@ -239,10 +239,10 @@ discard block |
||
| 239 | 239 | ])); |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | - $this->startMeasure($cName . '::' . $callMethod); |
|
| 242 | + $this->startMeasure($cName.'::'.$callMethod); |
|
| 243 | 243 | // make callback call to action in controller and get response |
| 244 | 244 | $actionResponse = call_user_func_array([$callClass, $callMethod], $actionQuery); |
| 245 | - $this->stopMeasure($cName . '::' . $callMethod); |
|
| 245 | + $this->stopMeasure($cName.'::'.$callMethod); |
|
| 246 | 246 | |
| 247 | 247 | if ($actionResponse !== null && !Str::likeEmpty($actionResponse)) { |
| 248 | 248 | // set response to controller property object |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | // build full compiled output html data |
| 253 | 253 | $html = $callClass->buildOutput(); |
| 254 | 254 | } else { |
| 255 | - throw new NotFoundException('Method "' . App::$Security->strip_tags($callMethod) . '()" not founded in "' . get_class($callClass) . '"'); |
|
| 255 | + throw new NotFoundException('Method "'.App::$Security->strip_tags($callMethod).'()" not founded in "'.get_class($callClass).'"'); |
|
| 256 | 256 | } |
| 257 | 257 | } catch (NotFoundException $e) { // catch exceptions and set output |
| 258 | 258 | $html = $e->display(); |