Code Duplication    Length = 4-4 lines in 4 locations

application/models/History_Model.php 4 locations

@@ 185-188 (lines=4) @@
182
				$arrRow['site_sprite'] = str_replace('.', '-', $row->site);
183
184
				switch($row->type) {
185
					case 1:
186
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
187
						$arrRow['status'] = "Series added at '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>' to category '{$row->custom2}'";
188
						break;
189
190
					case 2:
191
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
@@ 190-193 (lines=4) @@
187
						$arrRow['status'] = "Series added at '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>' to category '{$row->custom2}'";
188
						break;
189
190
					case 2:
191
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
192
						$arrRow['status'] = "Chapter updated to '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>'";
193
						break;
194
195
					case 3:
196
						$arrRow['status'] = "Series removed";
@@ 207-210 (lines=4) @@
204
						$arrRow['status'] = "Category set to '{$row->custom1}'";
205
						break;
206
207
					case 6:
208
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
209
						$arrRow['status'] = "Favourited '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>'";
210
						break;
211
212
					case 7:
213
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
@@ 212-215 (lines=4) @@
209
						$arrRow['status'] = "Favourited '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>'";
210
						break;
211
212
					case 7:
213
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
214
						$arrRow['status'] = "Unfavourited '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>'";
215
						break;
216
217
					default:
218
						$arrRow['status'] = "Something went wrong!";