Code Duplication    Length = 4-4 lines in 4 locations

application/models/History_Model.php 4 locations

@@ 152-155 (lines=4) @@
149
				$arrRow['site_sprite'] = str_replace('.', '-', $row->site);
150
151
				switch($row->type) {
152
					case 1:
153
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
154
						$arrRow['status'] = "Series added at '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>' to category '{$row->custom2}'";
155
						break;
156
157
					case 2:
158
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
@@ 157-160 (lines=4) @@
154
						$arrRow['status'] = "Series added at '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>' to category '{$row->custom2}'";
155
						break;
156
157
					case 2:
158
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
159
						$arrRow['status'] = "Chapter updated to '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>'";
160
						break;
161
162
					case 3:
163
						$arrRow['status'] = "Series removed";
@@ 174-177 (lines=4) @@
171
						$arrRow['status'] = "Category set to '{$row->custom1}'";
172
						break;
173
174
					case 6:
175
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
176
						$arrRow['status'] = "Favourited '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>'";
177
						break;
178
179
					case 7:
180
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
@@ 179-182 (lines=4) @@
176
						$arrRow['status'] = "Favourited '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>'";
177
						break;
178
179
					case 7:
180
						$chapterData = $this->Tracker->sites->{$row->site_class}->getChapterData($row->title_url, $row->custom1);
181
						$arrRow['status'] = "Unfavourited '<a href=\"{$chapterData['url']}\">{$chapterData['number']}</a>'";
182
						break;
183
184
					default:
185
						$arrRow['status'] = "Something went wrong!";