Completed
Push — staging ( 49d4d2...31af54 )
by Matthew
03:26
created
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/Transformer/DataTransformer.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Transformer/Profiles/OutfitProfileTransformer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -219,6 +219,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Transformer/Profiles/PlayerProfileTransformer.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Repository/AbstractEndpointRepository.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Controller/Endpoint/Leaderboards/LeaderboardLadderEndpointController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/Controller/Endpoint/Admin/AdminEndpointController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * Construct
13 13
      *
14
-    */
14
+     */
15 15
     public function __construct()
16 16
     {
17 17
 
Please login to merge, or discard this patch.
src/Command/LeaderboardPlayersCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Controller/Endpoint/AbstractEndpointController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.