Passed
Pull Request — master (#192)
by PoUpA
02:32
created
core/js/dashboard.graph.js.php 1 patch
Braces   +8 added lines, -11 removed lines patch added patch discarded remove patch
@@ -63,36 +63,33 @@
 block discarded – undo
63 63
 		$total[]		= $data->pokemon_now;
64 64
 	}
65 65
 
66
-	if($data->timestamp > $yesterday){
66
+	if($data->timestamp > $yesterday) {
67 67
 
68 68
 		$labels[] = '"'.date('H:i', $data->timestamp ).'"';
69 69
 
70 70
 
71
-		if(!empty($data->rarity_spawn->{'Very common'})){
71
+		if(!empty($data->rarity_spawn->{'Very common'})) {
72 72
 			$veco[]		= $data->rarity_spawn->{'Very common'};
73
-		}
74
-		else {
73
+		} else {
75 74
 			$veco[]		= 0;
76 75
 		}
77 76
 
78 77
 
79
-		if(!empty($data->rarity_spawn->Common)){
78
+		if(!empty($data->rarity_spawn->Common)) {
80 79
 			$commo[]	= $data->rarity_spawn->Common;
81
-		}
82
-		else {
80
+		} else {
83 81
 			$commo[]	= 0;
84 82
 		}
85 83
 
86 84
 
87
-		if(!empty($data->rarity_spawn->Rare)){
85
+		if(!empty($data->rarity_spawn->Rare)) {
88 86
 			$rare[]		= $data->rarity_spawn->Rare;
89
-		}
90
-		else {
87
+		} else {
91 88
 			$rare[]		= 0;
92 89
 		}
93 90
 
94 91
 
95
-		if(!empty($data->rarity_spawn->Mythic)){
92
+		if(!empty($data->rarity_spawn->Mythic)) {
96 93
 			$myth[]		= $data->rarity_spawn->Mythic;
97 94
 		}
98 95
 	}
Please login to merge, or discard this patch.
pages/trainer.page.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 <script type="text/javascript">
98 98
 <?=
99 99
 $trainerName = "";
100
-if(isset($_GET['name'])&&$_GET['name']!=""){
100
+if(isset($_GET['name'])&&$_GET['name']!="") {
101 101
 	$trainerName = htmlentities($_GET['name']);
102 102
 }
103 103
 
Please login to merge, or discard this patch.
pages/home.page.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 				</a>
74 74
 				<?php
75 75
 				if ($config->system->recents_show_iv) {
76
-					if ($pokemon->iv->available) { 
76
+					if ($pokemon->iv->available) {
77 77
 						if ($config->system->iv_numbers) { ?>
78 78
 							<div class="progress" style="height: 15px; margin-bottom: 0">
79 79
 								<div title="Attack IV: <?= $pokemon->iv->attack ?>" class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="<?= $pokemon->iv->attack ?>" aria-valuemin="0" aria-valuemax="45" style="width: <?= (100/3)  ?>%; line-height: 16px";>
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 							</div>
102 102
 					<?php
103 103
 						}
104
-					} else { 
104
+					} else {
105 105
 						if ($config->system->iv_numbers) { ?>
106 106
 							<div class="progress" style="height: 15px; margin-bottom: 0">
107 107
 								<div title="Attack IV: not available" class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="<?= $pokemon->iv->attack ?>" aria-valuemin="0" aria-valuemax="45" style="width: <?= (100/3)  ?>%; line-height: 16px";>
Please login to merge, or discard this patch.
core/process/aru.php 1 patch
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
 }
44 44
 $mysqli->set_charset('utf8');
45 45
 $request = "";
46
-if (isset($_GET['type'])){
46
+if (isset($_GET['type'])) {
47 47
 $request 	= $_GET['type'];
48 48
 }
49 49
 $postRequest = "";
50
-if (isset($_POST['type'])){
50
+if (isset($_POST['type'])) {
51 51
 	$postRequest = $_POST['type'];
52 52
 	$request= "postRequest";
53 53
 }
@@ -531,8 +531,7 @@  discard block
 block discarded – undo
531 531
 								</div>
532 532
 							</div>
533 533
 						</div>';
534
-				}
535
-				else {
534
+				} else {
536 535
 					$gymData['infoWindow'] .= '
537 536
 					<div style="text-align: center; width: 50px; display: inline-block; margin-right: 3px">
538 537
 						<a href="pokemon/'.$data->pokemon_id.'">
@@ -755,7 +754,7 @@  discard block
 block discarded – undo
755 754
 
756 755
 	break;
757 756
 }
758
-if ($postRequest!=""){
757
+if ($postRequest!="") {
759 758
 	switch ($postRequest) {
760 759
 		case 'pokemon_live':
761 760
 			$json="";
Please login to merge, or discard this patch.