From 1d9079398b77d8ff35b4e1d6d7d5072a51c570a8 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Thu, 26 Jan 2023 23:17:07 +0100 Subject: [PATCH] remove done TODOs --- Controllers/RecipeController.php | 2 -- Controllers/UserController.php | 3 --- Models/RecipeModel.php | 1 - 3 files changed, 6 deletions(-) diff --git a/Controllers/RecipeController.php b/Controllers/RecipeController.php index ca88f03..48ba988 100644 --- a/Controllers/RecipeController.php +++ b/Controllers/RecipeController.php @@ -9,7 +9,6 @@ final class RecipeController throw new HTTPSpecialCaseException(404); } - //TODO MAKE THE VIEW USE THE NEW DATA FORMAT $O_recipe = RecipeModel::getByID($A_urlParams[0]); if ($O_recipe === null) { throw new HTTPSpecialCaseException(404); @@ -209,7 +208,6 @@ final class RecipeController private function searchQueryView(Array $A_urlParams = null, Array $A_postParams = null, Array $A_getParams = null) { - //TODO change this when the function will return object array $A_results = RecipeModel::searchRecipesByName($A_getParams["query"]); View::show("recipe/search", array( diff --git a/Controllers/UserController.php b/Controllers/UserController.php index 57947b1..ec1126e 100644 --- a/Controllers/UserController.php +++ b/Controllers/UserController.php @@ -103,8 +103,6 @@ final class UserController header("Location: /"); } - // Kept for compatibility purposes - // TODO do a redirect route once implemented public function viewAction(Array $A_urlParams = null, Array $A_postParams = null) { return self::defaultAction($A_urlParams, $A_postParams); @@ -120,7 +118,6 @@ final class UserController $O_user = UserModel::getByID($_SESSION["ID"]); - //TODO Convert User into array return View::show("user/edit", array("USER" => $O_user)); } diff --git a/Models/RecipeModel.php b/Models/RecipeModel.php index 874a1ed..c3ed11a 100644 --- a/Models/RecipeModel.php +++ b/Models/RecipeModel.php @@ -170,7 +170,6 @@ final class RecipeModel return explode("\n\n", str_replace("\r", "", $this->S_INSTRUCTIONS)); } - //TODO: return array object public static function searchRecipesByName($S_query) {