Code Duplication    Length = 8-11 lines in 2 locations

application/models/Tracker_Model.php 2 locations

@@ 205-215 (lines=11) @@
202
		return  $success;
203
	}
204
205
	public function deleteTrackerByID(int $userID, int $chapterID) {
206
		//Series are not fully deleted, they are just marked as inactive as to hide them from the user.
207
		//This is to allow user history to function properly.
208
209
		$success = $this->db->set(['active' => 'N', 'last_updated' => NULL])
210
		                    ->where('user_id', $userID)
211
		                    ->where('id', $chapterID)
212
		                    ->update('tracker_chapters');
213
214
		return (bool) $success;
215
	}
216
	private function updateTitleById(int $id, string $latestChapter) {
217
		//FIXME: Really not too happy with how we're doing history stuff here, it just feels messy.
218
		$query = $this->db->select('latest_chapter AS current_chapter')
@@ 413-420 (lines=8) @@
410
411
		return $status;
412
	}
413
	public function setCategoryTrackerByID(int $userID, int $chapterID, string $category) : bool {
414
		$success = $this->db->set(['category' => $category, 'active' => 'Y', 'last_updated' => NULL])
415
		                    ->where('user_id', $userID)
416
		                    ->where('id', $chapterID)
417
		                    ->update('tracker_chapters');
418
419
		return (bool) $success;
420
	}
421
422
423
	public function updateTagsByID(int $userID, int $chapterID, string $tag_string) : bool {