Code Duplication    Length = 9-9 lines in 2 locations

application/models/Site_Model.php 2 locations

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