@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | if (isset($result['players']) && count($result['players']) > 0) { |
65 | 65 | // Iterate |
66 | 66 | foreach ($result['players'] as $key => $player) { |
67 | - $result['players'][ $key ] = array_merge($player, $this->check('player', $player)); |
|
67 | + $result['players'][$key] = array_merge($player, $this->check('player', $player)); |
|
68 | 68 | } |
69 | 69 | } else { |
70 | 70 | $result['players'] = []; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | if (isset($result['teams']) && count($result['teams']) > 0) { |
75 | 75 | // Iterate |
76 | 76 | foreach ($result['teams'] as $key => $team) { |
77 | - $result['teams'][ $key ] = array_merge($team, $this->check('team', $team)); |
|
77 | + $result['teams'][$key] = array_merge($team, $this->check('team', $team)); |
|
78 | 78 | } |
79 | 79 | } else { |
80 | 80 | $result['teams'] = []; |
@@ -104,8 +104,8 @@ discard block |
||
104 | 104 | // Normalized return array |
105 | 105 | $normalized = []; |
106 | 106 | |
107 | - if (isset($this->normalize[ $section ]) && !empty($this->normalize[ $section ])) { |
|
108 | - foreach ($this->normalize[ $section ] as $property => $raw) { |
|
107 | + if (isset($this->normalize[$section]) && !empty($this->normalize[$section])) { |
|
108 | + foreach ($this->normalize[$section] as $property => $raw) { |
|
109 | 109 | // Default the value for the new key as null |
110 | 110 | $value = null; |
111 | 111 | |
@@ -113,18 +113,18 @@ discard block |
||
113 | 113 | // Iterate over the raw property we want to use |
114 | 114 | foreach ($raw as $check) { |
115 | 115 | if (array_key_exists($check, $data)) { |
116 | - $value = $data[ $check ]; |
|
116 | + $value = $data[$check]; |
|
117 | 117 | break; |
118 | 118 | } |
119 | 119 | } |
120 | 120 | } else { |
121 | 121 | // String |
122 | 122 | if (array_key_exists($raw, $data)) { |
123 | - $value = $data[ $raw ]; |
|
123 | + $value = $data[$raw]; |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
127 | - $normalized[ 'gq_' . $property ] = $value; |
|
127 | + $normalized['gq_' . $property] = $value; |
|
128 | 128 | } |
129 | 129 | } |
130 | 130 |