Merge pull request #3 from timw4mail/scrutinizer-patch-1
Spacing and docblock fixes
This commit is contained in:
commit
af95ac941f
@ -33,7 +33,7 @@ $di = function() {
|
||||
|
||||
// Set up json handler for ajax errors
|
||||
$jsonHandler = new JsonResponseHandler();
|
||||
$jsonHandler->onlyForAjaxRequests(true);
|
||||
$jsonHandler->onlyForAjaxRequests(TRUE);
|
||||
$whoops->pushHandler($jsonHandler);
|
||||
|
||||
$whoops->register();
|
||||
|
@ -22,7 +22,7 @@ class Config {
|
||||
*
|
||||
* @param array $config_files
|
||||
*/
|
||||
public function __construct(Array $config_files=[])
|
||||
public function __construct(array $config_files=[])
|
||||
{
|
||||
// @codeCoverageIgnoreStart
|
||||
if (empty($config_files))
|
||||
|
@ -53,7 +53,7 @@ class Controller {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
@ -120,7 +120,7 @@ class Controller {
|
||||
/**
|
||||
* Render a template with header and footer
|
||||
*
|
||||
* @param HTMLView $view
|
||||
* @param HtmlView $view
|
||||
* @param string $template
|
||||
* @param array|object $data
|
||||
* @return void
|
||||
|
@ -51,7 +51,7 @@ class Anime extends BaseController {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
@ -136,7 +136,7 @@ class Anime extends BaseController {
|
||||
/**
|
||||
* Update an anime item
|
||||
*
|
||||
* @return bool
|
||||
* @return boolean|null
|
||||
*/
|
||||
public function update()
|
||||
{
|
||||
|
@ -52,7 +52,7 @@ class Collection extends BaseController {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ class Manga extends Controller {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
@ -66,7 +66,7 @@ class Manga extends Controller {
|
||||
/**
|
||||
* Update an anime item
|
||||
*
|
||||
* @return bool
|
||||
* @return boolean|null
|
||||
*/
|
||||
public function update()
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ class Model {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
|
@ -37,7 +37,7 @@ class API extends BaseModel {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ class AnimeCollection extends DB {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ class DB extends BaseModel {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
|
@ -35,7 +35,7 @@ class Router extends RoutingBase {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
|
@ -32,7 +32,7 @@ class RoutingBase {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ class ArrayType {
|
||||
*
|
||||
* @param array $arr
|
||||
*/
|
||||
public function __construct(Array $arr)
|
||||
public function __construct(array $arr)
|
||||
{
|
||||
$this->arr =& $arr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user