Passed
Push — master ( d38fd3...434b6d )
by Mehmet
02:36
created
src/RSlim.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,8 +116,7 @@  discard block
 block discarded – undo
116 116
                 $newResponse->write($app_content);
117 117
             }
118 118
             return $newResponse;
119
-        }
120
-        else {
119
+        } else {
121 120
             return $this->not_found($request, $response, $return_type, 'Controller '. $route . '/' . $action." not found");
122 121
         }
123 122
     }
@@ -128,8 +127,7 @@  discard block
 block discarded – undo
128 127
         if ($return_type == 'json') {
129 128
             $response->getBody()->write( json_encode(['status'=>404, 'message'=>$message]));
130 129
             return $response->withHeader('Content-Type', 'application/json;charset=utf-8')->withHeader('X-Powered-By', "reformo/rslim")->withStatus(404);
131
-        }
132
-        else {
130
+        } else {
133 131
             return $response->withStatus(404)
134 132
                 ->withHeader('Content-Type', 'text/html')->withHeader('X-Powered-By', "reformo/rslim")
135 133
                 ->write($this->twig->render($not_found_template, ['message'=>$message]));
Please login to merge, or discard this patch.