Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: PHPDoc types in controller.tpl.php #8144

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading