From 2d70f30256a0916f2748042082b4dc85d8d68942 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Mon, 2 Nov 2015 13:00:34 -0500 Subject: [PATCH] Remove unnecessary else block --- api/canned/index.php | 6 +++--- api/ticket-template/index.php | 8 ++++---- api/ticket/index.php | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) 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