Failed Conditions
Pull Request — master (#221)
by
unknown
02:43
created
index.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -245,13 +245,13 @@
 block discarded – undo
245 245
 					break;
246 246
 					
247 247
 				case 'nests':
248
-                    ?>
248
+					?>
249 249
 
250 250
                     <script src="core/js/nests.maps.js.php"></script>
251 251
 					<script src="https://maps.googleapis.com/maps/api/js?key=<?= $config->system->GMaps_Key ?>&libraries=visualization&callback=initMap"></script>
252 252
 
253 253
                     <?php
254
-                    break;
254
+					break;
255 255
 			}
256 256
 		}
257 257
 		?>
Please login to merge, or discard this patch.
core/cron/nests.cron.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 GROUP BY pokemon.spawnpoint_id, pokemon.pokemon_id HAVING total_pokemon > 6 ORDER BY pokemon.pokemon_id ";
14 14
 $result 	= $mysqli->query($req);
15 15
 
16
-while($data = $result->fetch_object()){
16
+while ($data = $result->fetch_object()) {
17 17
 	$pokeid = $data->pokemon_id;
18 18
 	$nests['pokemon_id'] = $data->pokemon_id;
19 19
 	$nests['total_pokemon'] = $data->total_pokemon;
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
 	$nests['longitude'] = $data->longitude;
22 22
 
23 23
 	// Add the datas in file
24
-	$nestsdatas[] 	= $nests;
25
-	$json 		= json_encode($nestsdatas);
24
+	$nestsdatas[] = $nests;
25
+	$json = json_encode($nestsdatas);
26 26
 
27 27
 	file_put_contents(SYS_PATH.'/core/json/nests.stats.json', $json);
28 28
 }
29 29
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 GROUP BY pokemon.spawnpoint_id, pokemon.pokemon_id HAVING total_pokemon > 6 ORDER BY pokemon.pokemon_id ";
14 14
 $result 	= $mysqli->query($req);
15 15
 
16
-while($data = $result->fetch_object()){
16
+while($data = $result->fetch_object()) {
17 17
 	$pokeid = $data->pokemon_id;
18 18
 	$nests['pokemon_id'] = $data->pokemon_id;
19 19
 	$nests['total_pokemon'] = $data->total_pokemon;
Please login to merge, or discard this patch.
core/js/nests.maps.js.php 3 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,16 +15,16 @@
 block discarded – undo
15 15
 	$lang = $config->system->forced_lang;
16 16
 	$config->system->forced_lang = $lang;
17 17
 
18
-    # Send Javascript header
19
-    header('Content-type: text/javascript');
20
-    # Load Config
21
-    include_once('../../config.php');
22
-    include_once('../process/locales.loader.php');
23
-    # Load nests-file
18
+	# Send Javascript header
19
+	header('Content-type: text/javascript');
20
+	# Load Config
21
+	include_once('../../config.php');
22
+	include_once('../process/locales.loader.php');
23
+	# Load nests-file
24 24
 	$nest_file	= file_get_contents('../json/nests.stats.json');
25 25
 	$nests = json_decode($nest_file, true);
26 26
     
27
-    ?>
27
+	?>
28 28
 
29 29
 function initMap() {
30 30
     $.getJSON( "core/json/variables.json", function( variables ) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 
6 6
 <?php
7 7
 
8
-	$filePath	= dirname(__FILE__);
9
-	$config_file	= $filePath.'/../../config.php';
8
+	$filePath = dirname(__FILE__);
9
+	$config_file = $filePath.'/../../config.php';
10 10
 	include_once($config_file);
11 11
 	$variables      = $filePath.'/../json/variables.json';
12 12
 	$config         = json_decode(file_get_contents($variables));
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     include_once('../../config.php');
22 22
     include_once('../process/locales.loader.php');
23 23
     # Load nests-file
24
-	$nest_file	= file_get_contents('../json/nests.stats.json');
24
+	$nest_file = file_get_contents('../json/nests.stats.json');
25 25
 	$nests = json_decode($nest_file, true);
26 26
     
27 27
     ?>
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 	
166 166
     <?php 
167 167
 
168
-		foreach ($nests as $data) { 
168
+		foreach ($nests as $data) {
169 169
 			$pokeid = $data['pokemon_id'];
170 170
 		?>
171 171
         
Please login to merge, or discard this patch.