@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class ReadMangaToday extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-zA-Z0-9_-]+$/'; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class ReadMangaToday extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-zA-Z0-9_-]+$/'; |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ]; |
17 | 17 | } |
18 | 18 | |
19 | - public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array { |
|
19 | + public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array { |
|
20 | 20 | $titleData = []; |
21 | 21 | |
22 | 22 | $fullURL = $this->getFullTitleURL($title_url); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $titleData['latest_chapter'] = preg_replace('/^.*\/([0-9\.]+)$/', '$1', (string) $data['nodes_chapter']->getAttribute('href')); |
39 | 39 | |
40 | 40 | $dateString = $data['nodes_latest']->nodeValue; |
41 | - $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime(preg_replace('/ (-|\[A\]).*$/', '', $dateString))); |
|
41 | + $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime(preg_replace('/ (-|\[A\]).*$/', '', $dateString))); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | return (!empty($titleData) ? $titleData : NULL); |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | if(!extension_loaded('gd')) die('GD ext is required to run this!'); |
4 | 4 | |
@@ -23,11 +23,11 @@ discard block |
||
23 | 23 | imagealphablending($sheetImage, FALSE); |
24 | 24 | imagesavealpha($sheetImage, TRUE); |
25 | 25 | |
26 | - imagefill($sheetImage,0,0,0x7fff0000); |
|
26 | + imagefill($sheetImage, 0, 0, 0x7fff0000); |
|
27 | 27 | |
28 | 28 | $x = 0; |
29 | - foreach ($this->fileList as $filename) { |
|
30 | - $siteImage = imagecreatefrompng(ICON_FOLDER. "/{$filename}"); |
|
29 | + foreach($this->fileList as $filename) { |
|
30 | + $siteImage = imagecreatefrompng(ICON_FOLDER."/{$filename}"); |
|
31 | 31 | imagealphablending($siteImage, TRUE); |
32 | 32 | |
33 | 33 | $dst_x = ((16 + 2) * $x); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | if(preg_match('/\.sprite-site.*\@cache-version: ([0-9]+);/s', $oldLESS, $cvMatches)) { |
58 | 58 | $cacheVersion = ((int) $cvMatches[1]) + 1; |
59 | 59 | |
60 | - $newLESS = preg_replace('/\.sprite-site.*/s', '',$oldLESS); |
|
60 | + $newLESS = preg_replace('/\.sprite-site.*/s', '', $oldLESS); |
|
61 | 61 | $newLESS .= ''. |
62 | 62 | ".sprite-site {\n". |
63 | 63 | " .sprite();\n". |
@@ -1,6 +1,8 @@ |
||
1 | 1 | <?php declare(strict_types=1); |
2 | 2 | |
3 | -if(!extension_loaded('gd')) die('GD ext is required to run this!'); |
|
3 | +if(!extension_loaded('gd')) { |
|
4 | + die('GD ext is required to run this!'); |
|
5 | +} |
|
4 | 6 | |
5 | 7 | chdir(dirname(__FILE__).'/../'); //Just to make things easier, change dir to project root. |
6 | 8 | const ASSET_FOLDER = 'public/assets'; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class FallenAngelsScans extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-zA-Z0-9_-]+$/'; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class FallenAngelsScans extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-zA-Z0-9_-]+$/'; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | ]; |
16 | 16 | } |
17 | 17 | |
18 | - public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array { |
|
18 | + public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array { |
|
19 | 19 | $titleData = []; |
20 | 20 | |
21 | 21 | $fullURL = $this->getFullTitleURL($title_url); |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class LHTranslation extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-zA-Z0-9_\-.]+$/'; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | ]; |
16 | 16 | } |
17 | 17 | |
18 | - public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array { |
|
18 | + public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array { |
|
19 | 19 | $titleData = []; |
20 | 20 | |
21 | 21 | $fullURL = $this->getFullTitleURL($title_url); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | $titleData['latest_chapter'] = preg_replace('/^read-(?:.*?)chapter-(.*?)\.html$/', '$1', (string) $data['nodes_chapter']->getAttribute('href')); |
38 | 38 | |
39 | - $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->textContent)); |
|
39 | + $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->textContent)); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | return (!empty($titleData) ? $titleData : NULL); |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class LHTranslation extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-zA-Z0-9_\-.]+$/'; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class SenseScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'http://reader.sensescans.com'; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class SenseScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'http://reader.sensescans.com'; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class HelveticaScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'http://helveticascans.com/r'; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class HelveticaScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'http://helveticascans.com/r'; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class MangaichiScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'http://mangaichiscans.mokkori.fr/fs'; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class MangaichiScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'http://mangaichiscans.mokkori.fr/fs'; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class JaiminisBox extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'https://jaiminisbox.com/reader'; |
@@ -1,10 +1,10 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class JaiminisBox extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'https://jaiminisbox.com/reader'; |
5 | 5 | |
6 | 6 | //NOTE: Jaimini's Box appears to have disabled API support for some reason. Fallback to using the old method. |
7 | - public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array { |
|
7 | + public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array { |
|
8 | 8 | $fullURL = $this->getFullTitleURL($title_url); |
9 | 9 | $titleData = []; |
10 | 10 | if($content = $this->get_content($fullURL, "", "", FALSE, TRUE, ['adult' => 'true'])) { |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class OneTimeScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'https://otscans.com/foolslide'; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class OneTimeScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'https://otscans.com/foolslide'; |