@@ -61,19 +61,19 @@ discard block |
||
61 | 61 | $result = array_merge($result, $this->check('general', $result)); |
62 | 62 | |
63 | 63 | // Check FiveM Player List |
64 | - if ($result['gq_protocol'] == "gta5m") { |
|
65 | - $result = $this->getFiveMPlayerList($result, sprintf('%s:%s', (isset($result['gq_address'])) ? $result['gq_address'] : $server->ip(), $result['gq_port_client'])); |
|
66 | - }else{ |
|
64 | + if ($result['gq_protocol'] == "gta5m") { |
|
65 | + $result = $this->getFiveMPlayerList($result, sprintf('%s:%s', (isset($result['gq_address'])) ? $result['gq_address'] : $server->ip(), $result['gq_port_client'])); |
|
66 | + }else{ |
|
67 | 67 | // Do player information |
68 | 68 | if (isset($result['players']) && count($result['players']) > 0) { |
69 | 69 | // Iterate |
70 | 70 | foreach ($result['players'] as $key => $player) { |
71 | 71 | $result['players'][$key] = array_merge($player, $this->check('player', $player)); |
72 | - } |
|
72 | + } |
|
73 | 73 | } else { |
74 | 74 | $result['players'] = []; |
75 | 75 | } |
76 | - } |
|
76 | + } |
|
77 | 77 | |
78 | 78 | // Do team information |
79 | 79 | if (isset($result['teams']) && count($result['teams']) > 0) { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | foreach ($data as $player) { |
109 | 109 | $players[] = $player->name; |
110 | 110 | } |
111 | - $result['players'] = $players; |
|
111 | + $result['players'] = $players; |
|
112 | 112 | return $result; |
113 | 113 | } |
114 | 114 | return []; |
@@ -63,7 +63,7 @@ |
||
63 | 63 | // Check FiveM Player List |
64 | 64 | if ($result['gq_protocol'] == "gta5m") { |
65 | 65 | $result = $this->getFiveMPlayerList($result, sprintf('%s:%s', (isset($result['gq_address'])) ? $result['gq_address'] : $server->ip(), $result['gq_port_client'])); |
66 | - }else{ |
|
66 | + } else { |
|
67 | 67 | // Do player information |
68 | 68 | if (isset($result['players']) && count($result['players']) > 0) { |
69 | 69 | // Iterate |
@@ -63,7 +63,7 @@ |
||
63 | 63 | // Check FiveM Player List |
64 | 64 | if ($result['gq_protocol'] == "gta5m") { |
65 | 65 | $result = $this->getFiveMPlayerList($result, sprintf('%s:%s', (isset($result['gq_address'])) ? $result['gq_address'] : $server->ip(), $result['gq_port_client'])); |
66 | - }else{ |
|
66 | + } else{ |
|
67 | 67 | // Do player information |
68 | 68 | if (isset($result['players']) && count($result['players']) > 0) { |
69 | 69 | // Iterate |