|
@@ -1,4 +1,4 @@ discard block |
|
|
block discarded – undo |
|
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_Site_Model { |
|
4
|
4
|
public $titleFormat = '/^[a-z0-9_-]+$/'; |
|
@@ -13,11 +13,11 @@ discard block |
|
|
block discarded – undo |
|
13
|
13
|
$chapter_parts = explode('/', $chapter); |
|
14
|
14
|
return [ |
|
15
|
15
|
'url' => "http://sensescans.com/reader/read/{$title_url}/{$chapter}/", |
|
16
|
|
- 'number' => ($chapter_parts[1] !== '0' ? "v{$chapter_parts[1]}/" : '') . "c{$chapter_parts[2]}" . (isset($chapter_parts[3]) ? ".{$chapter_parts[3]}" : '')/*)*/ |
|
|
16
|
+ 'number' => ($chapter_parts[1] !== '0' ? "v{$chapter_parts[1]}/" : '')."c{$chapter_parts[2]}".(isset($chapter_parts[3]) ? ".{$chapter_parts[3]}" : '')/*)*/ |
|
17
|
17
|
]; |
|
18
|
18
|
} |
|
19
|
19
|
|
|
20
|
|
- public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array { |
|
|
20
|
+ public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array { |
|
21
|
21
|
$fullURL = $this->getFullTitleURL($title_url); |
|
22
|
22
|
return $this->parseFoolSlide($fullURL, $title_url); |
|
23
|
23
|
} |
Please login to merge, or discard this patch.