Completed
Push — master ( 42c2e7...f3d796 )
by Angus
07:31
created
application/models/Tracker/Tracker_Admin_Model.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
 						//Make sure last_checked is always updated on successful run.
76 76
 						//CHECK: Is there a reason we aren't just doing this in updateByID?
77 77
 						$this->db->set('last_checked', 'CURRENT_TIMESTAMP', FALSE)
78
-						         ->where('id', $row->id)
79
-						         ->update('tracker_titles');
78
+								 ->where('id', $row->id)
79
+								 ->update('tracker_titles');
80 80
 
81 81
 						print " - ({$titleData['latest_chapter']})\n";
82 82
 					} else {
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 	 */
97 97
 	public function updateCustom() {
98 98
 		$query = $this->db->select('*')
99
-		                  ->from('tracker_sites')
100
-		                  ->where('status', 'enabled')
101
-		                  ->get();
99
+						  ->from('tracker_sites')
100
+						  ->where('status', 'enabled')
101
+						  ->get();
102 102
 
103 103
 		$sites = $query->result_array();
104 104
 		foreach ($sites as $site) {
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
 									//Make sure last_checked is always updated on successful run.
114 114
 									//CHECK: Is there a reason we aren't just doing this in updateByID?
115 115
 									$this->db->set('last_checked', 'CURRENT_TIMESTAMP', FALSE)
116
-									         ->where('id', $titleID)
117
-									         ->update('tracker_titles');
116
+											 ->where('id', $titleID)
117
+											 ->update('tracker_titles');
118 118
 
119 119
 									print " - ({$titleData['latest_chapter']})\n";
120 120
 								} else {
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
 				if($titleData['title'] && is_array($titleData) && !is_null($titleData['latest_chapter'])) {
172 172
 					if($titleData['title'] !== $row->title) {
173 173
 						$this->db->set('title', $titleData['title'])
174
-						         ->where('id', $row->id)
175
-						         ->update('tracker_titles');
174
+								 ->where('id', $row->id)
175
+								 ->update('tracker_titles');
176 176
 						//TODO: Add to history somehow?
177 177
 						print " - NEW TITLE ({$titleData['title']})\n";
178 178
 					} else {
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
 					//We might as well try to update as well.
183 183
 					if($this->Tracker->title->updateByID((int) $row->id, $titleData['latest_chapter'])) {
184 184
 						$this->db->set('last_checked', 'CURRENT_TIMESTAMP', FALSE)
185
-						         ->where('id', $row->id)
186
-						         ->update('tracker_titles');
185
+								 ->where('id', $row->id)
186
+								 ->update('tracker_titles');
187 187
 					}
188 188
 				} else {
189 189
 					log_message('error', "{$row->title} failed to update title successfully");
Please login to merge, or discard this patch.