Passed
Push — master ( f17d15...6b8654 )
by Fran
02:50
created
src/controller/DocumentorController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $download = $this->getRequest()->get('download') ?: false;
34 34
 
35 35
         $module = $this->srv->getModules($domain);
36
-        if(empty($module)) {
36
+        if (empty($module)) {
37 37
             return Router::getInstance()->httpNotFound(null, true);
38 38
         }
39 39
         switch (strtolower($type)) {
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
         ini_restore('max_execution_time');
54 54
         ini_restore('memory_limit');
55 55
 
56
-        if($download && $type === ApiController::SWAGGER_DOC) {
56
+        if ($download && $type === ApiController::SWAGGER_DOC) {
57 57
             return $this->download(json_encode($doc), 'application/json', 'swagger.json');
58 58
         }
59
-        if($type === ApiController::HTML_DOC) {
59
+        if ($type === ApiController::HTML_DOC) {
60 60
             return $this->render('documentation.html.twig', ["data" => json_encode($doc)]);
61 61
         }
62 62
         return $this->json($doc, 200);
Please login to merge, or discard this patch.