Completed
Push — staging ( d055c8...be366c )
by Matthew
02:58
created
src/Repository/AbstractEndpointRepository.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $key = $this->returnKeyType($keyType);
90 90
 
91 91
         $query->cols(['*'])
92
-              ->where("`{$key}` = '{$id}'");
92
+                ->where("`{$key}` = '{$id}'");
93 93
 
94 94
         return $this->fireStatementAndReturn($query, true);
95 95
     }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $key = $this->returnKeyType($keyType);
108 108
 
109 109
         $query->cols(['*'])
110
-              ->where("`{$key}` = '{$id}'");
110
+                ->where("`{$key}` = '{$id}'");
111 111
 
112 112
         return $this->fireStatementAndReturn($query);
113 113
     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
     /**
79 79
      * Allows for Raw SQL firing without the query builder
80 80
      *
81
-     * @param  \Aura\SqlQuery\AbstractQuery $query
82 81
      * @param  boolean                      $single
82
+     * @param string $sql
83 83
      *
84 84
      * @return array
85 85
      */
Please login to merge, or discard this patch.
src/Controller/Endpoint/AbstractEndpointController.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * @param  \League\Fractal\TransformerAbstract        $transformer The Transformer to pass through to Fractal
105 105
      * @param  \Symfony\Component\HttpFoundation\Response $response The client's response
106 106
      *
107
-     * @return array
107
+     * @return Response
108 108
      */
109 109
     protected function respondWithItem($item, $transformer, Response $response)
110 110
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @param  \League\Fractal\TransformerAbstract        $transformer The Transformer to pass through to Fractal
135 135
      * @param  \Symfony\Component\HttpFoundation\Response $response    The client's response
136 136
      *
137
-     * @return array
137
+     * @return Response
138 138
      */
139 139
     protected function respondWithCollection($collection, $transformer, Response $response)
140 140
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * Creates a collection array and sends it back to hence it came.
146 146
      *
147 147
      * @param  array                               $collection
148
-     * @param  /League/Fractal/TransformerAbstract $transformer
148
+     * @param  \League\Fractal\TransformerAbstract $transformer
149 149
      *
150 150
      * @return array
151 151
      */
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      * @param  string                                     $message   Response message to put in the error
183 183
      * @param  int                                        $errorCode Error code to set
184 184
      *
185
-     * @return array
185
+     * @return Response
186 186
      */
187 187
     protected function respondWithError(Response $response, $message, $errorCode)
188 188
     {
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      * @param  \Symfony\Component\HttpFoundation\Response $response
210 210
      * @param  string                                     $message
211 211
      *
212
-     * @return void
212
+     * @return Response
213 213
      */
214 214
     public function errorEmpty(Response $response, $message = 'No data / Empty')
215 215
     {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      * @param  \Symfony\Component\HttpFoundation\Response $response
224 224
      * @param  string                                     $message
225 225
      *
226
-     * @return void
226
+     * @return Response
227 227
      */
228 228
     public function errorForbidden(Response $response, $message = 'Forbidden')
229 229
     {
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      * @param  \Symfony\Component\HttpFoundation\Response $response
238 238
      * @param  string                                     $message
239 239
      *
240
-     * @return void
240
+     * @return Response
241 241
      */
242 242
     public function errorInternalError(Response $response, $message = 'Internal Error')
243 243
     {
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      * @param  \Symfony\Component\HttpFoundation\Response $response
252 252
      * @param  string                                     $message
253 253
      *
254
-     * @return void
254
+     * @return Response
255 255
      */
256 256
     public function errorNotFound(Response $response, $message = 'Resource Not Found')
257 257
     {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      * @param  \Symfony\Component\HttpFoundation\Response $response
266 266
      * @param  string                                     $message
267 267
      *
268
-     * @return void
268
+     * @return Response
269 269
      */
270 270
     public function errorUnauthorized(Response $response, $message = 'Unauthorized')
271 271
     {
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     /**
291 291
      * Reads any requested includes and adds them to the item / collection
292 292
      *
293
-     * @param  Symfony\Component\HttpFoundation\Request $request
293
+     * @param  Request $request
294 294
      *
295 295
      * @return void
296 296
      */
Please login to merge, or discard this patch.
src/Controller/Endpoint/Alerts/AlertCountsEndpointController.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * Construct
22 22
      *
23
-     * @param Ps2alerts\Api\Repository\AlertRepository   $repository
24
-     * @param Ps2alerts\Api\Transformer\AlertTransformer $transformer
25
-     * @param League\Fractal\Manager                     $fractal
23
+     * @param AlertRepository   $repository
24
+     * @param AlertTransformer $transformer
25
+     * @param Manager                     $fractal
26 26
      */
27 27
     public function __construct(
28 28
         AlertRepository  $repository,
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * Returns the victories of each faction and the totals
39 39
      *
40
-     * @param  Symfony\Component\HttpFoundation\Request  $request
41
-     * @param  Symfony\Component\HttpFoundation\Response $response
40
+     * @param  Request  $request
41
+     * @param  Response $response
42 42
      *
43
-     * @return array
43
+     * @return Response
44 44
      */
45 45
     public function getVictories(Request $request, Response $response)
46 46
     {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * @param  \Symfony\Component\HttpFoundation\Request  $request
54 54
      * @param  \Symfony\Component\HttpFoundation\Response $response
55 55
      *
56
-     * @return array
56
+     * @return Response
57 57
      */
58 58
     public function getDominations(Request $request, Response $response)
59 59
     {
Please login to merge, or discard this patch.
src/container.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,22 +18,22 @@
 block discarded – undo
18 18
 
19 19
 // Inflectors
20 20
 $container->inflector('Ps2alerts\Api\Contract\ConfigAwareInterface')
21
-          ->invokeMethod('setConfig', ['config']);
21
+            ->invokeMethod('setConfig', ['config']);
22 22
 $container->inflector('Ps2alerts\Api\Contract\DatabaseAwareInterface')
23
-          ->invokeMethod('setDatabaseDriver', ['Database'])
24
-          ->invokeMethod('setDatabaseDataDriver', ['Database\Data']);
23
+            ->invokeMethod('setDatabaseDriver', ['Database'])
24
+            ->invokeMethod('setDatabaseDataDriver', ['Database\Data']);
25 25
 $container->inflector('Ps2alerts\Api\Contract\LogAwareInterface')
26
-          ->invokeMethod('setLogDriver', ['Monolog\Logger']);
26
+            ->invokeMethod('setLogDriver', ['Monolog\Logger']);
27 27
 $container->inflector('Ps2alerts\Api\Contract\TemplateAwareInterface')
28
-          ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
28
+            ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
29 29
 $container->inflector('Ps2alerts\Api\Contract\RedisAwareInterface')
30
-          ->invokeMethod('setRedisDriver', ['redis']);
30
+            ->invokeMethod('setRedisDriver', ['redis']);
31 31
 $container->inflector('Ps2alerts\Api\Contract\UuidAwareInterface')
32
-          ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
32
+            ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
33 33
 
34 34
 
35 35
 // Container Inflector
36 36
 $container->inflector('League\Container\ContainerAwareInterface')
37
-          ->invokeMethod('setContainer', [$container]);
37
+            ->invokeMethod('setContainer', [$container]);
38 38
 
39 39
 return $container;
Please login to merge, or discard this patch.