Improved docBlock
This commit is contained in:
parent
be651b3576
commit
6aba86e018
|
@ -144,8 +144,12 @@ class ProjectController extends PHPCI\Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a project.
|
* Delete a project.
|
||||||
*/
|
*
|
||||||
|
* @param int $projectId
|
||||||
|
*
|
||||||
|
* @return Response
|
||||||
|
*/
|
||||||
public function delete($projectId)
|
public function delete($projectId)
|
||||||
{
|
{
|
||||||
$this->requireAdmin();
|
$this->requireAdmin();
|
||||||
|
|
|
@ -292,8 +292,14 @@ class UserController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a user.
|
* Delete a user.
|
||||||
*/
|
*
|
||||||
|
* @param int $userId
|
||||||
|
*
|
||||||
|
* @return Response
|
||||||
|
*
|
||||||
|
* @throws NotFoundException
|
||||||
|
*/
|
||||||
public function delete($userId)
|
public function delete($userId)
|
||||||
{
|
{
|
||||||
$this->requireAdmin();
|
$this->requireAdmin();
|
||||||
|
@ -308,6 +314,7 @@ class UserController extends Controller
|
||||||
|
|
||||||
$response = new b8\Http\Response\RedirectResponse();
|
$response = new b8\Http\Response\RedirectResponse();
|
||||||
$response->setHeader('Location', PHPCI_URL . 'user');
|
$response->setHeader('Location', PHPCI_URL . 'user');
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue