Code Duplication    Length = 9-9 lines in 2 locations

application/models/Site_Model.php 2 locations

@@ 310-318 (lines=9) @@
307
		return "http://bato.to/comic/_/comics/-r".$title_parts[0];
308
	}
309
310
	public function getChapterData(string $title_string, string $chapter) : array {
311
		//$title_string isn't used here.
312
313
		$chapter_parts = explode(':--:', $chapter);
314
		return [
315
			'url'    => "http://bato.to/reader#" . $chapter_parts[0],
316
			'number' => $chapter_parts[1]
317
		];
318
	}
319
320
	public function getTitleData(string $title_url) {
321
		$titleData = [];
@@ 652-660 (lines=9) @@
649
		return "http://kissmanga.com/Manga/{$title_url}";
650
	}
651
652
	public function getChapterData(string $title_url, string $chapter) : array {
653
		$chapter_parts = explode(':--:', $chapter);
654
655
		return [
656
			'url'    => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}",
657
			//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse.
658
			'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/
659
		];
660
	}
661
662
	public function getTitleData(string $title_url) {
663
		$titleData = [];