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 = [];
@@ 924-932 (lines=9) @@
921
		return "http://kissmanga.com/Manga/{$title_url}";
922
	}
923
924
	public function getChapterData(string $title_url, string $chapter) : array {
925
		$chapter_parts = explode(':--:', $chapter);
926
927
		return [
928
			'url'    => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}",
929
			//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse.
930
			'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/
931
		];
932
	}
933
934
	public function getTitleData(string $title_url, bool $firstGet = FALSE) {
935
		$titleData = [];