Passed
Pull Request — v3 (#645)
by
unknown
30:38
created
src/GameQ/Filters/Normalize.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,19 +61,19 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 [];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.