Code Duplication    Length = 9-9 lines in 2 locations

application/models/Site_Model.php 2 locations

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