Completed
Push — master ( 387b2c...31214c )
by Angus
03:11
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'])) {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 		$query = $query->get();
154 154
 
155 155
 		if($query->num_rows() > 0) {
156
-			foreach ($query->result() as $row) {
156
+			foreach($query->result() as $row) {
157 157
 				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
158 158
 				$titleData = $this->sites->{$row->site_class}->getTitleData($row->title_url);
159 159
 				if(is_array($titleData) && !is_null($titleData['latest_chapter'])) {
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
 		                  ->get();
195 195
 
196 196
 		$sites = $query->result_array();
197
-		foreach ($sites as $site) {
197
+		foreach($sites as $site) {
198 198
 			$siteClass = $this->sites->{$site['site_class']};
199 199
 			if($titleDataList = $siteClass->doCustomUpdate()) {
200
-				foreach ($titleDataList as $titleURL => $titleData) {
200
+				foreach($titleDataList as $titleURL => $titleData) {
201 201
 					$titleURL = (string) $titleURL; //Number only keys get converted to int for some reason, so we need to fix that.
202 202
 					print "> {$titleData['title']} <{$site['site_class']}>"; //Print this prior to doing anything so we can more easily find out if something went wrong
203 203
 					if(is_array($titleData) && !is_null($titleData['latest_chapter'])) {
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 		$query = $this->db->select('tracker_titles.id, tracker_titles.title_url, tracker_sites.site_class')
241 241
 		                  ->from('tracker_titles')
242 242
 		                  ->join('tracker_sites', 'tracker_sites.id = tracker_titles.site_id', 'left')
243
-		                  ->where('tracker_titles.followed','N')
243
+		                  ->where('tracker_titles.followed', 'N')
244 244
 		                  ->where('tracker_titles !=', '255')
245 245
 		                  ->where('tracker_sites.status', 'enabled')
246 246
 		                  ->where('tracker_sites.use_custom', 'Y')
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 		// @formatter:on
299 299
 
300 300
 		if($query->num_rows() > 0) {
301
-			foreach ($query->result() as $row) {
301
+			foreach($query->result() as $row) {
302 302
 				print "> {$row->title} <{$row->site_class}>"; //Print this prior to doing anything so we can more easily find out if something went wrong
303 303
 				$titleData = $this->sites->{$row->site_class}->getTitleData($row->title_url);
304 304
 				if($titleData['title'] && is_array($titleData) && !is_null($titleData['latest_chapter'])) {
Please login to merge, or discard this patch.