@@ -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 EGScans 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 MangaPanda extends Base_Site_Model { |
4 | 4 | //NOTE: MangaPanda has manga pages under the root URL, so we need to filter out pages we know that aren't manga. |
@@ -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); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | $titleData['latest_chapter'] = preg_replace('/^.*\/([0-9]+)$/', '$1', (string) $data['nodes_chapter']->getAttribute('href')); |
37 | 37 | |
38 | - $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->nodeValue)); |
|
38 | + $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->nodeValue)); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | return (!empty($titleData) ? $titleData : NULL); |
@@ -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 GameOfScanlation extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-z0-9\.-]+$/'; |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | The bad thing is these are interchangeable, despite them showing the exact same listing page. |
10 | 10 | Thankfully the title_url of manga which use /forums/ seem to be appended with ".%ID%" which means we can easily check them. */ |
11 | 11 | |
12 | - if (strpos($title_url, '.') !== FALSE) { |
|
12 | + if(strpos($title_url, '.') !== FALSE) { |
|
13 | 13 | $format = "https://gameofscanlation.moe/forums/{$title_url}/"; |
14 | 14 | } else { |
15 | 15 | $format = "https://gameofscanlation.moe/projects/{$title_url}/"; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | ]; |
25 | 25 | } |
26 | 26 | |
27 | - public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array { |
|
27 | + public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array { |
|
28 | 28 | $titleData = []; |
29 | 29 | |
30 | 30 | $fullURL = $this->getFullTitleURL($title_url); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $titleData['latest_chapter'] = preg_replace('/^projects\/.*?\/(.*?)\/$/', '$1', (string) $data['nodes_chapter']->getAttribute('href')); |
46 | 46 | |
47 | - $titleData['last_updated'] = date("Y-m-d H:i:s",(int) $data['nodes_latest']->getAttribute('title')); |
|
47 | + $titleData['last_updated'] = date("Y-m-d H:i:s", (int) $data['nodes_latest']->getAttribute('title')); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | return (!empty($titleData) ? $titleData : NULL); |
@@ -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 MangaFox extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-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); |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | |
35 | 35 | $link = preg_replace('/^(.*\/)(?:[0-9]+\.html)?$/', '$1', (string) $data['nodes_chapter']->getAttribute('href')); |
36 | 36 | $chapterURLSegments = explode('/', $link); |
37 | - $titleData['latest_chapter'] = $chapterURLSegments[5] . (isset($chapterURLSegments[6]) && !empty($chapterURLSegments[6]) ? "/{$chapterURLSegments[6]}" : ""); |
|
38 | - $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->nodeValue)); |
|
37 | + $titleData['latest_chapter'] = $chapterURLSegments[5].(isset($chapterURLSegments[6]) && !empty($chapterURLSegments[6]) ? "/{$chapterURLSegments[6]}" : ""); |
|
38 | + $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->nodeValue)); |
|
39 | 39 | |
40 | 40 | if($firstGet) { |
41 | 41 | $titleData = array_merge($titleData, $this->doCustomFollow($content['body'])); |
@@ -114,9 +114,9 @@ discard block |
||
114 | 114 | |
115 | 115 | $link = preg_replace('/^(.*\/)(?:[0-9]+\.html)?$/', '$1', (string) $nodes_chapter->item(0)->getAttribute('href')); |
116 | 116 | $chapterURLSegments = explode('/', $link); |
117 | - $titleData['latest_chapter'] = $chapterURLSegments[5] . (isset($chapterURLSegments[6]) && !empty($chapterURLSegments[6]) ? "/{$chapterURLSegments[6]}" : ""); |
|
117 | + $titleData['latest_chapter'] = $chapterURLSegments[5].(isset($chapterURLSegments[6]) && !empty($chapterURLSegments[6]) ? "/{$chapterURLSegments[6]}" : ""); |
|
118 | 118 | |
119 | - $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $nodes_latest->item(0)->nodeValue)); |
|
119 | + $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $nodes_latest->item(0)->nodeValue)); |
|
120 | 120 | |
121 | 121 | $title_url = explode('/', $title->getAttribute('href'))[4]; |
122 | 122 | $titleDataList[$title_url] = $titleData; |
@@ -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 MangaCow 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('/^.*\/([0-9\.]+)\/$/', '$1', (string) $data['nodes_chapter']->getAttribute('href')); |
38 | 38 | |
39 | - $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) substr($data['nodes_latest']->getAttribute('title'), 13))); |
|
39 | + $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) substr($data['nodes_latest']->getAttribute('title'), 13))); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | return (!empty($titleData) ? $titleData : NULL); |
@@ -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,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'; |