Passed
Push — master ( 0ebafb...c91270 )
by Mehmet
03:39
created
src/RSlim.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -97,6 +97,9 @@  discard block
 block discarded – undo
97 97
         $this->app->run();
98 98
     }    
99 99
     
100
+    /**
101
+     * @param string $functionName
102
+     */
100 103
     private function returnJson($functionName, $request, $args, $response)
101 104
     {
102 105
         $functionOutput = call_user_func($functionName, $request, $args);
@@ -113,6 +116,11 @@  discard block
 block discarded – undo
113 116
         return $response->withHeader('Content-Type', 'application/json;charset=utf-8')->withHeader('X-Powered-By', "reformo/rslim")->withStatus($status);
114 117
     }
115 118
     
119
+    /**
120
+     * @param string $functionName
121
+     * @param string $action
122
+     * @param string $template
123
+     */
116 124
     private function returnHtml($functionName, $request, $args, $response, $route, $action, $template){
117 125
         if (!file_exists($this->config['base_dir'] . $template)) {
118 126
             throw new \Exception("<strong>Template file not found!</strong> " . $route . '/' . $action . " needs a template file at:" . $template);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         return $response->withHeader('Content-Type', 'application/json;charset=utf-8')->withHeader('X-Powered-By', "reformo/rslim")->withStatus($status);
114 114
     }
115 115
     
116
-    private function returnHtml($functionName, $request, $args, $response, $route, $action, $template){
116
+    private function returnHtml($functionName, $request, $args, $response, $route, $action, $template) {
117 117
         if (!file_exists($this->config['base_dir'] . $template)) {
118 118
             throw new \Exception("<strong>Template file not found!</strong> " . $route . '/' . $action . " needs a template file at:" . $template);
119 119
         }
Please login to merge, or discard this patch.