Code Duplication    Length = 9-9 lines in 2 locations

application/models/Tracker/Sites/Batoto.php 1 location

@@ 21-29 (lines=9) @@
18
		return "http://bato.to/comic/_/comics/-r".$title_parts[0];
19
	}
20
21
	public function getChapterData(string $title_string, string $chapter) : array {
22
		//$title_string isn't used here.
23
24
		$chapter_parts = explode(':--:', $chapter);
25
		return [
26
			'url'    => "http://bato.to/reader#" . $chapter_parts[0],
27
			'number' => $chapter_parts[1]
28
		];
29
	}
30
31
	public function getTitleData(string $title_url, bool $firstGet = FALSE) {
32
		$titleData = [];

application/models/Tracker/Sites/KissManga.php 1 location

@@ 23-31 (lines=9) @@
20
		return "http://kissmanga.com/Manga/{$title_url}";
21
	}
22
23
	public function getChapterData(string $title_url, string $chapter) : array {
24
		$chapter_parts = explode(':--:', $chapter);
25
26
		return [
27
			'url'    => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}",
28
			//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse.
29
			'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/
30
		];
31
	}
32
33
	public function getTitleData(string $title_url, bool $firstGet = FALSE) {
34
		$titleData = [];