Skip to content

Commit

Permalink
Merge pull request #8144 from kenjis/fix-types-in-controller.tpl.php
Browse files Browse the repository at this point in the history
fix: PHPDoc types in controller.tpl.php
  • Loading branch information
kenjis authored Nov 5, 2023
2 parents 45ee333 + bb68857 commit 3dee247
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions system/Commands/Generators/Views/controller.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
namespace {namespace};

use {useStatement};
use CodeIgniter\HTTP\ResponseInterface;

class {class} extends {extends}
{
<?php if ($type === 'controller'): ?>
/**
* Return an array of resource objects, themselves in array format
*
* @return mixed
* @return ResponseInterface
*/
public function index()
{
Expand All @@ -20,7 +21,7 @@ public function index()
/**
* Return the properties of a resource object
*
* @return mixed
* @return ResponseInterface
*/
public function show($id = null)
{
Expand All @@ -30,7 +31,7 @@ public function show($id = null)
/**
* Return a new resource object, with default properties
*
* @return mixed
* @return ResponseInterface
*/
public function new()
{
Expand All @@ -40,7 +41,7 @@ public function new()
/**
* Create a new resource object, from "posted" parameters
*
* @return mixed
* @return ResponseInterface
*/
public function create()
{
Expand All @@ -50,7 +51,7 @@ public function create()
/**
* Return the editable properties of a resource object
*
* @return mixed
* @return ResponseInterface
*/
public function edit($id = null)
{
Expand All @@ -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)
{
Expand All @@ -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)
{
Expand All @@ -80,7 +81,7 @@ public function delete($id = null)
/**
* Present a view of resource objects
*
* @return mixed
* @return ResponseInterface
*/
public function index()
{
Expand All @@ -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)
{
Expand Down

0 comments on commit 3dee247

Please sign in to comment.