Code Duplication    Length = 9-9 lines in 2 locations

application/models/Site_Model.php 2 locations

@@ 435-443 (lines=9) @@
432
		return "http://bato.to/comic/_/comics/-r".$title_parts[0];
433
	}
434
435
	public function getChapterData(string $title_string, string $chapter) : array {
436
		//$title_string isn't used here.
437
438
		$chapter_parts = explode(':--:', $chapter);
439
		return [
440
			'url'    => "http://bato.to/reader#" . $chapter_parts[0],
441
			'number' => $chapter_parts[1]
442
		];
443
	}
444
445
	public function getTitleData(string $title_url, bool $firstGet = FALSE) {
446
		$titleData = [];
@@ 894-902 (lines=9) @@
891
		return "http://kissmanga.com/Manga/{$title_url}";
892
	}
893
894
	public function getChapterData(string $title_url, string $chapter) : array {
895
		$chapter_parts = explode(':--:', $chapter);
896
897
		return [
898
			'url'    => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}",
899
			//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse.
900
			'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/
901
		];
902
	}
903
904
	public function getTitleData(string $title_url, bool $firstGet = FALSE) {
905
		$titleData = [];