From bb68857fdbf46e4b2cf1e977a93468fc803b12c0 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 4 Nov 2023 14:02:32 +0900 Subject: [PATCH] fix: PHPDoc types in controller.tpl.php --- .../Generators/Views/controller.tpl.php | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/system/Commands/Generators/Views/controller.tpl.php b/system/Commands/Generators/Views/controller.tpl.php index de4447c56268..2fe99e1b296b 100644 --- a/system/Commands/Generators/Views/controller.tpl.php +++ b/system/Commands/Generators/Views/controller.tpl.php @@ -3,6 +3,7 @@ namespace {namespace}; use {useStatement}; +use CodeIgniter\HTTP\ResponseInterface; class {class} extends {extends} { @@ -10,7 +11,7 @@ class {class} extends {extends} /** * Return an array of resource objects, themselves in array format * - * @return mixed + * @return ResponseInterface */ public function index() { @@ -20,7 +21,7 @@ public function index() /** * Return the properties of a resource object * - * @return mixed + * @return ResponseInterface */ public function show($id = null) { @@ -30,7 +31,7 @@ public function show($id = null) /** * Return a new resource object, with default properties * - * @return mixed + * @return ResponseInterface */ public function new() { @@ -40,7 +41,7 @@ public function new() /** * Create a new resource object, from "posted" parameters * - * @return mixed + * @return ResponseInterface */ public function create() { @@ -50,7 +51,7 @@ public function create() /** * Return the editable properties of a resource object * - * @return mixed + * @return ResponseInterface */ public function edit($id = null) { @@ -60,7 +61,7 @@ public function edit($id = null) /** * Add or update a model resource, from "posted" properties * - * @return mixed + * @return ResponseInterface */ public function update($id = null) { @@ -70,7 +71,7 @@ public function update($id = null) /** * Delete the designated resource object from the model * - * @return mixed + * @return ResponseInterface */ public function delete($id = null) { @@ -80,7 +81,7 @@ public function delete($id = null) /** * Present a view of resource objects * - * @return mixed + * @return ResponseInterface */ public function index() { @@ -90,9 +91,9 @@ public function index() /** * Present a view to present a specific resource object * - * @param mixed $id + * @param string $id * - * @return mixed + * @return ResponseInterface */ public function show($id = null) {