@@ -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 Mangazuki 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); |
@@ -31,12 +31,12 @@ discard block |
||
31 | 31 | "" |
32 | 32 | ); |
33 | 33 | if($data) { |
34 | - $titleData['title'] = trim(preg_replace('/ Added on .*$/','', $data['nodes_title']->textContent)); |
|
34 | + $titleData['title'] = trim(preg_replace('/ Added on .*$/', '', $data['nodes_title']->textContent)); |
|
35 | 35 | |
36 | 36 | $titleData['latest_chapter'] = preg_replace('/^.*\/([0-9\.]+)$/', '$1', (string) $data['nodes_chapter']->getAttribute('href')); |
37 | 37 | |
38 | - $dateString = str_replace('Added ', '',$data['nodes_latest']->textContent); |
|
39 | - $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime($dateString)); |
|
38 | + $dateString = str_replace('Added ', '', $data['nodes_latest']->textContent); |
|
39 | + $titleData['last_updated'] = date("Y-m-d H:i:s", strtotime($dateString)); |
|
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 Mangazuki extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-zA-Z0-9-]+$/'; |
@@ -136,7 +136,7 @@ |
||
136 | 136 | | |
137 | 137 | <a href="#" class="set-mal-id" data-mal-id="<?=$row['mal_id']?>" data-mal-type="<?=$row['mal_type']?>">Set MAL ID</a> <?php if(!is_null($row['mal_id']) && $row['mal_type'] == 'chapter') { ?><span>(<small><?=($row['mal_id'] !== '0' ? $row['mal_id'] : 'none')?></small>)</span><?php } ?> |
138 | 138 | | |
139 | - Tags (<a href="#" class="edit-tags small">Edit</a>): <span class="text-lowercase tag-list"><?=($row['has_tags'] ? implode("", array_map(function ($str) { return "<i class='tag'>{$str}</i>"; }, explode(",", $row['tag_list']))) : "none")?></span> |
|
139 | + Tags (<a href="#" class="edit-tags small">Edit</a>): <span class="text-lowercase tag-list"><?=($row['has_tags'] ? implode("", array_map(function($str) { return "<i class='tag'>{$str}</i>"; }, explode(",", $row['tag_list']))) : "none")?></span> |
|
140 | 140 | <div class="input-group hidden tag-edit"> |
141 | 141 | <input type="text" class="form-control" placeholder="tag1,tag2,tag3" maxlength="255" pattern='[a-z0-9-_,]{0,255}' value="<?=$row['tag_list']?>"> |
142 | 142 | <span class="input-group-btn"> |
@@ -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 YummyGummyScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'http://reader.ygscans.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 YummyGummyScans extends Base_FoolSlide_Site_Model { |
4 | 4 | public $baseURL = 'http://reader.ygscans.com'; |
@@ -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 MerakiScans 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 @@ |
||
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 MerakiScans extends Base_Site_Model { |
4 | 4 | public $titleFormat = '/^[a-zA-Z0-9_-]+$/'; |