Passed
Push — master ( 05d9ca...1aa480 )
by Mihail
03:37
created
src/App.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -184,12 +184,12 @@  discard block
 block discarded – undo
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 = self::$Request->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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.