Code Duplication    Length = 9-9 lines in 2 locations

application/models/Site_Model.php 2 locations

@@ 306-314 (lines=9) @@
303
		return "http://bato.to/comic/_/comics/-r".$title_parts[0];
304
	}
305
306
	public function getChapterData(string $title_string, string $chapter) : array {
307
		//$title_string isn't used here.
308
309
		$chapter_parts = explode(':--:', $chapter);
310
		return [
311
			'url'    => "http://bato.to/reader#" . $chapter_parts[0],
312
			'number' => $chapter_parts[1]
313
		];
314
	}
315
316
	public function getTitleData(string $title_url) {
317
		$titleData = [];
@@ 642-650 (lines=9) @@
639
		return "http://kissmanga.com/Manga/{$title_url}";
640
	}
641
642
	public function getChapterData(string $title_url, string $chapter) : array {
643
		$chapter_parts = explode(':--:', $chapter);
644
645
		return [
646
			'url'    => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}",
647
			//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse.
648
			'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/
649
		];
650
	}
651
652
	public function getTitleData(string $title_url) {
653
		$titleData = [];