Completed
Push — master ( d4b7ca...3efff8 )
by Angus
02:46
created
application/models/Tracker/Tracker_Admin_Model.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed');
2 2
 
3 3
 class Tracker_Admin_Model extends Tracker_Base_Model {
4 4
 	public function __construct() {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		// @formatter:on
76 76
 
77 77
 		if($query->num_rows() > 0) {
78
-			foreach ($query->result() as $row) {
78
+			foreach($query->result() as $row) {
79 79
 				print "> {$row->title} <{$row->site_class} - {$row->title_url}> | <{$row->title_id}>"; //Print this prior to doing anything so we can more easily find out if something went wrong
80 80
 				$titleData = $this->sites->{$row->site_class}->getTitleData($row->title_url);
81 81
 				if(is_array($titleData) && (!is_null($titleData['latest_chapter']) || $this->sites->{$row->site_class}->canHaveNoChapters)) {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 		$query = $query->get();
173 173
 
174 174
 		if($query->num_rows() > 0) {
175
-			foreach ($query->result() as $row) {
175
+			foreach($query->result() as $row) {
176 176
 				print "> {$row->title} <{$row->site_class} - {$row->title_url}> | <{$row->title_id}>"; //Print this prior to doing anything so we can more easily find out if something went wrong
177 177
 				$titleData = $this->sites->{$row->site_class}->getTitleData($row->title_url);
178 178
 				if(is_array($titleData) && !is_null($titleData['latest_chapter'])) {
@@ -213,10 +213,10 @@  discard block
 block discarded – undo
213 213
 		                  ->get();
214 214
 
215 215
 		$sites = $query->result_array();
216
-		foreach ($sites as $site) {
216
+		foreach($sites as $site) {
217 217
 			$siteClass = $this->sites->{$site['site_class']};
218 218
 			if($titleDataList = $siteClass->doCustomUpdate()) {
219
-				foreach ($titleDataList as $titleURL => $titleData) {
219
+				foreach($titleDataList as $titleURL => $titleData) {
220 220
 					$titleURL = (string) $titleURL; //Number only keys get converted to int for some reason, so we need to fix that.
221 221
 					print "> {$titleData['title']} <{$site['site_class']}>"; //Print this prior to doing anything so we can more easily find out if something went wrong
222 222
 					if(is_array($titleData) && !is_null($titleData['latest_chapter'])) {
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 		$query = $this->db->select('tracker_titles.id, tracker_titles.title_url, tracker_sites.site_class')
260 260
 		                  ->from('tracker_titles')
261 261
 		                  ->join('tracker_sites', 'tracker_sites.id = tracker_titles.site_id', 'left')
262
-		                  ->where('tracker_titles.followed','N')
262
+		                  ->where('tracker_titles.followed', 'N')
263 263
 		                  ->where('tracker_titles !=', '255')
264 264
 		                  ->where('tracker_sites.status', 'enabled')
265 265
 		                  ->where('tracker_sites.use_custom', 'Y')
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 		// @formatter:on
318 318
 
319 319
 		if($query->num_rows() > 0) {
320
-			foreach ($query->result() as $row) {
320
+			foreach($query->result() as $row) {
321 321
 				print "> {$row->title} <{$row->site_class}>"; //Print this prior to doing anything so we can more easily find out if something went wrong
322 322
 				$titleData = $this->sites->{$row->site_class}->getTitleData($row->title_url);
323 323
 				if($titleData['title'] && is_array($titleData) && !is_null($titleData['latest_chapter'])) {
Please login to merge, or discard this patch.