Completed
Push — master ( 0e5954...305d32 )
by Angus
05:08
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
 					print "> {$titleData['title']} <{$site['site_class']}>"; //Print this prior to doing anything so we can more easily find out if something went wrong
202 202
 					if(is_array($titleData) && !is_null($titleData['latest_chapter'])) {
203 203
 						if($dbTitleData = $this->Tracker->title->getID($titleURL, (int) $site['id'], FALSE, TRUE)) {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 		$query = $this->db->select('tracker_titles.id, tracker_titles.title_url, tracker_sites.site_class')
240 240
 		                  ->from('tracker_titles')
241 241
 		                  ->join('tracker_sites', 'tracker_sites.id = tracker_titles.site_id', 'left')
242
-		                  ->where('tracker_titles.followed','N')
242
+		                  ->where('tracker_titles.followed', 'N')
243 243
 		                  ->where('tracker_titles !=', '255')
244 244
 		                  ->where('tracker_sites.status', 'enabled')
245 245
 		                  ->where('tracker_sites.use_custom', 'Y')
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 		// @formatter:on
298 298
 
299 299
 		if($query->num_rows() > 0) {
300
-			foreach ($query->result() as $row) {
300
+			foreach($query->result() as $row) {
301 301
 				print "> {$row->title} <{$row->site_class}>"; //Print this prior to doing anything so we can more easily find out if something went wrong
302 302
 				$titleData = $this->sites->{$row->site_class}->getTitleData($row->title_url);
303 303
 				if($titleData['title'] && is_array($titleData) && !is_null($titleData['latest_chapter'])) {
Please login to merge, or discard this patch.
application/config/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 //TEMP
80 80
 $route['user/dashboard_beta'] = 'User/DashboardBeta';
81 81
 
82
-$route['api/internal/get_list']                                                  = 'API/Internal/GetList';
82
+$route['api/internal/get_list'] = 'API/Internal/GetList';
83 83
 $route['api/internal/get_list/(all|reading|on-hold|plan-to-read|(custom(?:1|2|3)))'] = 'API/Internal/GetList/index/$1';
84 84
 
85 85
 $route['ajax/username_check']['post'] = 'Ajax/UsernameCheck'; //rate limited
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
 $route['import_amr']                  = 'Import_AMR';
103 103
 
104
-$route['report_issue']      = 'ReportIssue';
104
+$route['report_issue'] = 'ReportIssue';
105 105
 
106 106
 $route['stats']       = 'Stats';
107 107
 $route['help']        = 'Help';
Please login to merge, or discard this patch.