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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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