Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
parent
6b322d18da
commit
7e695edd29
@ -33,7 +33,7 @@ $di = function() {
|
|||||||
|
|
||||||
// Set up json handler for ajax errors
|
// Set up json handler for ajax errors
|
||||||
$jsonHandler = new JsonResponseHandler();
|
$jsonHandler = new JsonResponseHandler();
|
||||||
$jsonHandler->onlyForAjaxRequests(true);
|
$jsonHandler->onlyForAjaxRequests(TRUE);
|
||||||
$whoops->pushHandler($jsonHandler);
|
$whoops->pushHandler($jsonHandler);
|
||||||
|
|
||||||
$whoops->register();
|
$whoops->register();
|
||||||
|
@ -22,7 +22,7 @@ class Config {
|
|||||||
*
|
*
|
||||||
* @param array $config_files
|
* @param array $config_files
|
||||||
*/
|
*/
|
||||||
public function __construct(Array $config_files=[])
|
public function __construct(array $config_files=[])
|
||||||
{
|
{
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
if (empty($config_files))
|
if (empty($config_files))
|
||||||
|
@ -53,7 +53,7 @@ class Controller {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
@ -120,7 +120,7 @@ class Controller {
|
|||||||
/**
|
/**
|
||||||
* Render a template with header and footer
|
* Render a template with header and footer
|
||||||
*
|
*
|
||||||
* @param HTMLView $view
|
* @param HtmlView $view
|
||||||
* @param string $template
|
* @param string $template
|
||||||
* @param array|object $data
|
* @param array|object $data
|
||||||
* @return void
|
* @return void
|
||||||
|
@ -51,7 +51,7 @@ class Anime extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
@ -136,7 +136,7 @@ class Anime extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* Update an anime item
|
* Update an anime item
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return boolean|null
|
||||||
*/
|
*/
|
||||||
public function update()
|
public function update()
|
||||||
{
|
{
|
||||||
|
@ -52,7 +52,7 @@ class Collection extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ class Manga extends Controller {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ class Manga extends Controller {
|
|||||||
/**
|
/**
|
||||||
* Update an anime item
|
* Update an anime item
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return boolean|null
|
||||||
*/
|
*/
|
||||||
public function update()
|
public function update()
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,7 @@ class Model {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@ class API extends BaseModel {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,7 @@ class AnimeCollection extends DB {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,7 @@ class DB extends BaseModel {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,7 @@ class Router extends RoutingBase {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,7 @@ class RoutingBase {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Container $container
|
* @param ContainerInterface $container
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
|
@ -59,7 +59,7 @@ class ArrayType {
|
|||||||
*
|
*
|
||||||
* @param array $arr
|
* @param array $arr
|
||||||
*/
|
*/
|
||||||
public function __construct(Array $arr)
|
public function __construct(array $arr)
|
||||||
{
|
{
|
||||||
$this->arr =& $arr;
|
$this->arr =& $arr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user