Completed
Push — staging ( e89f4d...5adefb )
by Matthew
02:00
created
src/Command/LeaderboardPlayersCommand.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -184,6 +184,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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}";
Please login to merge, or discard this patch.
src/Controller/Endpoint/Alerts/AlertCombatEndpointController.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'];
Please login to merge, or discard this patch.
src/Controller/Endpoint/Alerts/AlertCountsEndpointController.php 1 patch
Doc Comments   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Controller/Endpoint/Alerts/AlertEndpointController.php 1 patch
Doc Comments   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Controller/Endpoint/ContextualDataEndpointController.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,9 +15,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Controller/Endpoint/Data/DataEndpointController.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Controller/Endpoint/Leaderboards/LeaderboardLadderEndpointController.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Controller/Endpoint/Profiles/OutfitProfileEndpointController.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Controller/Endpoint/Profiles/PlayerProfileEndpointController.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.