Failed Conditions
Pull Request — master (#194)
by
unknown
02:36
created
pages/pokemon.page.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -318,12 +318,12 @@  discard block
 block discarded – undo
318 318
 
319 319
         <tbody>
320 320
             <?php
321
-                $i = 0;
322
-                foreach ($top as $top100) {
323
-                    $i ++;
324
-                    $move1 = $top100->move_1;
325
-                    $move2 = $top100->move_2;
326
-                    ?>
321
+				$i = 0;
322
+				foreach ($top as $top100) {
323
+					$i ++;
324
+					$move1 = $top100->move_1;
325
+					$move2 = $top100->move_2;
326
+					?>
327 327
 
328 328
                     <tr>
329 329
                         <td><?= $i ?></td>
@@ -357,12 +357,12 @@  discard block
 block discarded – undo
357 357
         </thead>
358 358
         <tbody>
359 359
             <?php
360
-                $i = 0;
361
-                foreach ($toptrainer as $besttrainer) {
362
-                    $i ++;
363
-                    $move1 = $besttrainer->move_1;
364
-                    $move2 = $besttrainer->move_2;
365
-                    ?>
360
+				$i = 0;
361
+				foreach ($toptrainer as $besttrainer) {
362
+					$i ++;
363
+					$move1 = $besttrainer->move_1;
364
+					$move2 = $besttrainer->move_2;
365
+					?>
366 366
 
367 367
                     <tr>
368 368
                         <td><?= $i ?></td>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
 		<div class="col-sm-1 hidden-xs">
33 33
 
34
-				<?php if ($pokemon->id-1 > 0) { ?>
34
+				<?php if ($pokemon->id - 1 > 0) { ?>
35 35
 
36
-				<p class="nav-links"><a href="pokemon/<?= $pokemon->id-1 ?>"><i class="fa fa-chevron-left"></i></a></p>
36
+				<p class="nav-links"><a href="pokemon/<?= $pokemon->id - 1 ?>"><i class="fa fa-chevron-left"></i></a></p>
37 37
 
38 38
 				<?php }?>
39 39
 
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 
56 56
 		<div class="col-sm-1 hidden-xs">
57 57
 
58
-			<?php if ($pokemon->id+1 < $config->system->max_pokemon) { ?>
58
+			<?php if ($pokemon->id + 1 < $config->system->max_pokemon) { ?>
59 59
 
60
-			<p class="nav-links"><a href="pokemon/<?= $pokemon->id+1 ?>"><i class="fa fa-chevron-right"></i></a></p>
60
+			<p class="nav-links"><a href="pokemon/<?= $pokemon->id + 1 ?>"><i class="fa fa-chevron-right"></i></a></p>
61 61
 
62 62
 			<?php } ?>
63 63
 		</div>
@@ -129,10 +129,10 @@  discard block
 block discarded – undo
129 129
 			</tr>
130 130
 			<tr>
131 131
 				<td class="col-md-8 col-xs-8"><?php if (isset($pokemon->protected_gyms)) {
132
-					echo "<strong>" . $locales->POKEMON_GYM . $pokemon->name . "</strong> :";
132
+					echo "<strong>".$locales->POKEMON_GYM.$pokemon->name."</strong> :";
133 133
 } ?></td>
134 134
 				<td class="col-md-4 col-xs-4"><?php if (isset($pokemon->protected_gyms)) {
135
-					echo $pokemon->protected_gyms ;
135
+					echo $pokemon->protected_gyms;
136 136
 }?></td>
137 137
 			</tr>
138 138
 		</table>
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 			<tr>
144 144
 				<td class="col-md-8 col-xs-8"><strong><?= $locales->POKEMON_EVOLUTION ?> :</strong></td>
145 145
 				<td class="col-md-4 col-xs-4"><?php if (isset($pokemon->candies)) {
146
-					echo $pokemon->candies . " ". $pokemon->candy_name . " " . $locales->POKEMON_CANDIES ;
146
+					echo $pokemon->candies." ".$pokemon->candy_name." ".$locales->POKEMON_CANDIES;
147 147
 } else {
148 148
 	echo $locales->POKEMON_FINAL;
149 149
 } ?></td>
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
             <?php
321 321
                 $i = 0;
322 322
                 foreach ($top as $top100) {
323
-                    $i ++;
323
+                    $i++;
324 324
                     $move1 = $top100->move_1;
325 325
                     $move2 = $top100->move_2;
326 326
                     ?>
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
             <?php
360 360
                 $i = 0;
361 361
                 foreach ($toptrainer as $besttrainer) {
362
-                    $i ++;
362
+                    $i++;
363 363
                     $move1 = $besttrainer->move_1;
364 364
                     $move2 = $besttrainer->move_2;
365 365
                     ?>
Please login to merge, or discard this patch.
core/process/data.loader.php 2 patches
Spacing   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 // Include & load the variables
4 4
 // ############################
5 5
 
6
-$variables 	= SYS_PATH.'/core/json/variables.json';
7
-$config 	= json_decode(file_get_contents($variables));
6
+$variables = SYS_PATH.'/core/json/variables.json';
7
+$config = json_decode(file_get_contents($variables));
8 8
 
9 9
 if (!isset($config->system)) {
10 10
 	echo 'Error: Could not load core/json/variables.json.';
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 #################
32 32
 
33 33
 
34
-$mysqli 	= new mysqli(SYS_DB_HOST, SYS_DB_USER, SYS_DB_PSWD, SYS_DB_NAME, SYS_DB_PORT);
34
+$mysqli = new mysqli(SYS_DB_HOST, SYS_DB_USER, SYS_DB_PSWD, SYS_DB_NAME, SYS_DB_PORT);
35 35
 
36 36
 
37 37
 if ($mysqli->connect_error != '') {
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
 // ( for Brusselopole we use CRONTAB but as we're not sure that every had access to it we build this really simple false crontab system
75 75
 // => check filemtime, if > 24h launch an update. )
76 76
 
77
-$pokedex_rarity_filetime	= filemtime($pokedex_rarity_file);
78
-$now				= time();
79
-$diff				= $now - $pokedex_rarity_filetime;
77
+$pokedex_rarity_filetime = filemtime($pokedex_rarity_file);
78
+$now = time();
79
+$diff = $now - $pokedex_rarity_filetime;
80 80
 
81 81
 // Update each 24h
82
-$update_delay		= 86400;
82
+$update_delay = 86400;
83 83
 
84 84
 if ($diff > $update_delay) {
85 85
 	include_once(SYS_PATH.'/core/cron/pokedex.rarity.php');
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 			// Current Pokemon datas
110 110
 			// ---------------------
111 111
 
112
-			$pokemon_id 			= mysqli_real_escape_string($mysqli, $_GET['id']);
112
+			$pokemon_id = mysqli_real_escape_string($mysqli, $_GET['id']);
113 113
 
114 114
 			if (!is_object($pokemons->pokemon->$pokemon_id)) {
115 115
 				header('Location:/404');
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
 			$pokemon			= new stdClass();
121 121
 			$pokemon			= $pokemons->pokemon->$pokemon_id;
122
-			$pokemon->id			= $pokemon_id;
122
+			$pokemon->id = $pokemon_id;
123 123
 
124 124
 
125 125
 			// Some math
@@ -135,19 +135,19 @@  discard block
 block discarded – undo
135 135
 
136 136
 			// Total gym protected
137 137
 
138
-			$req 		= "SELECT count( DISTINCT(gym_id) ) as total FROM gym WHERE guard_pokemon_id = '".$pokemon_id."'  ";
139
-			$result 	= $mysqli->query($req);
140
-			$data 		= $result->fetch_object();
138
+			$req = "SELECT count( DISTINCT(gym_id) ) as total FROM gym WHERE guard_pokemon_id = '".$pokemon_id."'  ";
139
+			$result = $mysqli->query($req);
140
+			$data = $result->fetch_object();
141 141
 
142 142
 			$pokemon->protected_gyms = $data->total;
143 143
 
144 144
 			// Total spawn
145 145
 
146
-			$req 		= "SELECT COUNT(*) as total FROM pokemon WHERE pokemon_id = '".$pokemon_id."'";
147
-			$result 	= $mysqli->query($req);
148
-			$data 		= $result->fetch_object();
146
+			$req = "SELECT COUNT(*) as total FROM pokemon WHERE pokemon_id = '".$pokemon_id."'";
147
+			$result = $mysqli->query($req);
148
+			$data = $result->fetch_object();
149 149
 
150
-			$pokemon->total_spawn 	= $data->total;
150
+			$pokemon->total_spawn = $data->total;
151 151
 			// Spawn rate
152 152
 
153 153
 			if ($pokemon->total_spawn > 0) {
@@ -155,28 +155,28 @@  discard block
 block discarded – undo
155 155
 				$result = $mysqli->query($req);
156 156
 				$data = $result->fetch_object();
157 157
 				// Calc spawns_per_day for last week
158
-				$pokemon->spawns_per_day = round(($data->spawns_last_week/7), 2);
158
+				$pokemon->spawns_per_day = round(($data->spawns_last_week / 7), 2);
159 159
 			} else {
160 160
 				$pokemon->spawns_per_day = 0;
161 161
 			}
162 162
 
163 163
 			// Last seen
164 164
 
165
-			$req 		= "SELECT disappear_time, (CONVERT_TZ(disappear_time, '+00:00', '".$time_offset."')) as disappear_time_real, latitude, longitude
165
+			$req = "SELECT disappear_time, (CONVERT_TZ(disappear_time, '+00:00', '".$time_offset."')) as disappear_time_real, latitude, longitude
166 166
 			FROM pokemon
167 167
 			WHERE pokemon_id = '".$pokemon_id."'
168 168
 			ORDER BY disappear_time DESC
169 169
 			LIMIT 0,1";
170
-			$result 	= $mysqli->query($req);
171
-			$data 		= $result->fetch_object();
170
+			$result = $mysqli->query($req);
171
+			$data = $result->fetch_object();
172 172
 
173 173
 			if (isset($data)) {
174
-				$last_spawn 				= $data;
174
+				$last_spawn = $data;
175 175
 
176
-				$pokemon->last_seen			= strtotime($data->disappear_time_real);
177
-				$pokemon->last_position			= new stdClass();
178
-				$pokemon->last_position->latitude 	= $data->latitude;
179
-				$pokemon->last_position->longitude 	= $data->longitude;
176
+				$pokemon->last_seen = strtotime($data->disappear_time_real);
177
+				$pokemon->last_position = new stdClass();
178
+				$pokemon->last_position->latitude = $data->latitude;
179
+				$pokemon->last_position->longitude = $data->longitude;
180 180
 			}
181 181
 
182 182
 			// Related Pokemons
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 			
222 222
 			$result = $mysqli->query($req);
223 223
 			$top = array();
224
-			while($data = $result->fetch_object()) {
224
+			while ($data = $result->fetch_object()) {
225 225
 				$top[] = $data;
226 226
 			}
227 227
 			
@@ -244,17 +244,17 @@  discard block
 block discarded – undo
244 244
 			
245 245
 			$result = $mysqli->query($req);
246 246
 			$toptrainer = array();
247
-			while($data = $result->fetch_object()) {
247
+			while ($data = $result->fetch_object()) {
248 248
 				$toptrainer[] = $data;
249 249
 			}
250 250
 			
251
-			$moves_file	= SYS_PATH.'/core/json/moves.json';
251
+			$moves_file = SYS_PATH.'/core/json/moves.json';
252 252
 			          
253 253
 			$moves = json_decode(file_get_contents($moves_file));
254 254
 
255 255
 			$move = new stdClass();
256 256
 			foreach ($moves as $move_id => $move_name) {
257
-				if (isset($move_name)){
257
+				if (isset($move_name)) {
258 258
 					$move->$move_id = new stdClass();
259 259
 					$move->$move_id->name = $move_name->name;
260 260
 				}
@@ -271,23 +271,23 @@  discard block
 block discarded – undo
271 271
 
272 272
 
273 273
 			$max 		= $config->system->max_pokemon;
274
-			$pokedex 	= new stdClass();
274
+			$pokedex = new stdClass();
275 275
 
276 276
 			$req 		= "SELECT DISTINCT pokemon_id FROM pokemon";
277
-			$result 	= $mysqli->query($req);
277
+			$result = $mysqli->query($req);
278 278
 			$data_array = array();
279 279
 
280 280
 			while ($data = $result->fetch_object()) {
281 281
 				$data_array[$data->pokemon_id] = 1;
282 282
 			};
283 283
 
284
-			for ($i= 1; $i <= $max; $i++) {
285
-				$pokedex->$i			= new stdClass();
284
+			for ($i = 1; $i <= $max; $i++) {
285
+				$pokedex->$i = new stdClass();
286 286
 				$pokedex->$i->id 		= $i;
287
-				$pokedex->$i->permalink 	= 'pokemon/'.$i;
287
+				$pokedex->$i->permalink = 'pokemon/'.$i;
288 288
 				$pokedex->$i->img		= 'core/pokemons/'.$i.$config->system->pokeimg_suffix;
289
-				$pokedex->$i->name		= $pokemons->pokemon->$i->name;
290
-				$pokedex->$i->spawn 		= isset($data_array[$i])? $data_array[$i] : 0;
289
+				$pokedex->$i->name = $pokemons->pokemon->$i->name;
290
+				$pokedex->$i->spawn = isset($data_array[$i]) ? $data_array[$i] : 0;
291 291
 			}
292 292
 
293 293
 
@@ -298,17 +298,17 @@  discard block
 block discarded – undo
298 298
 		############
299 299
 
300 300
 		case 'pokestops':
301
-			$pokestop 	= new stdClass();
301
+			$pokestop = new stdClass();
302 302
 
303
-			$req 		= "SELECT COUNT(*) as total FROM pokestop";
304
-			$result 	= $mysqli->query($req);
305
-			$data 		= $result->fetch_object();
303
+			$req = "SELECT COUNT(*) as total FROM pokestop";
304
+			$result = $mysqli->query($req);
305
+			$data = $result->fetch_object();
306 306
 
307 307
 			$pokestop->total = $data->total;
308 308
 
309
-			$req 		= "SELECT COUNT(*) as total FROM pokestop WHERE lure_expiration >= UTC_TIMESTAMP()";
310
-			$result 	= $mysqli->query($req);
311
-			$data 		= $result->fetch_object();
309
+			$req = "SELECT COUNT(*) as total FROM pokestop WHERE lure_expiration >= UTC_TIMESTAMP()";
310
+			$result = $mysqli->query($req);
311
+			$data = $result->fetch_object();
312 312
 
313 313
 			$pokestop->lured = $data->total;
314 314
 
@@ -325,36 +325,36 @@  discard block
 block discarded – undo
325 325
 			// 3 Teams (teamm rocket is neutral)
326 326
 			// 1 Fight
327 327
 
328
-			$teams 				= new stdClass();
328
+			$teams = new stdClass();
329 329
 
330
-			$teams->mystic 			= new stdClass();
331
-			$teams->mystic->guardians 	= new stdClass();
332
-			$teams->mystic->id 		= 1;
330
+			$teams->mystic = new stdClass();
331
+			$teams->mystic->guardians = new stdClass();
332
+			$teams->mystic->id = 1;
333 333
 
334
-			$teams->valor 			= new stdClass();
335
-			$teams->valor->guardians 	= new stdClass();
336
-			$teams->valor->id 		= 2;
334
+			$teams->valor = new stdClass();
335
+			$teams->valor->guardians = new stdClass();
336
+			$teams->valor->id = 2;
337 337
 
338
-			$teams->instinct 		= new stdClass();
339
-			$teams->instinct->guardians 	= new stdClass();
340
-			$teams->instinct->id 		= 3;
338
+			$teams->instinct = new stdClass();
339
+			$teams->instinct->guardians = new stdClass();
340
+			$teams->instinct->id = 3;
341 341
 
342
-			$teams->rocket 			= new stdClass();
343
-			$teams->rocket->guardians 	= new stdClass();
344
-			$teams->rocket->id 		= 0;
342
+			$teams->rocket = new stdClass();
343
+			$teams->rocket->guardians = new stdClass();
344
+			$teams->rocket->id = 0;
345 345
 
346 346
 
347 347
 
348 348
 			foreach ($teams as $team_key => $team_values) {
349 349
 				// Team Guardians
350 350
 
351
-				$req 	= "SELECT COUNT(*) as total, guard_pokemon_id FROM gym WHERE team_id = '".$team_values->id."' GROUP BY guard_pokemon_id ORDER BY total DESC LIMIT 0,3 ";
351
+				$req = "SELECT COUNT(*) as total, guard_pokemon_id FROM gym WHERE team_id = '".$team_values->id."' GROUP BY guard_pokemon_id ORDER BY total DESC LIMIT 0,3 ";
352 352
 				$result = $mysqli->query($req);
353 353
 
354
-				$i=0;
354
+				$i = 0;
355 355
 
356 356
 				while ($data = $result->fetch_object()) {
357
-					$teams->$team_key->guardians->$i	= $data->guard_pokemon_id;
357
+					$teams->$team_key->guardians->$i = $data->guard_pokemon_id;
358 358
 
359 359
 					$i++;
360 360
 				}
@@ -366,8 +366,8 @@  discard block
 block discarded – undo
366 366
 				$result = $mysqli->query($req);
367 367
 				$data	= $result->fetch_object();
368 368
 
369
-				$teams->$team_key->gym_owned	= $data->total;
370
-				$teams->$team_key->average	= $data->average_points;
369
+				$teams->$team_key->gym_owned = $data->total;
370
+				$teams->$team_key->average = $data->average_points;
371 371
 			}
372 372
 
373 373
 
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
 		case 'dashboard':
381 381
 			// This case is only used for test purpose.
382 382
 
383
-			$stats_file	= SYS_PATH.'/core/json/gym.stats.json';
383
+			$stats_file = SYS_PATH.'/core/json/gym.stats.json';
384 384
 
385 385
 			if (!is_file($stats_file)) {
386 386
 				echo "Sorry, no Gym stats file was found. <br> Did you enable cron? ";
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 			}
389 389
 
390 390
 
391
-			$stats_file	= SYS_PATH.'/core/json/pokemon.stats.json';
391
+			$stats_file = SYS_PATH.'/core/json/pokemon.stats.json';
392 392
 
393 393
 			if (!is_file($stats_file)) {
394 394
 				echo "Sorry, no Pokémon stats file was found. <br> Did you enabled cron?";
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 			}
397 397
 
398 398
 
399
-			$stats_file	= SYS_PATH.'/core/json/pokestop.stats.json';
399
+			$stats_file = SYS_PATH.'/core/json/pokestop.stats.json';
400 400
 
401 401
 			if (!is_file($stats_file)) {
402 402
 				echo "Sorry, no Pokéstop stats file was found. <br> Did you enabled cron?";
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 			}
405 405
 
406 406
 			if ($config->system->captcha_support) {
407
-				$stats_file	= SYS_PATH.'/core/json/captcha.stats.json';
407
+				$stats_file = SYS_PATH.'/core/json/captcha.stats.json';
408 408
 
409 409
 				if (!is_file($stats_file)) {
410 410
 					echo "Sorry, no Captcha stats file were found  <br> Have you enable cron?";
@@ -424,9 +424,9 @@  discard block
 block discarded – undo
424 424
 	// Right now
425 425
 	// ---------
426 426
 
427
-	$req 		= "SELECT COUNT(*) as total FROM pokemon WHERE disappear_time >= UTC_TIMESTAMP()";
428
-	$result 	= $mysqli->query($req);
429
-	$data 		= $result->fetch_object();
427
+	$req = "SELECT COUNT(*) as total FROM pokemon WHERE disappear_time >= UTC_TIMESTAMP()";
428
+	$result = $mysqli->query($req);
429
+	$data = $result->fetch_object();
430 430
 
431 431
 
432 432
 	$home->pokemon_now = $data->total;
@@ -435,9 +435,9 @@  discard block
 block discarded – undo
435 435
 	// Lured stops
436 436
 	// -----------
437 437
 
438
-	$req 		= "SELECT COUNT(*) as total FROM pokestop WHERE lure_expiration >= UTC_TIMESTAMP()";
439
-	$result 	= $mysqli->query($req);
440
-	$data 		= $result->fetch_object();
438
+	$req = "SELECT COUNT(*) as total FROM pokestop WHERE lure_expiration >= UTC_TIMESTAMP()";
439
+	$result = $mysqli->query($req);
440
+	$data = $result->fetch_object();
441 441
 
442 442
 	$home->pokestop_lured = $data->total;
443 443
 
@@ -445,9 +445,9 @@  discard block
 block discarded – undo
445 445
 	// Gyms
446 446
 	// ----
447 447
 
448
-	$req 		= "SELECT COUNT(DISTINCT(gym_id)) as total FROM gym";
449
-	$result 	= $mysqli->query($req);
450
-	$data 		= $result->fetch_object();
448
+	$req = "SELECT COUNT(DISTINCT(gym_id)) as total FROM gym";
449
+	$result = $mysqli->query($req);
450
+	$data = $result->fetch_object();
451 451
 
452 452
 	$home->gyms = $data->total;
453 453
 
@@ -457,19 +457,19 @@  discard block
 block discarded – undo
457 457
 
458 458
 	if ($config->system->recents_filter) {
459 459
 		// get all mythic pokemon ids
460
-		$mythic_pokemons  = array();
460
+		$mythic_pokemons = array();
461 461
 		foreach ($pokemons->pokemon as $id => $pokemon) {
462 462
 			if ($pokemon->spawn_rate < $config->system->recents_filter_rarity && $pokemon->rating >= $config->system->recents_filter_rating) {
463 463
 				$mythic_pokemons[] = $id;
464 464
 			}
465 465
 		}
466 466
 		// get all mythic pokemon
467
-		$req 		= "SELECT DISTINCT pokemon_id, encounter_id, disappear_time, last_modified, (CONVERT_TZ(disappear_time, '+00:00', '".$time_offset."')) as disappear_time_real, latitude, longitude, individual_attack, individual_defense, individual_stamina FROM pokemon
467
+		$req = "SELECT DISTINCT pokemon_id, encounter_id, disappear_time, last_modified, (CONVERT_TZ(disappear_time, '+00:00', '".$time_offset."')) as disappear_time_real, latitude, longitude, individual_attack, individual_defense, individual_stamina FROM pokemon
468 468
 				   WHERE pokemon_id IN (".implode(",", $mythic_pokemons).")
469 469
 				   ORDER BY last_modified DESC LIMIT 0,12";
470 470
 	} else {
471 471
 		// get all pokemon
472
-		$req		= "SELECT DISTINCT pokemon_id, encounter_id, disappear_time, last_modified, (CONVERT_TZ(disappear_time, '+00:00', '".$time_offset."')) as disappear_time_real, latitude, longitude, individual_attack, individual_defense, individual_stamina FROM pokemon
472
+		$req = "SELECT DISTINCT pokemon_id, encounter_id, disappear_time, last_modified, (CONVERT_TZ(disappear_time, '+00:00', '".$time_offset."')) as disappear_time_real, latitude, longitude, individual_attack, individual_defense, individual_stamina FROM pokemon
473 473
 				   ORDER BY last_modified DESC LIMIT 0,12";
474 474
 	}
475 475
 	$result 	= $mysqli->query($req);
@@ -515,28 +515,28 @@  discard block
 block discarded – undo
515 515
 
516 516
 	$req = "SELECT count( DISTINCT(gym_id) ) as total FROM gym WHERE team_id = '1'  ";
517 517
 	$result = $mysqli->query($req);
518
-	$data 	= $result->fetch_object();
518
+	$data = $result->fetch_object();
519 519
 
520
-	$home->teams->mystic 	= $data->total;
520
+	$home->teams->mystic = $data->total;
521 521
 
522 522
 
523 523
 	$req = "SELECT count( DISTINCT(gym_id) ) as total FROM gym WHERE team_id = '2'  ";
524 524
 	$result = $mysqli->query($req);
525
-	$data 	= $result->fetch_object();
525
+	$data = $result->fetch_object();
526 526
 
527
-	$home->teams->valor 	= $data->total;
527
+	$home->teams->valor = $data->total;
528 528
 
529 529
 
530 530
 	$req = "SELECT count( DISTINCT(gym_id) ) as total FROM gym WHERE team_id = '3'  ";
531 531
 	$result = $mysqli->query($req);
532
-	$data 	= $result->fetch_object();
532
+	$data = $result->fetch_object();
533 533
 
534
-	$home->teams->instinct 	= $data->total;
534
+	$home->teams->instinct = $data->total;
535 535
 
536 536
 
537 537
 	$req = "SELECT count( DISTINCT(gym_id) ) as total FROM gym WHERE team_id = '0'  ";
538 538
 	$result = $mysqli->query($req);
539
-	$data 	= $result->fetch_object();
539
+	$data = $result->fetch_object();
540 540
 
541
-	$home->teams->rocket 	= $data->total;
541
+	$home->teams->rocket = $data->total;
542 542
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@
 block discarded – undo
254 254
 
255 255
 			$move = new stdClass();
256 256
 			foreach ($moves as $move_id => $move_name) {
257
-				if (isset($move_name)){
257
+				if (isset($move_name)) {
258 258
 					$move->$move_id = new stdClass();
259 259
 					$move->$move_id->name = $move_name->name;
260 260
 				}
Please login to merge, or discard this patch.