Completed
Push — master ( f2d2ea...222f63 )
by Angus
02:44
created
application/third_party/Ion-Auth/language/arabic/auth_lang.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if(!defined('BASEPATH')) exit('No direct script access allowed');
2 2
 /**
3 3
 * Name:  Auth Lang - English
4 4
 *
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 $lang['forgot_password_username_identity_label'] = 'Username';
135 135
 $lang['forgot_password_email_identity_label']    = 'Email';
136 136
 $lang['forgot_password_email_not_found']         = 'No record of that email address.';
137
-$lang['forgot_password_identity_not_found']         = 'No record of that username address.';
137
+$lang['forgot_password_identity_not_found'] = 'No record of that username address.';
138 138
 
139 139
 // Reset Password
140 140
 $lang['reset_password_heading']                               = 'Change Password';
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if ( ! defined('BASEPATH')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 /**
3 5
 * Name:  Auth Lang - English
4 6
 *
Please login to merge, or discard this patch.
application/third_party/Ion-Auth/language/greek/auth_lang.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if(!defined('BASEPATH')) exit('No direct script access allowed');
2 2
 /**
3 3
 * Name:  Auth Lang - English
4 4
 *
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 $lang['forgot_password_username_identity_label'] = 'Username';
135 135
 $lang['forgot_password_email_identity_label']    = 'Email';
136 136
 $lang['forgot_password_email_not_found']         = 'No record of that email address.';
137
-$lang['forgot_password_identity_not_found']         = 'No record of that username address.';
137
+$lang['forgot_password_identity_not_found'] = 'No record of that username address.';
138 138
 
139 139
 // Reset Password
140 140
 $lang['reset_password_heading']                               = 'Change Password';
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if ( ! defined('BASEPATH')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 /**
3 5
 * Name:  Auth Lang - English
4 6
 *
Please login to merge, or discard this patch.
application/third_party/Ion-Auth/language/ukrainian/auth_lang.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if(!defined('BASEPATH')) exit('No direct script access allowed');
2 2
 /**
3 3
 * Name:  Auth Lang - English
4 4
 *
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 $lang['forgot_password_username_identity_label'] = 'Username';
135 135
 $lang['forgot_password_email_identity_label']    = 'Email';
136 136
 $lang['forgot_password_email_not_found']         = 'No record of that email address.';
137
-$lang['forgot_password_identity_not_found']         = 'No record of that username address.';
137
+$lang['forgot_password_identity_not_found'] = 'No record of that username address.';
138 138
 
139 139
 // Reset Password
140 140
 $lang['reset_password_heading']                               = 'Change Password';
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if ( ! defined('BASEPATH')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 /**
3 5
 * Name:  Auth Lang - English
4 6
 *
Please login to merge, or discard this patch.
application/models/Tracker/Sites/ChampionScans.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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 ChampionScans extends Base_FoolSlide_Site_Model {
4 4
 	public $baseURL = 'http://reader.championscans.com';
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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 ChampionScans extends Base_FoolSlide_Site_Model {
4 4
 	public $baseURL = 'http://reader.championscans.com';
Please login to merge, or discard this patch.
_scripts/generate_foolslide.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 if(!extension_loaded('gd')) die('GD ext is required to run this!');
4 4
 
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	private $className;
10 10
 
11 11
 	public function __construct() {
12
-		if(isset($_SERVER['argv']) && count($_SERVER['argv']) === 3){
12
+		if(isset($_SERVER['argv']) && count($_SERVER['argv']) === 3) {
13 13
 			$this->baseURL   = rtrim($_SERVER['argv'][1], '/');
14 14
 			$this->className = $_SERVER['argv'][2];
15 15
 
@@ -92,12 +92,12 @@  discard block
 block discarded – undo
92 92
 
93 93
 		//Update @updated
94 94
 		$currentDate = date("Y-m-d", time());
95
-		$baseFile = str_replace("@updated      {$matches[1]}","@updated      {$currentDate}", $baseFile);
95
+		$baseFile = str_replace("@updated      {$matches[1]}", "@updated      {$currentDate}", $baseFile);
96 96
 
97 97
 		//Update @version
98 98
 		$currentVersion = explode('.', $matches[2]);
99
-		$newVersion = "{$currentVersion[0]}.{$currentVersion[1]}.". (((int) $currentVersion[2]) + 1);
100
-		$baseFile = str_replace("@version      {$matches[2]}","@version      {$newVersion}", $baseFile);
99
+		$newVersion = "{$currentVersion[0]}.{$currentVersion[1]}.".(((int) $currentVersion[2]) + 1);
100
+		$baseFile = str_replace("@version      {$matches[2]}", "@version      {$newVersion}", $baseFile);
101 101
 
102 102
 		//Add site
103 103
 		$siteData = <<<EOT
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php declare(strict_types=1);
2 2
 
3
-if(!extension_loaded('gd')) die('GD ext is required to run this!');
3
+if(!extension_loaded('gd')) {
4
+	die('GD ext is required to run this!');
5
+}
4 6
 
5 7
 chdir(dirname(__FILE__).'/../'); //Just to make things easier, change dir to project root.
6 8
 
@@ -9,7 +11,7 @@  discard block
 block discarded – undo
9 11
 	private $className;
10 12
 
11 13
 	public function __construct() {
12
-		if(isset($_SERVER['argv']) && count($_SERVER['argv']) === 3){
14
+		if(isset($_SERVER['argv']) && count($_SERVER['argv']) === 3) {
13 15
 			$this->baseURL   = rtrim($_SERVER['argv'][1], '/');
14 16
 			$this->className = $_SERVER['argv'][2];
15 17
 
@@ -82,7 +84,9 @@  discard block
 block discarded – undo
82 84
 		$baseFile = file_get_contents('./public/userscripts/manga-tracker.user.js');
83 85
 
84 86
 		$parse = parse_url($this->baseURL);
85
-		if(strpos($baseFile, $parse['host']) !== false) die("Domain already exists in userscript?");
87
+		if(strpos($baseFile, $parse['host']) !== false) {
88
+			die("Domain already exists in userscript?");
89
+		}
86 90
 
87 91
 		preg_match('/\@updated      ([0-9\-]+)\r.*?\@version      ([0-9\.]+)/s', $baseFile, $matches);
88 92
 
@@ -179,7 +183,9 @@  discard block
 block discarded – undo
179 183
 			}
180 184
 		}
181 185
 
182
-		if(empty($titleArr)) die("API isn't returning any titles?");
186
+		if(empty($titleArr)) {
187
+			die("API isn't returning any titles?");
188
+		}
183 189
 		return $titleArr;
184 190
 	}
185 191
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
 		//Replace class names
60 60
 		$baseFile = str_replace('class HelveticaScans', "class {$this->className}", $baseFile);
61
-		$baseFile = str_replace('coversDefaultClass HelveticaScans', "coversDefaultClass {$this->className}", $baseFile);
61
+		$baseFile = str_replace('coversDefaultClass HelveticaScans', "coversdefaultclass {$this->className}", $baseFile);
62 62
 
63 63
 		//Replace tests
64 64
 		$titleList  = $this->getTitles();
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 		$baseFile = file_get_contents('./public/userscripts/manga-tracker.user.js');
83 83
 
84 84
 		$parse = parse_url($this->baseURL);
85
-		if(strpos($baseFile, $parse['host']) !== false) die("Domain already exists in userscript?");
85
+		if(strpos($baseFile, $parse['host']) !== FALSE) die("Domain already exists in userscript?");
86 86
 
87 87
 		preg_match('/\@updated      ([0-9\-]+)\r.*?\@version      ([0-9\.]+)/s', $baseFile, $matches);
88 88
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	}),
114 114
 
115 115
 	//Tracking site
116
-EOT;
116
+eot;
117 117
 		$baseFile = str_replace('	//Tracking site', $siteData, $baseFile);
118 118
 
119 119
 		file_put_contents('./public/userscripts/manga-tracker.user.js', $baseFile);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 ## [{$date}]
147 147
 ### Added
148 148
 - Support for {$this->className}.
149
-EOT;
149
+eot;
150 150
 			$changelogFile = str_replace('All notable changes to this project will be documented in this file.', "All notable changes to this project will be documented in this file.\r\n\r\n{$log}", $changelogFile);
151 151
 		}
152 152
 
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
 
159 159
 		$ch = curl_init("{$this->baseURL}/api/reader/chapters/orderby/desc_created/format/json");
160 160
 
161
-		curl_setopt($ch, CURLOPT_NOBODY, true);
162
-		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
161
+		curl_setopt($ch, CURLOPT_NOBODY, TRUE);
162
+		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
163 163
 		curl_exec($ch);
164 164
 		$status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
165 165
 		curl_close($ch);
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 		if($content = file_get_contents($jsonURL)) {
174 174
 			$json = json_decode($content, TRUE);
175 175
 			shuffle($json['comics']);
176
-			$comics = array_slice($json['comics'], 0, 5, true);
176
+			$comics = array_slice($json['comics'], 0, 5, TRUE);
177 177
 
178 178
 			foreach($comics as $comic) {
179 179
 				$titleArr[$comic['stub']] = $comic['name'];
Please login to merge, or discard this patch.
application/models/Tracker/Sites/PureMashiroScans.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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 PureMashiroScans extends Base_FoolSlide_Site_Model {
4 4
 	public $baseURL = 'http://puremashiro.moe/reader';
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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 PureMashiroScans extends Base_FoolSlide_Site_Model {
4 4
 	public $baseURL = 'http://puremashiro.moe/reader';
Please login to merge, or discard this patch.
application/models/Tracker/Sites/RavensScans.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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
 //Ravens Scans is a bit of an irregular in that it uses a combination of a FoolSlide fork (https://github.com/dvaJi/FoOlSlide) and a standalone front-end (https://github.com/dvaJi/ReaderFront).
4 4
 class RavensScans extends Base_FoolSlide_Site_Model {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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
 //Ravens Scans is a bit of an irregular in that it uses a combination of a FoolSlide fork (https://github.com/dvaJi/FoOlSlide) and a standalone front-end (https://github.com/dvaJi/ReaderFront).
4 4
 class RavensScans extends Base_FoolSlide_Site_Model {
Please login to merge, or discard this patch.
application/models/Tracker/Sites/HatigarmScans.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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 HatigarmScans extends Base_FoolSlide_Site_Model {
4 4
 	public $baseURL = 'http://hatigarmscans.eu/hs';
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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 HatigarmScans extends Base_FoolSlide_Site_Model {
4 4
 	public $baseURL = 'http://hatigarmscans.eu/hs';
Please login to merge, or discard this patch.
application/models/Tracker/Sites/CatScans.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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 CatScans extends Base_FoolSlide_Site_Model {
4 4
 	public $baseURL = 'https://reader.thecatscans.com';
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 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 CatScans extends Base_FoolSlide_Site_Model {
4 4
 	public $baseURL = 'https://reader.thecatscans.com';
Please login to merge, or discard this patch.