Completed
Push — master ( bee751...d8893c )
by Angus
02:29
created

RavensScans::getJSONTitleURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed');
2
3
//Ravens Scans is a bit of an irregular in that it uses a combination of a FoolSlide fork (https://github.com/dvaJi/FoOlSlide) and a standalone front-end (https://github.com/dvaJi/ReaderFront).
4
class RavensScans extends Base_FoolSlide_Site_Model {
5
	public $baseURL = 'http://ravens-scans.com';
6
7
	public function getFullTitleURL(string $title_url) : string {
8
		return "{$this->baseURL}/multi/comic/{$title_url}";
9
	}
10
11
	public function getJSONTitleURL(string $title_url) : string {
12
		return "{$this->baseURL}/lector/api/v1/comic?stub={$title_url}";
13
	}
14
	public function getJSONUpdateURL() : string {
15
		return "{$this->baseURL}/lector/api/reader/chapters/orderby/desc_created/format/json";
16
	}
17
}
18