Code Duplication    Length = 9-9 lines in 2 locations

application/models/Site_Model.php 2 locations

@@ 456-464 (lines=9) @@
453
		return "http://bato.to/comic/_/comics/-r".$title_parts[0];
454
	}
455
456
	public function getChapterData(string $title_string, string $chapter) : array {
457
		//$title_string isn't used here.
458
459
		$chapter_parts = explode(':--:', $chapter);
460
		return [
461
			'url'    => "http://bato.to/reader#" . $chapter_parts[0],
462
			'number' => $chapter_parts[1]
463
		];
464
	}
465
466
	public function getTitleData(string $title_url, bool $firstGet = FALSE) {
467
		$titleData = [];
@@ 915-923 (lines=9) @@
912
		return "http://kissmanga.com/Manga/{$title_url}";
913
	}
914
915
	public function getChapterData(string $title_url, string $chapter) : array {
916
		$chapter_parts = explode(':--:', $chapter);
917
918
		return [
919
			'url'    => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}",
920
			//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse.
921
			'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/
922
		];
923
	}
924
925
	public function getTitleData(string $title_url, bool $firstGet = FALSE) {
926
		$titleData = [];