@@ -63,36 +63,33 @@ |
||
| 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 | } |
@@ -43,11 +43,11 @@ discard block |
||
| 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 | } |
@@ -705,7 +705,7 @@ discard block |
||
| 705 | 705 | |
| 706 | 706 | break; |
| 707 | 707 | } |
| 708 | -if ($postRequest!=""){ |
|
| 708 | +if ($postRequest!="") { |
|
| 709 | 709 | switch ($postRequest) { |
| 710 | 710 | case 'pokemon_live': |
| 711 | 711 | $json=""; |
@@ -97,7 +97,7 @@ |
||
| 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 | |