Code style fixes.

This commit is contained in:
Dmitry Khomutov 2017-11-05 21:48:36 +07:00
commit 4e68eb7180
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
89 changed files with 942 additions and 251 deletions

View file

@ -34,8 +34,8 @@ class Controller extends \b8\Controller
}
/**
* @param Config $config
* @param Request $request
* @param Config $config
* @param Request $request
* @param Response $response
*/
public function __construct(Config $config, Request $request, Response $response)
@ -61,7 +61,8 @@ class Controller extends \b8\Controller
/**
* Set the view that this controller action should use.
* @param $action
*
* @param string $action
*/
protected function setView($action)
{
@ -72,9 +73,10 @@ class Controller extends \b8\Controller
/**
* Handle the incoming request.
* @param $action
* @param $actionParams
*
*
* @param string $action
* @param array $actionParams
*
* @return Response
*/
public function handleAction($action, $actionParams)
@ -99,6 +101,7 @@ class Controller extends \b8\Controller
/**
* Require that the currently logged in user is an administrator.
*
* @throws ForbiddenException
*/
protected function requireAdmin()
@ -110,7 +113,8 @@ class Controller extends \b8\Controller
/**
* Check if the currently logged in user is an administrator.
* @return bool
*
* @return boolean
*/
protected function currentUserIsAdmin()
{