Completed
Push — master ( 53eae5...5a39da )
by Angus
03:43
created
application/models/Tracker/Tracker_Admin_Model.php 1 patch
Braces   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -85,7 +85,9 @@  discard block
 block discarded – undo
85 85
 				}
86 86
 
87 87
 				$siteRateLimits[$row->site_class]++;
88
-				if($siteRateLimits[$row->site_class] > $hardRateLimit) continue;
88
+				if($siteRateLimits[$row->site_class] > $hardRateLimit) {
89
+					continue;
90
+				}
89 91
 
90 92
 				if($siteRateLimits[$row->site_class] > 25) {
91 93
 					// We're doing lots of requests to a single site, so add delays.
@@ -174,8 +176,7 @@  discard block
 block discarded – undo
174 176
 
175 177
 						print " - Something went wrong?\n";
176 178
 					}
177
-				}
178
-				else if(array_key_exists('status', $titleData)) {
179
+				} else if(array_key_exists('status', $titleData)) {
179 180
 					// Series has probably been deleted.
180 181
 
181 182
 					if($this->Tracker->title->updateTitleDataByID((int) $row->title_id, $titleData)) {
@@ -185,8 +186,7 @@  discard block
 block discarded – undo
185 186
 
186 187
 						print " - Something went wrong?\n";
187 188
 					}
188
-				}
189
-				else if($site->canHaveNoChapters) {
189
+				} else if($site->canHaveNoChapters) {
190 190
 					// Previous statements failed, however site can have no chapters.
191 191
 					if($this->Tracker->title->updateTitleDataByID((int) $row->title_id, ['latest_chapter' => NULL])) {
192 192
 						print " - (No chapters found?)\n";
@@ -195,12 +195,10 @@  discard block
 block discarded – undo
195 195
 
196 196
 						print " - Something went wrong?\n";
197 197
 					}
198
-				}
199
-				else {
198
+				} else {
200 199
 					log_message('error', 'handleUpdate failed due to invalid titleData info?');
201 200
 				}
202
-			}
203
-			else {
201
+			} else {
204 202
 				// If TitleData does not exist, either something has broken, or we've set up the site wrong.
205 203
 
206 204
 				//TODO: We should have some way to handle this in the site models.
Please login to merge, or discard this patch.