@@ -184,6 +184,9 @@ discard block |
||
184 | 184 | } |
185 | 185 | } |
186 | 186 | |
187 | + /** |
|
188 | + * @param string $metric |
|
189 | + */ |
|
187 | 190 | public function markAsBeingUpdated($metric, $server) |
188 | 191 | { |
189 | 192 | $key = "ps2alerts:api:leaderboards:status:{$server}"; |
@@ -205,6 +208,9 @@ discard block |
||
205 | 208 | $this->redis->set($key, json_encode($data)); |
206 | 209 | } |
207 | 210 | |
211 | + /** |
|
212 | + * @param string $metric |
|
213 | + */ |
|
208 | 214 | public function markMetricAsComplete($metric, $server) |
209 | 215 | { |
210 | 216 | $key = "ps2alerts:api:leaderboards:status:{$server}"; |
@@ -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); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * Retrieves combat totals on a global and per-server basis |
25 | 25 | * @param ServerRequestInterface $request |
26 | 26 | * @param ResponseInterface $response |
27 | - * @return array |
|
27 | + * @return ResponseInterface |
|
28 | 28 | */ |
29 | 29 | public function getCombatTotals(ServerRequestInterface $request, ResponseInterface $response) |
30 | 30 | { |
@@ -250,6 +250,9 @@ discard block |
||
250 | 250 | return $this->respondWithArray($results); |
251 | 251 | } |
252 | 252 | |
253 | + /** |
|
254 | + * @param integer $classID |
|
255 | + */ |
|
253 | 256 | private function findClassGrouping($classID) |
254 | 257 | { |
255 | 258 | $classGroups = $this->getConfig()['classesGroups']; |
@@ -265,6 +268,9 @@ discard block |
||
265 | 268 | return false; |
266 | 269 | } |
267 | 270 | |
271 | + /** |
|
272 | + * @param integer $classID |
|
273 | + */ |
|
268 | 274 | private function findClassFaction($classID) |
269 | 275 | { |
270 | 276 | $classesFactions = $this->getConfig()['classesFactions']; |
@@ -2,11 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Ps2alerts\Api\Controller\Endpoint\Alerts; |
4 | 4 | |
5 | -use League\Fractal\Manager; |
|
6 | 5 | use Ps2alerts\Api\Controller\Endpoint\Alerts\AlertEndpointController; |
7 | 6 | use Ps2alerts\Api\Exception\InvalidArgumentException; |
8 | -use Ps2alerts\Api\Repository\Metrics\CombatRepository; |
|
9 | -use Ps2alerts\Api\Repository\Metrics\ClassRepository; |
|
10 | 7 | use Psr\Http\Message\ServerRequestInterface; |
11 | 8 | use Psr\Http\Message\ResponseInterface; |
12 | 9 |
@@ -49,23 +49,23 @@ discard block |
||
49 | 49 | $data = $this->checkRedis('api', 'combatTotals', "{$server}-data"); |
50 | 50 | $dataArchive = $this->checkRedis('api', 'combatTotals', "{$server}-dataArchive"); |
51 | 51 | |
52 | - if (! $data || ! $dataArchive) { |
|
52 | + if (!$data || !$dataArchive) { |
|
53 | 53 | $sums = []; |
54 | 54 | foreach ($metrics as $metric) { |
55 | 55 | foreach ($factions as $faction) { |
56 | - $dbMetric = $metric . strtoupper($faction); // e.g. killsVS |
|
57 | - $dataMetric = $metric . strtoupper($faction); // e.g. killsVS |
|
56 | + $dbMetric = $metric.strtoupper($faction); // e.g. killsVS |
|
57 | + $dataMetric = $metric.strtoupper($faction); // e.g. killsVS |
|
58 | 58 | |
59 | 59 | // Handle teamkills inconsistency |
60 | 60 | if ($metric === 'teamkills') { |
61 | - $dbMetric = 'teamKills' . strtoupper($faction); |
|
61 | + $dbMetric = 'teamKills'.strtoupper($faction); |
|
62 | 62 | } |
63 | 63 | $sums[] = "SUM(factions.{$dbMetric}) AS $dataMetric"; |
64 | 64 | } |
65 | 65 | |
66 | 66 | // Totals |
67 | - $dbMetric = 'total' . ucfirst($metric); // e.g. killsVS |
|
68 | - $dataMetric = 'total' . ucfirst($metric); // e.g. killsVS |
|
67 | + $dbMetric = 'total'.ucfirst($metric); // e.g. killsVS |
|
68 | + $dataMetric = 'total'.ucfirst($metric); // e.g. killsVS |
|
69 | 69 | |
70 | 70 | // Handle teamkills inconsistency |
71 | 71 | if ($metric === 'teamkills') { |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | // Merge the two arrays together |
101 | 101 | foreach ($metrics as $metric) { |
102 | 102 | // Tot up totals |
103 | - $dbMetric = 'total' . ucfirst($metric); |
|
103 | + $dbMetric = 'total'.ucfirst($metric); |
|
104 | 104 | $mergedArray['totals'][$metric] = (int) $data[$dbMetric] + (int) $dataArchive[$dbMetric]; |
105 | 105 | $results['all']['totals'][$metric] += $mergedArray['totals'][$metric]; |
106 | 106 | |
107 | 107 | foreach ($factions as $faction) { |
108 | - $dbMetric = $metric . strtoupper($faction); |
|
108 | + $dbMetric = $metric.strtoupper($faction); |
|
109 | 109 | $mergedArray[$metric][$faction] = (int) $data[$dbMetric] + (int) $dataArchive[$dbMetric]; |
110 | 110 | $results['all'][$metric][$faction] += $mergedArray[$metric][$faction]; |
111 | 111 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $dataArchive = $this->checkRedis('api', 'classCombat', "{$server}-dataArchive", 'object'); |
149 | 149 | |
150 | 150 | // If data needs a pull |
151 | - if (! $data || ! $dataArchive) { |
|
151 | + if (!$data || !$dataArchive) { |
|
152 | 152 | $query = $this->combatRepository->newQuery('single', true); |
153 | 153 | $query->cols([ |
154 | 154 | 'classID', |
@@ -181,8 +181,8 @@ discard block |
||
181 | 181 | // Typecase into ints and increase totals |
182 | 182 | $metrics = ['kills', 'deaths', 'teamkills', 'suicides']; |
183 | 183 | foreach ($data as $row) { |
184 | - $row->classID = (int) $row->classID; |
|
185 | - $row->server = (int) $row->server; |
|
184 | + $row->classID = (int) $row->classID; |
|
185 | + $row->server = (int) $row->server; |
|
186 | 186 | $classGroup = $this->findClassGrouping($row->classID); |
187 | 187 | $faction = $this->findClassFaction($row->classID); |
188 | 188 | |
@@ -201,8 +201,8 @@ discard block |
||
201 | 201 | } |
202 | 202 | |
203 | 203 | foreach ($dataArchive as $row) { |
204 | - $row->classID = (int) $row->classID; |
|
205 | - $row->server = (int) $row->server; |
|
204 | + $row->classID = (int) $row->classID; |
|
205 | + $row->server = (int) $row->server; |
|
206 | 206 | |
207 | 207 | foreach ($metrics as $metric) { |
208 | 208 | $row->$metric = (int) $row->$metric; |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * Construct |
18 | 18 | * |
19 | - * @param Ps2alerts\Api\Repository\AlertRepository $repository |
|
20 | - * @param Ps2alerts\Api\Transformer\AlertTransformer $transformer |
|
21 | - * @param League\Fractal\Manager $fractal |
|
19 | + * @param AlertRepository $repository |
|
20 | + * @param AlertTransformer $transformer |
|
21 | + * @param Manager $fractal |
|
22 | 22 | */ |
23 | 23 | public function __construct( |
24 | 24 | AlertRepository $repository, |
@@ -33,10 +33,10 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * Returns the victories of each faction and the totals |
35 | 35 | * |
36 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
37 | - * @param Psr\Http\Message\ResponseInterface $response |
|
36 | + * @param ServerRequestInterface $request |
|
37 | + * @param ResponseInterface $response |
|
38 | 38 | * |
39 | - * @return array |
|
39 | + * @return ResponseInterface |
|
40 | 40 | */ |
41 | 41 | public function getVictories(ServerRequestInterface $request, ResponseInterface $response) |
42 | 42 | { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @param \Psr\Http\Message\ServerRequestInterface $request |
50 | 50 | * @param \Psr\Http\Message\ResponseInterface $response |
51 | 51 | * |
52 | - * @return array |
|
52 | + * @return ResponseInterface |
|
53 | 53 | */ |
54 | 54 | public function getDominations(ServerRequestInterface $request, ResponseInterface $response) |
55 | 55 | { |
@@ -59,8 +59,6 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Gets the required count data and returns |
61 | 61 | * |
62 | - * @param \Psr\Http\Message\ServerRequestInterface $request |
|
63 | - * @param \Psr\Http\Message\ResponseInterface $response |
|
64 | 62 | * @param string $mode The type of data we're getting (victory / domination) |
65 | 63 | * |
66 | 64 | * @return \Psr\Http\Message\ResponseInterface |
@@ -209,11 +209,11 @@ |
||
209 | 209 | $factionAbv = strtoupper($faction); |
210 | 210 | |
211 | 211 | $sql .= "SUM(CASE WHEN `ResultWinner` = '{$factionAbv}' "; |
212 | - if (! empty($server)) { |
|
212 | + if (!empty($server)) { |
|
213 | 213 | $sql .= "AND `ResultServer` IN ({$server}) "; |
214 | 214 | } |
215 | 215 | |
216 | - if (! empty($zones)) { |
|
216 | + if (!empty($zones)) { |
|
217 | 217 | $sql .= "AND `ResultAlertCont` IN ({$zones}) "; |
218 | 218 | } |
219 | 219 |
@@ -15,9 +15,9 @@ discard block |
||
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 AlertRepository $repository |
|
19 | + * @param AlertTransformer $transformer |
|
20 | + * @param Manager $fractal |
|
21 | 21 | */ |
22 | 22 | public function __construct( |
23 | 23 | AlertRepository $repository, |
@@ -32,11 +32,11 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * Returns a single alert's information |
34 | 34 | * |
35 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
36 | - * @param Psr\Http\Message\ResponseInterface $response |
|
35 | + * @param ServerRequestInterface $request |
|
36 | + * @param ResponseInterface $response |
|
37 | 37 | * @param array $args |
38 | 38 | * |
39 | - * @return \League\Fractal\TransformerAbstract |
|
39 | + * @return ResponseInterface |
|
40 | 40 | */ |
41 | 41 | public function getSingle(ServerRequestInterface $request, ResponseInterface $response, array $args) |
42 | 42 | { |
@@ -56,10 +56,10 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * Returns all currently running alerts |
58 | 58 | * |
59 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
60 | - * @param Psr\Http\Message\ResponseInterface $response |
|
59 | + * @param ServerRequestInterface $request |
|
60 | + * @param ResponseInterface $response |
|
61 | 61 | * |
62 | - * @return \League\Fractal\TransformerAbstract |
|
62 | + * @return ResponseInterface |
|
63 | 63 | */ |
64 | 64 | public function getActives(ServerRequestInterface $request, ResponseInterface $response) |
65 | 65 | { |
@@ -81,10 +81,10 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Returns all alerts in historial order |
83 | 83 | * |
84 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
85 | - * @param Psr\Http\Message\ResponseInterface $response |
|
84 | + * @param ServerRequestInterface $request |
|
85 | + * @param ResponseInterface $response |
|
86 | 86 | * |
87 | - * @return \League\Fractal\TransformerAbstract |
|
87 | + * @return ResponseInterface |
|
88 | 88 | */ |
89 | 89 | public function getHistoryByDate(ServerRequestInterface $request, ResponseInterface $response) |
90 | 90 | { |
@@ -153,10 +153,10 @@ discard block |
||
153 | 153 | /** |
154 | 154 | * Returns all alerts by latest |
155 | 155 | * |
156 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
157 | - * @param Psr\Http\Message\ResponseInterface $response |
|
156 | + * @param ServerRequestInterface $request |
|
157 | + * @param ResponseInterface $response |
|
158 | 158 | * |
159 | - * @return \League\Fractal\TransformerAbstract |
|
159 | + * @return ResponseInterface |
|
160 | 160 | */ |
161 | 161 | public function getLatest(ServerRequestInterface $request, ResponseInterface $response) |
162 | 162 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use League\Fractal\Manager; |
6 | 6 | use Ps2alerts\Api\Controller\Endpoint\AbstractEndpointController; |
7 | 7 | use Ps2alerts\Api\Repository\AlertRepository; |
8 | -use Ps2alerts\Api\Transformer\AlertTotalTransformer; |
|
9 | 8 | use Ps2alerts\Api\Transformer\AlertTransformer; |
10 | 9 | use Psr\Http\Message\ServerRequestInterface; |
11 | 10 | use Psr\Http\Message\ResponseInterface; |
@@ -103,11 +103,11 @@ discard block |
||
103 | 103 | $limit = (int) $_GET['limit']; |
104 | 104 | |
105 | 105 | // Set defaults if not supplied |
106 | - if (empty($offset) || ! is_numeric($offset)) { |
|
106 | + if (empty($offset) || !is_numeric($offset)) { |
|
107 | 107 | $offset = 0; |
108 | 108 | } |
109 | 109 | |
110 | - if (empty($limit) || ! is_numeric($limit)) { |
|
110 | + if (empty($limit) || !is_numeric($limit)) { |
|
111 | 111 | $limit = 50; |
112 | 112 | } |
113 | 113 | |
@@ -173,11 +173,11 @@ discard block |
||
173 | 173 | $limit = (int) $_GET['limit']; |
174 | 174 | |
175 | 175 | // Set defaults if not supplied |
176 | - if (empty($offset) || ! is_numeric($offset)) { |
|
176 | + if (empty($offset) || !is_numeric($offset)) { |
|
177 | 177 | $offset = 0; |
178 | 178 | } |
179 | 179 | |
180 | - if (empty($limit) || ! is_numeric($limit)) { |
|
180 | + if (empty($limit) || !is_numeric($limit)) { |
|
181 | 181 | $limit = 50; |
182 | 182 | } |
183 | 183 |
@@ -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 |
@@ -5,10 +5,7 @@ |
||
5 | 5 | use League\Fractal\Manager; |
6 | 6 | use Ps2alerts\Api\Controller\Endpoint\AbstractEndpointController; |
7 | 7 | use Ps2alerts\Api\Repository\AlertRepository; |
8 | -use Ps2alerts\Api\Transformer\AlertTotalTransformer; |
|
9 | 8 | use Ps2alerts\Api\Transformer\AlertTransformer; |
10 | -use Psr\Http\Message\ServerRequestInterface; |
|
11 | -use Psr\Http\Message\ResponseInterface; |
|
12 | 9 | |
13 | 10 | class ContextualDataEndpointController extends AbstractEndpointController |
14 | 11 | { |
@@ -22,6 +22,6 @@ |
||
22 | 22 | public function __construct( |
23 | 23 | Manager $fractal |
24 | 24 | ) { |
25 | - $this->fractal = $fractal; |
|
25 | + $this->fractal = $fractal; |
|
26 | 26 | } |
27 | 27 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * Construct |
27 | 27 | * |
28 | - * @param League\Fractal\Manager $fractal |
|
28 | + * @param Manager $fractal |
|
29 | 29 | */ |
30 | 30 | public function __construct( |
31 | 31 | Manager $fractal, |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * Gets supplemental data |
40 | 40 | * |
41 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
42 | - * @param Psr\Http\Message\ResponseInterface $response |
|
41 | + * @param ServerRequestInterface $request |
|
42 | + * @param ResponseInterface $response |
|
43 | 43 | * @param array $args |
44 | 44 | * |
45 | - * @return \League\Fractal\TransformerAbstract |
|
45 | + * @return ResponseInterface |
|
46 | 46 | */ |
47 | 47 | public function getSupplementalData(ServerRequestInterface $request, ResponseInterface $response, array $args) |
48 | 48 | { |
@@ -57,11 +57,11 @@ discard block |
||
57 | 57 | /** |
58 | 58 | * Gets a player's info, either from redis or db cache |
59 | 59 | * |
60 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
61 | - * @param Psr\Http\Message\ResponseInterface $response |
|
60 | + * @param ServerRequestInterface $request |
|
61 | + * @param ResponseInterface $response |
|
62 | 62 | * @param array $args |
63 | 63 | * |
64 | - * @return \League\Fractal\TransformerAbstract |
|
64 | + * @return ResponseInterface |
|
65 | 65 | */ |
66 | 66 | public function character(ServerRequestInterface $request, ResponseInterface $response, array $args) |
67 | 67 | { |
@@ -102,11 +102,11 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * Gets an outfits's info, either from redis or db cache |
104 | 104 | * |
105 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
106 | - * @param Psr\Http\Message\ResponseInterface $response |
|
105 | + * @param ServerRequestInterface $request |
|
106 | + * @param ResponseInterface $response |
|
107 | 107 | * @param array $args |
108 | 108 | * |
109 | - * @return \League\Fractal\TransformerAbstract |
|
109 | + * @return ResponseInterface |
|
110 | 110 | */ |
111 | 111 | public function outfit(ServerRequestInterface $request, ResponseInterface $response, array $args) |
112 | 112 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | // Now return the character the outfit injected |
82 | - if (! empty($character['data']['outfit'])) { |
|
82 | + if (!empty($character['data']['outfit'])) { |
|
83 | 83 | try { |
84 | 84 | $outfit = $this->getOutfit($character['data']['outfit']); |
85 | 85 | } catch (CensusErrorException $e) { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | // First, check if we have the character in Redis |
139 | 139 | $redisCheck = $this->checkRedis('cache', 'character', $id); |
140 | 140 | |
141 | - if (! empty($redisCheck)) { |
|
141 | + if (!empty($redisCheck)) { |
|
142 | 142 | return $redisCheck; |
143 | 143 | } |
144 | 144 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | // First, check if we have the outfit in Redis |
188 | 188 | $redisCheck = $this->checkRedis('cache', 'outfit', $id); |
189 | 189 | |
190 | - if (! empty($redisCheck)) { |
|
190 | + if (!empty($redisCheck)) { |
|
191 | 191 | return $redisCheck; |
192 | 192 | } |
193 | 193 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | ]; |
245 | 245 | |
246 | 246 | // Loop through each environment and get the first result |
247 | - foreach($environments as $env) { |
|
247 | + foreach ($environments as $env) { |
|
248 | 248 | $url = "https://census.daybreakgames.com/s:{$config['census_service_id']}/get/{$env}/{$endpoint}"; |
249 | 249 | |
250 | 250 | $req = $guzzle->request('GET', $url); |
@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | /** |
30 | 30 | * Prompts the Leaderboard:Check command to resync the leaderboards |
31 | 31 | * |
32 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
33 | - * @param Psr\Http\Message\ResponseInterface $response |
|
32 | + * @param ServerRequestInterface $request |
|
33 | + * @param ResponseInterface $response |
|
34 | 34 | * |
35 | - * @return Symfony\Component\HttpFoundation\Response |
|
35 | + * @return ResponseInterface |
|
36 | 36 | */ |
37 | 37 | public function update(ServerRequestInterface $request, ResponseInterface $response) |
38 | 38 | { |
@@ -71,10 +71,10 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * Returns a list of times that a server leaderboard has been updated |
73 | 73 | * |
74 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
75 | - * @param Psr\Http\Message\ResponseInterface $response |
|
74 | + * @param ServerRequestInterface $request |
|
75 | + * @param ResponseInterface $response |
|
76 | 76 | * |
77 | - * @return Symfony\Component\HttpFoundation\Response |
|
77 | + * @return ResponseInterface |
|
78 | 78 | */ |
79 | 79 | public function lastUpdate(ServerRequestInterface $request, ResponseInterface $response) |
80 | 80 | { |
@@ -2,10 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Ps2alerts\Api\Controller\Endpoint\Leaderboards; |
4 | 4 | |
5 | -use League\Fractal\Manager; |
|
6 | 5 | use Ps2alerts\Api\Controller\Endpoint\AbstractEndpointController; |
7 | -use Ps2alerts\Api\Repository\Metrics\OutfitTotalRepository; |
|
8 | -use Ps2alerts\Api\Repository\Metrics\PlayerTotalRepository; |
|
9 | 6 | use Psr\Http\Message\ServerRequestInterface; |
10 | 7 | use Psr\Http\Message\ResponseInterface; |
11 | 8 |
@@ -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)); |
@@ -83,7 +83,7 @@ |
||
83 | 83 | |
84 | 84 | $data = []; |
85 | 85 | |
86 | - foreach($config['servers'] as $server) { |
|
86 | + foreach ($config['servers'] as $server) { |
|
87 | 87 | $key = "ps2alerts:api:leaderboards:status:{$server}"; |
88 | 88 | |
89 | 89 | if ($redis->exists($key)) { |
@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Construct |
16 | 16 | * |
17 | - * @param League\Fractal\Manager $fractal |
|
18 | - * @param Ps2alerts\Api\Repository\Metrics\OutfitTotalRepository $outfitTotalRepo |
|
19 | - * @param Ps2alerts\Api\Transformer\Profiles\OutfitProfileTransformer $outfitProfileTransformer |
|
17 | + * @param Manager $fractal |
|
18 | + * @param OutfitTotalRepository $outfitTotalRepo |
|
19 | + * @param OutfitProfileTransformer $outfitProfileTransformer |
|
20 | 20 | */ |
21 | 21 | public function __construct( |
22 | 22 | Manager $fractal, |
@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | /** |
32 | 32 | * Gets a outfit |
33 | 33 | * |
34 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
35 | - * @param Psr\Http\Message\ResponseInterface $response |
|
34 | + * @param ServerRequestInterface $request |
|
35 | + * @param ResponseInterface $response |
|
36 | 36 | * @param array $args |
37 | 37 | * |
38 | - * @return array |
|
38 | + * @return ResponseInterface |
|
39 | 39 | */ |
40 | 40 | public function getOutfit(ServerRequestInterface $request, ResponseInterface $response, array $args) |
41 | 41 | { |
@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Construct |
16 | 16 | * |
17 | - * @param League\Fractal\Manager $fractal |
|
18 | - * @param Ps2alerts\Api\Repository\Metrics\PlayerTotalRepository $playerTotalRepo |
|
19 | - * @param Ps2alerts\Api\Transformer\Profiles\PlayerProfileTransformer $playerProfileTransformer |
|
17 | + * @param Manager $fractal |
|
18 | + * @param PlayerTotalRepository $playerTotalRepo |
|
19 | + * @param PlayerProfileTransformer $playerProfileTransformer |
|
20 | 20 | */ |
21 | 21 | public function __construct( |
22 | 22 | Manager $fractal, |
@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | /** |
32 | 32 | * Gets a player |
33 | 33 | * |
34 | - * @param Psr\Http\Message\ServerRequestInterface $request |
|
35 | - * @param Psr\Http\Message\ResponseInterface $response |
|
34 | + * @param ServerRequestInterface $request |
|
35 | + * @param ResponseInterface $response |
|
36 | 36 | * @param array $args |
37 | 37 | * |
38 | - * @return array |
|
38 | + * @return ResponseInterface |
|
39 | 39 | */ |
40 | 40 | public function getPlayer(ServerRequestInterface $request, ResponseInterface $response, array $args) |
41 | 41 | { |