Merge pull request #3 from timw4mail/scrutinizer-patch-1

Spacing and docblock fixes
This commit is contained in:
Timothy Warren 2015-10-06 10:28:33 -04:00
commit 7269c5c393
22 changed files with 59 additions and 59 deletions

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