diff --git a/api/canned/index.php b/api/canned/index.php index 0dd2548c..e93c58cd 100644 --- a/api/canned/index.php +++ b/api/canned/index.php @@ -23,6 +23,6 @@ if ($request_method == 'GET') { return http_response_code(404); } output($results); -} else { - return http_response_code(405); -} \ No newline at end of file +} + +return http_response_code(405); \ No newline at end of file diff --git a/api/ticket-template/index.php b/api/ticket-template/index.php index e3d06eda..8335810e 100644 --- a/api/ticket-template/index.php +++ b/api/ticket-template/index.php @@ -23,7 +23,7 @@ if ($request_method == 'GET') { if ($results == NULL) { return http_response_code(404); } - output($results); -} else { - return http_response_code(405); -} \ No newline at end of file + return output($results); +} + +return http_response_code(405); \ No newline at end of file diff --git a/api/ticket/index.php b/api/ticket/index.php index 165f6397..f111e646 100644 --- a/api/ticket/index.php +++ b/api/ticket/index.php @@ -22,7 +22,7 @@ if ($request_method == 'GET') { if ($results == NULL) { return http_response_code(404); } - output($results); -} else { - return http_response_code(405); -} \ No newline at end of file + return output($results); +} + +return http_response_code(405); \ No newline at end of file