@@ -15,9 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * Construct |
17 | 17 | * |
18 | - * @param Ps2alerts\Api\Repository\AlertRepository $repository |
|
19 | - * @param Ps2alerts\Api\Transformer\AlertTransformer $transformer |
|
20 | - * @param League\Fractal\Manager $fractal |
|
18 | + * @param Manager $fractal |
|
21 | 19 | */ |
22 | 20 | public function __construct( |
23 | 21 | Manager $fractal |
@@ -57,7 +57,6 @@ |
||
57 | 57 | /** |
58 | 58 | * The tranform method required by Fractal to parse the data and return proper typing and fields. |
59 | 59 | * |
60 | - * @param array $data Data to transform |
|
61 | 60 | * |
62 | 61 | * @return array |
63 | 62 | */ |
@@ -219,6 +219,9 @@ |
||
219 | 219 | return $players; |
220 | 220 | } |
221 | 221 | |
222 | + /** |
|
223 | + * @param integer $offset |
|
224 | + */ |
|
222 | 225 | public function getOutfitMembers($data, $offset) |
223 | 226 | { |
224 | 227 | $client = $this->getHttpClientDriver(); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @param array $data |
74 | 74 | * |
75 | - * @return \League\Fractal\Resource\Collection |
|
75 | + * @return \League\Fractal\Resource\Item |
|
76 | 76 | */ |
77 | 77 | public function includeCensus($data) |
78 | 78 | { |
@@ -144,9 +144,8 @@ discard block |
||
144 | 144 | /** |
145 | 145 | * Gets Metrics for a player |
146 | 146 | * |
147 | - * @param array $player |
|
148 | 147 | * |
149 | - * @return array |
|
148 | + * @return \League\Fractal\Resource\Item |
|
150 | 149 | */ |
151 | 150 | public function includeMetrics($data) |
152 | 151 | { |
@@ -179,7 +178,7 @@ discard block |
||
179 | 178 | * |
180 | 179 | * @param array $data |
181 | 180 | * |
182 | - * @return \League\Fractal\Resource\Collection |
|
181 | + * @return \League\Fractal\Resource\Item |
|
183 | 182 | */ |
184 | 183 | public function includeOutfit($data) |
185 | 184 | { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $key = $this->returnKeyType($keyType); |
185 | 185 | |
186 | 186 | $query->cols(['*']) |
187 | - ->where("{$key} = ?", $id); |
|
187 | + ->where("{$key} = ?", $id); |
|
188 | 188 | |
189 | 189 | return $this->fireStatementAndReturn($query, true, $object, $archive); |
190 | 190 | } |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | $key = $this->returnKeyType($keyType); |
222 | 222 | |
223 | 223 | $query->cols(['*']) |
224 | - ->where("{$key} = ?", $id); |
|
224 | + ->where("{$key} = ?", $id); |
|
225 | 225 | |
226 | 226 | return $this->fireStatementAndReturn($query, false, false, $archive); |
227 | 227 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | * @param string $type Type of query to use, such as Select, Update etc. |
73 | 73 | * @param bool $newOnly Whether we're getting a new query or using a raw one |
74 | 74 | * |
75 | - * @return \Aura\SqlQuery\QueryInterface |
|
75 | + * @return AbstractQuery |
|
76 | 76 | */ |
77 | 77 | public function newQuery($type = 'single', $newOnly = false) |
78 | 78 | { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | if ($redis->exists($key)) { |
56 | 56 | $data = json_decode($redis->get($key)); |
57 | 57 | |
58 | - // Ignore if already flagged as being updated |
|
58 | + // Ignore if already flagged as being updated |
|
59 | 59 | if ($data->beingUpdated == 0) { |
60 | 60 | $data->forceUpdate = 1; |
61 | 61 | $redis->set($key, json_encode($data)); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | /** |
12 | 12 | * Construct |
13 | 13 | * |
14 | - */ |
|
14 | + */ |
|
15 | 15 | public function __construct() |
16 | 16 | { |
17 | 17 |
@@ -89,7 +89,7 @@ |
||
89 | 89 | $query->cols(['*']); |
90 | 90 | $query->from('ws_players_total'); |
91 | 91 | if ($server != 0) { |
92 | - $query->where("playerServer = ?", $server); |
|
92 | + $query->where("playerServer = ?", $server); |
|
93 | 93 | } |
94 | 94 | $query->orderBy([$metric.' DESC']); |
95 | 95 | $query->limit($limit); |
@@ -127,7 +127,7 @@ |
||
127 | 127 | /** |
128 | 128 | * Checks formatting of dates input and then adds them to query |
129 | 129 | * |
130 | - * @param mixed $dates |
|
130 | + * @param string $dates |
|
131 | 131 | * @param AbstractQuery $query |
132 | 132 | * @param boolean $raw Determines if query is being used in raw mode |
133 | 133 | * |