@@ -17,11 +17,11 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * Construct |
19 | 19 | * |
20 | - * @param League\Fractal\Manager $fractal |
|
21 | - * @param Ps2alerts\Api\Transformer\Search\OutfitSearchTransformer $outfitSearchTransformer |
|
22 | - * @param Ps2alerts\Api\Repository\Metrics\OutfitTotalRepository $outfitTotalRepo |
|
23 | - * @param Ps2alerts\Api\Transformer\Search\PlayerSearchTransformer $playerSearchTransformer |
|
24 | - * @param Ps2alerts\Api\Repository\Metrics\PlayerTotalRepository $playerTotalRepo |
|
20 | + * @param Manager $fractal |
|
21 | + * @param OutfitSearchTransformer $outfitSearchTransformer |
|
22 | + * @param OutfitTotalRepository $outfitTotalRepo |
|
23 | + * @param PlayerSearchTransformer $playerSearchTransformer |
|
24 | + * @param PlayerTotalRepository $playerTotalRepo |
|
25 | 25 | */ |
26 | 26 | public function __construct( |
27 | 27 | Manager $fractal, |
@@ -40,11 +40,11 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * Endpoint to return potential players based on search term |
42 | 42 | * |
43 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
44 | - * @param Psr\Http\Message\ResponseInterface $response |
|
43 | + * @param ServerRequestInterface $request |
|
44 | + * @param ResponseInterface $response |
|
45 | 45 | * @param array $args |
46 | 46 | * |
47 | - * @return \League\Fractal\TransformerAbstract |
|
47 | + * @return ResponseInterface|null |
|
48 | 48 | */ |
49 | 49 | public function getPlayersByTerm(ServerRequestInterface $request, ResponseInterface $response, array $args) |
50 | 50 | { |
@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * Endpoint to return potential players based on search term |
69 | 69 | * |
70 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
71 | - * @param Psr\Http\Message\ResponseInterface $response |
|
70 | + * @param ServerRequestInterface $request |
|
71 | + * @param ResponseInterface $response |
|
72 | 72 | * @param array $args |
73 | 73 | * |
74 | - * @return \League\Fractal\TransformerAbstract |
|
74 | + * @return ResponseInterface|null |
|
75 | 75 | */ |
76 | 76 | public function getOutfitsByTerm(ServerRequestInterface $request, ResponseInterface $response, array $args) |
77 | 77 | { |
@@ -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 | { |
@@ -122,8 +122,8 @@ |
||
122 | 122 | * Execution of routine |
123 | 123 | * |
124 | 124 | * @param array $alert |
125 | - * @param array $tables |
|
126 | - * @param Symfony\Component\Console\Output\OutputInterface $output |
|
125 | + * @param string[] $tables |
|
126 | + * @param OutputInterface $output |
|
127 | 127 | * |
128 | 128 | * @return void |
129 | 129 | */ |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * Processes players for alert |
117 | 117 | * @param string $id Alert ID |
118 | - * @return void |
|
118 | + * @return integer |
|
119 | 119 | */ |
120 | 120 | protected function processPlayers($id) |
121 | 121 | { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | /** |
150 | 150 | * Processes outfits for alert |
151 | 151 | * @param string $id Alert ID |
152 | - * @return void |
|
152 | + * @return integer |
|
153 | 153 | */ |
154 | 154 | protected function processOutfits($id) |
155 | 155 | { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | /** |
182 | 182 | * Processes XPs for alert |
183 | 183 | * @param string $id Alert ID |
184 | - * @return void |
|
184 | + * @return integer |
|
185 | 185 | */ |
186 | 186 | protected function processXP($id) |
187 | 187 | { |
@@ -208,11 +208,11 @@ discard block |
||
208 | 208 | /** |
209 | 209 | * Executes the process based on inputs |
210 | 210 | * @param string $id Alert ID |
211 | - * @param array $cols Columns to look for |
|
211 | + * @param string[] $cols Columns to look for |
|
212 | 212 | * @param string $table Table to look for |
213 | 213 | * @param string $totalsTable Table total to update if applicable |
214 | 214 | * @param string $filter Column to filter on |
215 | - * @param array $fields Fields to summarize |
|
215 | + * @param string[] $fields Fields to summarize |
|
216 | 216 | * @param array $groupBy Fields to group by |
217 | 217 | * @return int |
218 | 218 | */ |
@@ -270,6 +270,9 @@ discard block |
||
270 | 270 | return $count; |
271 | 271 | } |
272 | 272 | |
273 | + /** |
|
274 | + * @param string $id |
|
275 | + */ |
|
273 | 276 | protected function deleteAllFromTables(array $tables, $id, OutputInterface $output) |
274 | 277 | { |
275 | 278 | foreach ($tables as $table) { |
@@ -288,6 +291,9 @@ discard block |
||
288 | 291 | } |
289 | 292 | } |
290 | 293 | |
294 | + /** |
|
295 | + * @param string $id |
|
296 | + */ |
|
291 | 297 | protected function deleteAlert($id) |
292 | 298 | { |
293 | 299 | $delete = $this->auraFactory->newDelete(); |