Completed
Push — staging ( 83f973...0db769 )
by Matthew
02:32
created
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.
src/Controller/Endpoint/AbstractEndpointController.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
      * Builds an item response in Fractal then hands off to the responder
102 102
      *
103 103
      * @param  array                                      $item     The item to transform
104
-     * @param  mixed                                      $callback The Transformer to pass through to Fractal
104
+     * @param  \League\Fractal\TransformerAbstract                                      $callback 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, $callback, Response $response)
110 110
     {
@@ -118,10 +118,10 @@  discard block
 block discarded – undo
118 118
      * Builds a collection of items from Fractal then hands off to the responder
119 119
      *
120 120
      * @param  array $collection                          The collection to transform
121
-     * @param  mixed $callback                            The Transformer to pass through to Fractal
121
+     * @param  \League\Fractal\TransformerAbstract $callback                            The Transformer to pass through to Fractal
122 122
      * @param  \Symfony\Component\HttpFoundation\Response The client's response
123 123
      *
124
-     * @return array
124
+     * @return Response
125 125
      */
126 126
     protected function respondWithCollection($collection, $callback, Response $response)
127 127
     {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      * @param  string                                     $message   Response message to put in the error
157 157
      * @param  int                                        $errorCode Error code to set
158 158
      *
159
-     * @return array
159
+     * @return Response
160 160
      */
161 161
     protected function respondWithError(Response $response, $message, $errorCode)
162 162
     {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * @param  \Symfony\Component\HttpFoundation\Response $response
184 184
      * @param  string                                     $message
185 185
      *
186
-     * @return void
186
+     * @return Response
187 187
      */
188 188
     public function errorEmpty(Response $response, $message = 'No data / Empty')
189 189
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * @param  \Symfony\Component\HttpFoundation\Response $response
198 198
      * @param  string                                     $message
199 199
      *
200
-     * @return void
200
+     * @return Response
201 201
      */
202 202
     public function errorForbidden(Response $response, $message = 'Forbidden')
203 203
     {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      * @param  \Symfony\Component\HttpFoundation\Response $response
212 212
      * @param  string                                     $message
213 213
      *
214
-     * @return void
214
+     * @return Response
215 215
      */
216 216
     public function errorInternalError(Response $response, $message = 'Internal Error')
217 217
     {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      * @param  \Symfony\Component\HttpFoundation\Response $response
226 226
      * @param  string                                     $message
227 227
      *
228
-     * @return void
228
+     * @return Response
229 229
      */
230 230
     public function errorNotFound(Response $response, $message = 'Resource Not Found')
231 231
     {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      * @param  \Symfony\Component\HttpFoundation\Response $response
240 240
      * @param  string                                     $message
241 241
      *
242
-     * @return void
242
+     * @return Response
243 243
      */
244 244
     public function errorUnauthorized(Response $response, $message = 'Unauthorized')
245 245
     {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     /**
265 265
      * Reads any requested includes and adds them to the item / collection
266 266
      *
267
-     * @param  Symfony\Component\HttpFoundation\Request $request
267
+     * @param  Request $request
268 268
      *
269 269
      * @return void
270 270
      */
Please login to merge, or discard this patch.
src/Controller/Endpoint/AlertEndpointController.php 1 patch
Doc Comments   +12 added lines, -13 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,
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
      *
35 35
      * @see AbstractEndpointController::respondWithItem
36 36
      *
37
-     * @param  Symfony\Component\HttpFoundation\Request  $request
38
-     * @param  Symfony\Component\HttpFoundation\Response $response
37
+     * @param  Request  $request
38
+     * @param  Response $response
39 39
      * @param  array                                     $args
40 40
      *
41
-     * @return array
41
+     * @return Response
42 42
      */
43 43
     public function getSingle(Request $request, Response $response, array $args)
44 44
     {
@@ -65,11 +65,10 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * Returns the victories of each faction and the totals
67 67
      *
68
-     * @param  Symfony\Component\HttpFoundation\Request  $request
69
-     * @param  Symfony\Component\HttpFoundation\Response $response
70
-     * @param  array                                     $args
68
+     * @param  Request  $request
69
+     * @param  Response $response
71 70
      *
72
-     * @return array
71
+     * @return Response
73 72
      */
74 73
     public function getVictories(Request $request, Response $response)
75 74
     {
@@ -91,10 +90,10 @@  discard block
 block discarded – undo
91 90
     /**
92 91
      * Returns the dominations of each faction and the totals
93 92
      *
94
-     * @param  Symfony\Component\HttpFoundation\Request  $request
95
-     * @param  Symfony\Component\HttpFoundation\Response $response
93
+     * @param  Request  $request
94
+     * @param  Response $response
96 95
      *
97
-     * @return array
96
+     * @return Response
98 97
      */
99 98
     public function getDominations(Request $request, Response $response)
100 99
     {
Please login to merge, or discard this patch.
src/Repository/AbstractEndpointRepository.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,6 @@  discard block
 block discarded – undo
116 116
      * Reads all records based off a simple where statement
117 117
      *
118 118
      * @param  array $fields
119
-     * @param  string $value
120 119
      *
121 120
      * @return array
122 121
      */
@@ -136,8 +135,7 @@  discard block
 block discarded – undo
136 135
     /**
137 136
      * Reads the count of records based off a where statement
138 137
      *
139
-     * @param  array $field
140
-     * @param  string $value
138
+     * @param  array $fields
141 139
      *
142 140
      * @return array
143 141
      */
Please login to merge, or discard this patch.