From 3b0a19af2f57c3e103073ba3e88204f7d8d3b1bb Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Mon, 29 Jun 2015 14:26:50 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- app/models/AnimeModel.php | 2 +- app/models/MangaModel.php | 2 +- migrations/20150616181750_first_migration.php | 3 +-- public/css.php | 3 +++ tests/base/FunctionsTest.php | 2 +- tests/bootstrap.php | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/models/AnimeModel.php b/app/models/AnimeModel.php index b7523892..52a269cf 100644 --- a/app/models/AnimeModel.php +++ b/app/models/AnimeModel.php @@ -176,7 +176,7 @@ class AnimeModel extends BaseApiModel { $cache_file = "{$this->config->data_cache_path}/anime-{$status}.json"; $config = [ - 'allow_redirects' => false + 'allow_redirects' => FALSE ]; if ($status != "all") diff --git a/app/models/MangaModel.php b/app/models/MangaModel.php index 64a51d67..7a23622d 100644 --- a/app/models/MangaModel.php +++ b/app/models/MangaModel.php @@ -83,7 +83,7 @@ class MangaModel extends BaseApiModel { 'query' => [ 'user_id' => $this->config->hummingbird_username ], - 'allow_redirects' => false + 'allow_redirects' => FALSE ]; $response = $this->client->get('manga_library_entries', $config); diff --git a/migrations/20150616181750_first_migration.php b/migrations/20150616181750_first_migration.php index 080a70e8..6d0c7329 100644 --- a/migrations/20150616181750_first_migration.php +++ b/migrations/20150616181750_first_migration.php @@ -2,8 +2,7 @@ use Phinx\Migration\AbstractMigration; -class FirstMigration extends AbstractMigration -{ +class FirstMigration extends AbstractMigration { /** * Migrate up */ diff --git a/public/css.php b/public/css.php index 506f27bc..19b43d14 100644 --- a/public/css.php +++ b/public/css.php @@ -19,6 +19,9 @@ require('../app/config/minify_config.php'); $groups = require("../app/config/minify_css_groups.php"); //Function for compressing the CSS as tightly as possible +/** + * @param string $buffer + */ function compress($buffer) { //Remove CSS comments diff --git a/tests/base/FunctionsTest.php b/tests/base/FunctionsTest.php index e2bcd81d..89ba91c6 100644 --- a/tests/base/FunctionsTest.php +++ b/tests/base/FunctionsTest.php @@ -24,7 +24,7 @@ class FunctionsTest extends AnimeClient_TestCase { */ public function testDir() { - $this->assertEquals('foo'.DIRECTORY_SEPARATOR.'bar', _dir('foo', 'bar')); + $this->assertEquals('foo' . DIRECTORY_SEPARATOR . 'bar', _dir('foo', 'bar')); } public function testIsSelected() diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 14f28c73..0ddde785 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -43,7 +43,7 @@ class AnimeClient_TestCase extends PHPUnit_Framework_TestCase { // ----------------------------------------------------------------------------- // Define base path constants -define('ROOT_DIR', realpath(__DIR__ . DIRECTORY_SEPARATOR . "/../")); +define('ROOT_DIR', realpath(__DIR__ . DIRECTORY_SEPARATOR . "/../")); require ROOT_DIR . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'base' . DIRECTORY_SEPARATOR . 'pre_conf_functions.php'; define('APP_DIR', _dir(ROOT_DIR, 'app')); define('CONF_DIR', _dir(APP_DIR, 'config'));