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

RavensScans   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFullTitleURL() 0 3 1
A getJSONTitleURL() 0 3 1
A getJSONUpdateURL() 0 3 1
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