Completed
Push — staging ( 5f9089...8e7d49 )
by Matthew
04:33
created
src/Repository/AbstractEndpointRepository.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@  discard block
 block discarded – undo
57 57
         return $query;
58 58
     }
59 59
 
60
+    /**
61
+     * @param AbstractQuery $query
62
+     */
60 63
     public function fireStatementAndReturn($query, $single = false)
61 64
     {
62 65
         $pdo = $this->getDatabaseDriver();
@@ -104,6 +107,9 @@  discard block
 block discarded – undo
104 107
         return $this->fireStatementAndReturn($query);
105 108
     }
106 109
 
110
+    /**
111
+     * @param string $key
112
+     */
107 113
     public function returnKeyType($key)
108 114
     {
109 115
         switch ($key) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use League\Route\Http\JsonResponse as Response;
6 6
 use Ps2alerts\Api\Controller\EndpointBaseController;
7
-use Ps2alerts\Api\QueryObjects\QueryObject;
8 7
 use Ps2alerts\Api\Loader\ResultLoader;
9 8
 use Symfony\Component\HttpFoundation\Request;
10 9
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $key = $this->returnKeyType($keyType);
82 82
 
83 83
         $query->cols(['*'])
84
-              ->where("{$key} = {$id}");
84
+                ->where("{$key} = {$id}");
85 85
 
86 86
         return $this->fireStatementAndReturn($query, true);
87 87
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $key = $this->returnKeyType($keyType);
100 100
 
101 101
         $query->cols(['*'])
102
-              ->where("{$key} = {$id}");
102
+                ->where("{$key} = {$id}");
103 103
 
104 104
         return $this->fireStatementAndReturn($query);
105 105
     }
Please login to merge, or discard this patch.
src/Transformer/AlertTransformer.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      *
133 133
      * @param  array $data
134 134
      *
135
-     * @return League\Fractal\Resource\Collection
135
+     * @return \League\Fractal\Resource\Collection
136 136
      */
137 137
     public function includeClasses($data)
138 138
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @param  array $data
147 147
      *
148
-     * @return League\Fractal\Resource\Collection
148
+     * @return \League\Fractal\Resource\Collection
149 149
      */
150 150
     public function includeCombatHistorys($data)
151 151
     {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      *
159 159
      * @param  array $data
160 160
      *
161
-     * @return League\Fractal\Resource\Collection
161
+     * @return \League\Fractal\Resource\Item
162 162
      */
163 163
     public function includeFactions($data)
164 164
     {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      *
172 172
      * @param  array $data
173 173
      *
174
-     * @return League\Fractal\Resource\Collection
174
+     * @return \League\Fractal\Resource\Collection
175 175
      */
176 176
     public function includeMapInitials($data)
177 177
     {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      *
185 185
      * @param  array $data
186 186
      *
187
-     * @return League\Fractal\Resource\Collection
187
+     * @return \League\Fractal\Resource\Collection
188 188
      */
189 189
     public function includeMaps($data)
190 190
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      *
198 198
      * @param  array $data
199 199
      *
200
-     * @return League\Fractal\Resource\Collection
200
+     * @return \League\Fractal\Resource\Collection
201 201
      */
202 202
     public function includeOutfits($data)
203 203
     {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      *
211 211
      * @param  array $data
212 212
      *
213
-     * @return League\Fractal\Resource\Collection
213
+     * @return \League\Fractal\Resource\Collection
214 214
      */
215 215
     public function includePopulations($data)
216 216
     {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      *
224 224
      * @param  array $data
225 225
      *
226
-     * @return League\Fractal\Resource\Collection
226
+     * @return \League\Fractal\Resource\Collection
227 227
      */
228 228
     public function includePlayers($data)
229 229
     {
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
      *
237 237
      * @param  array $data
238 238
      *
239
-     * @return League\Fractal\Resource\Collection
239
+     * @return \League\Fractal\Resource\Collection
240 240
      */
241 241
     public function includeVehicles($data)
242 242
     {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      *
250 250
      * @param  array $data
251 251
      *
252
-     * @return League\Fractal\Resource\Collection
252
+     * @return \League\Fractal\Resource\Collection
253 253
      */
254 254
     public function includeWeapons($data)
255 255
     {
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      *
263 263
      * @param  array $data
264 264
      *
265
-     * @return League\Fractal\Resource\Collection
265
+     * @return \League\Fractal\Resource\Collection
266 266
      */
267 267
     public function includeXps($data)
268 268
     {
Please login to merge, or discard this patch.
tests/Endpoints/AlertControllerTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use GuzzleHttp\Client;
4
-use GuzzleHttp\Psr7\Request;
5
-use GuzzleHttp\Psr7\Response;
6 4
 
7 5
 class AlertControllerTest extends \PHPUnit_Framework_TestCase
8 6
 {
Please login to merge, or discard this patch.