Completed
Push — master ( 7338a5...b104f9 )
by Angus
03:05
created
_scripts/generate_foolslide.php 1 patch
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
 		//Replace class names
65 65
 		$baseFile = str_replace('class HelveticaScans', "class {$this->className}", $baseFile);
66
-		$baseFile = str_replace('coversDefaultClass HelveticaScans', "coversDefaultClass {$this->className}", $baseFile);
66
+		$baseFile = str_replace('coversDefaultClass HelveticaScans', "coversdefaultclass {$this->className}", $baseFile);
67 67
 
68 68
 		//Replace tests
69 69
 		$titleList  = $this->getTitles();
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 		$baseFile = file_get_contents('./public/userscripts/manga-tracker.user.js');
88 88
 
89 89
 		$parse = parse_url($this->baseURL);
90
-		if(strpos($baseFile, $parse['host']) !== false) die("Domain already exists in userscript?");
90
+		if(strpos($baseFile, $parse['host']) !== FALSE) die("Domain already exists in userscript?");
91 91
 
92 92
 		preg_match('/\@updated      ([0-9\-]+)\r.*?\@version      ([0-9\.]+)/s', $baseFile, $matches);
93 93
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 		$require = <<<EOT
110 110
 	// @require      https://trackr.moe/userscripts/sites/{$this->className}.1.js
111 111
 	// @resource     fontAwesome
112
-EOT;
112
+eot;
113 113
 		$baseFile = str_replace('	// @resource     fontAwesome', $require, $baseFile);
114 114
 
115 115
 		file_put_contents('./public/userscripts/manga-tracker.user.js', $baseFile);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	};
136 136
 })(window.trackerSites = (window.trackerSites || {}));
137 137
 
138
-EOT;
138
+eot;
139 139
 
140 140
 		file_put_contents("./public/userscripts/sites/{$this->className}.js", $siteData);
141 141
 	}
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
 
156 156
 		$ch = curl_init("{$this->baseURL}/api/reader/chapters/orderby/desc_created/format/json");
157 157
 
158
-		curl_setopt($ch, CURLOPT_NOBODY, true);
159
-		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
158
+		curl_setopt($ch, CURLOPT_NOBODY, TRUE);
159
+		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
160 160
 		curl_exec($ch);
161 161
 		$status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
162 162
 		curl_close($ch);
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 		if($content = file_get_contents($jsonURL)) {
171 171
 			$json = json_decode($content, TRUE);
172 172
 			shuffle($json['comics']);
173
-			$comics = array_slice($json['comics'], 0, 5, true);
173
+			$comics = array_slice($json['comics'], 0, 5, TRUE);
174 174
 
175 175
 			foreach($comics as $comic) {
176 176
 				$titleArr[$comic['stub']] = $comic['name'];
Please login to merge, or discard this patch.