Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
22 changed files with 59 additions and 59 deletions
Showing only changes of commit 7c5a73e73b - Show all commits

View File

@ -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();

View File

@ -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))

View File

@ -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

View File

@ -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()
{

View File

@ -52,7 +52,7 @@ class Collection extends BaseController {
/**
* Constructor
*
* @param Container $container
* @param ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{

View File

@ -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()
{

View File

@ -29,7 +29,7 @@ class Model {
/**
* Constructor
*
* @param Container $container
* @param ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{

View File

@ -37,7 +37,7 @@ class API extends BaseModel {
/**
* Constructor
*
* @param Container $container
* @param ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{

View File

@ -29,7 +29,7 @@ class AnimeCollection extends DB {
/**
* Constructor
*
* @param Container $container
* @param ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{

View File

@ -26,7 +26,7 @@ class DB extends BaseModel {
/**
* Constructor
*
* @param Container $container
* @param ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{

View File

@ -35,7 +35,7 @@ class Router extends RoutingBase {
/**
* Constructor
*
* @param Container $container
* @param ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{

View File

@ -32,7 +32,7 @@ class RoutingBase {
/**
* Constructor
*
* @param Container $container
* @param ContainerInterface $container
*/
public function __construct(ContainerInterface $container)
{

View File

@ -59,7 +59,7 @@ class ArrayType {
*
* @param array $arr
*/
public function __construct(Array $arr)
public function __construct(array $arr)
{
$this->arr =& $arr;
}