Code Duplication    Length = 9-9 lines in 2 locations

application/models/Site_Model.php 2 locations

@@ 284-292 (lines=9) @@
281
		return $success;
282
	}
283
284
	public function getChapterData(string $title_string, string $chapter) : array {
285
		//$title_string isn't used here.
286
287
		$chapter_parts = explode(':--:', $chapter);
288
		return [
289
			'url'    => "http://bato.to/reader#" . $chapter_parts[0],
290
			'number' => $chapter_parts[1]
291
		];
292
	}
293
294
	public function getTitleData(string $title_url) {
295
		$titleData = [];
@@ 666-674 (lines=9) @@
663
		return $success;
664
	}
665
666
	public function getChapterData(string $title_url, string $chapter) : array {
667
		$chapter_parts = explode(':--:', $chapter);
668
669
		return [
670
			'url'    => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}",
671
			//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse.
672
			'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/
673
		];
674
	}
675
676
	public function getTitleData(string $title_url) {
677
		$titleData = [];