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

Scrutinizer Auto-Fixes
This commit is contained in:
Timothy Warren 2015-06-29 10:36:28 -04:00
commit ef4e9b3e85
6 changed files with 8 additions and 6 deletions

View File

@ -176,7 +176,7 @@ class AnimeModel extends BaseApiModel {
$cache_file = "{$this->config->data_cache_path}/anime-{$status}.json"; $cache_file = "{$this->config->data_cache_path}/anime-{$status}.json";
$config = [ $config = [
'allow_redirects' => false 'allow_redirects' => FALSE
]; ];
if ($status != "all") if ($status != "all")

View File

@ -83,7 +83,7 @@ class MangaModel extends BaseApiModel {
'query' => [ 'query' => [
'user_id' => $this->config->hummingbird_username 'user_id' => $this->config->hummingbird_username
], ],
'allow_redirects' => false 'allow_redirects' => FALSE
]; ];
$response = $this->client->get('manga_library_entries', $config); $response = $this->client->get('manga_library_entries', $config);

View File

@ -2,8 +2,7 @@
use Phinx\Migration\AbstractMigration; use Phinx\Migration\AbstractMigration;
class FirstMigration extends AbstractMigration class FirstMigration extends AbstractMigration {
{
/** /**
* Migrate up * Migrate up
*/ */

View File

@ -19,6 +19,9 @@ require('../app/config/minify_config.php');
$groups = require("../app/config/minify_css_groups.php"); $groups = require("../app/config/minify_css_groups.php");
//Function for compressing the CSS as tightly as possible //Function for compressing the CSS as tightly as possible
/**
* @param string $buffer
*/
function compress($buffer) { function compress($buffer) {
//Remove CSS comments //Remove CSS comments

View File

@ -24,7 +24,7 @@ class FunctionsTest extends AnimeClient_TestCase {
*/ */
public function testDir() public function testDir()
{ {
$this->assertEquals('foo'.DIRECTORY_SEPARATOR.'bar', _dir('foo', 'bar')); $this->assertEquals('foo' . DIRECTORY_SEPARATOR . 'bar', _dir('foo', 'bar'));
} }
public function testIsSelected() public function testIsSelected()