@@ -185,12 +185,12 @@ discard block |
||
185 | 185 | try { |
186 | 186 | /** @var \Ffcms\Core\Arch\Controller $callClass */ |
187 | 187 | $callClass = $this->getCallbackClass(); |
188 | - $callMethod = 'action' . self::$Request->getAction(); |
|
188 | + $callMethod = 'action'.self::$Request->getAction(); |
|
189 | 189 | $arguments = $this->getArguments(); |
190 | 190 | |
191 | 191 | // check if callback method (action) is exist in class object |
192 | 192 | if (!method_exists($callClass, $callMethod)) { |
193 | - throw new NotFoundException('Method "' . App::$Security->strip_tags($callMethod) . '()" not founded in "' . get_class($callClass) . '"'); |
|
193 | + throw new NotFoundException('Method "'.App::$Security->strip_tags($callMethod).'()" not founded in "'.get_class($callClass).'"'); |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | // check if method arguments counts equals passed count |
@@ -205,10 +205,10 @@ discard block |
||
205 | 205 | ])); |
206 | 206 | } |
207 | 207 | |
208 | - $this->startMeasure(get_class($callClass) . '::' . $callMethod); |
|
208 | + $this->startMeasure(get_class($callClass).'::'.$callMethod); |
|
209 | 209 | // make callback call to action in controller and get response |
210 | 210 | $actionResponse = call_user_func_array([$callClass, $callMethod], $arguments); |
211 | - $this->stopMeasure(get_class($callClass) . '::' . $callMethod); |
|
211 | + $this->stopMeasure(get_class($callClass).'::'.$callMethod); |
|
212 | 212 | |
213 | 213 | // set response to controller attribute |
214 | 214 | if (!Str::likeEmpty($actionResponse)) { |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | $html = $e->display(); |
224 | 224 | } else { // or hook exception to system based :))) |
225 | 225 | if (App::$Debug) { |
226 | - $msg = $e->getMessage() . $e->getTraceAsString(); |
|
226 | + $msg = $e->getMessage().$e->getTraceAsString(); |
|
227 | 227 | $html = (new NativeException($msg))->display(); |
228 | 228 | } else { |
229 | 229 | $html = (new NativeException($e->getMessage()))->display(); |
@@ -245,9 +245,9 @@ discard block |
||
245 | 245 | private function getCallbackClass() |
246 | 246 | { |
247 | 247 | // define callback class namespace/name full path |
248 | - $cName = (self::$Request->getCallbackAlias() ?? '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController()); |
|
248 | + $cName = (self::$Request->getCallbackAlias() ?? '\Apps\Controller\\'.env_name.'\\'.self::$Request->getController()); |
|
249 | 249 | if (!class_exists($cName)) { |
250 | - throw new NotFoundException('Callback class not found: ' . App::$Security->strip_tags($cName)); |
|
250 | + throw new NotFoundException('Callback class not found: '.App::$Security->strip_tags($cName)); |
|
251 | 251 | } |
252 | 252 | |
253 | 253 | return new $cName; |