Code Duplication    Length = 8-8 lines in 2 locations

application/models/Site_Model.php 2 locations

@@ 688-695 (lines=8) @@
685
		return $success;
686
	}
687
688
	public function getChapterData(string $title_url, string $chapter) : array {
689
		//LANG/VOLUME/CHAPTER/CHAPTER_EXTRA(/page/)
690
		$chapter_parts = explode('/', $chapter);
691
		return [
692
			'url'    => "https://reader.kireicake.com/read/{$title_url}/{$chapter}",
693
			'number' => ($chapter_parts[1] !== '0' ? "v{$chapter_parts[1]}/" : '') . "c{$chapter_parts[2]}" . (isset($chapter_parts[3]) ? ".{$chapter_parts[3]}" : '')/*)*/
694
		];
695
	}
696
697
	public function getTitleData(string $title_url) {
698
		$titleData = [];
@@ 871-878 (lines=8) @@
868
		return $success;
869
	}
870
871
	public function getChapterData(string $title_url, string $chapter) : array {
872
		//LANG/VOLUME/CHAPTER/CHAPTER_EXTRA(/page/)
873
		$chapter_parts = explode('/', $chapter);
874
		return [
875
			'url'    => "https://reader.seaotterscans.com/read/{$title_url}/{$chapter}",
876
			'number' => ($chapter_parts[1] !== '0' ? "v{$chapter_parts[1]}/" : '') . "c{$chapter_parts[2]}" . (isset($chapter_parts[3]) ? ".{$chapter_parts[3]}" : '')/*)*/
877
		];
878
	}
879
880
	public function getTitleData(string $title_url) {
881
		$titleData = [];