Code Duplication    Length = 3-3 lines in 2 locations

src/RSlim.php 2 locations

@@ 43-45 (lines=3) @@
40
41
            require_once($controller);
42
43
            if(!function_exists('app_content')){
44
                return $this->not_found($request, $response, $return_type, 'Controller '. $route . '/' . $action." has not app_content function");
45
            }
46
            if( $return_type == 'json' ){
47
                $status = 500;
48
                $function_output = app_content($request, $args);
@@ 123-125 (lines=3) @@
120
            }
121
            return $newResponse;
122
        }
123
        else{
124
            return $this->not_found($request, $response, $return_type, 'Controller '. $route . '/' . $action." not found");
125
        }
126
    }
127
128
    public function not_found($request, $response, $return_type='html',$message=""){