@@ -576,7 +576,7 @@ discard block |
||
| 576 | 576 | return $this->parseArray( |
| 577 | 577 | $data, |
| 578 | 578 | $path, |
| 579 | - function ($data, $path, DataParser $parser) use ($typeParams) { |
|
| 579 | + function($data, $path, DataParser $parser) use ($typeParams) { |
|
| 580 | 580 | return $parser->parseScalarValue($data, $path, $typeParams); |
| 581 | 581 | } |
| 582 | 582 | ); |
@@ -586,7 +586,7 @@ discard block |
||
| 586 | 586 | return $this->parseArray( |
| 587 | 587 | $data, |
| 588 | 588 | $path, |
| 589 | - function ($data, $path, DataParser $parser) use ($format) { |
|
| 589 | + function($data, $path, DataParser $parser) use ($format) { |
|
| 590 | 590 | return $parser->parseDateTime($data, $path, $format); |
| 591 | 591 | } |
| 592 | 592 | ); |
@@ -595,7 +595,7 @@ discard block |
||
| 595 | 595 | return $this->parseArray( |
| 596 | 596 | $data, |
| 597 | 597 | $path, |
| 598 | - function ($data, $path, DataParser $parser) use ($typeParams) { |
|
| 598 | + function($data, $path, DataParser $parser) use ($typeParams) { |
|
| 599 | 599 | return $parser->parseObjectValue($data, $path, $typeParams); |
| 600 | 600 | } |
| 601 | 601 | ); |
@@ -604,7 +604,7 @@ discard block |
||
| 604 | 604 | return $this->parseArray( |
| 605 | 605 | $data, |
| 606 | 606 | $path, |
| 607 | - function ($data, $path, DataParser $parser) use ($typeParams) { |
|
| 607 | + function($data, $path, DataParser $parser) use ($typeParams) { |
|
| 608 | 608 | return $parser->parseArrayValue($data, $path, $typeParams); |
| 609 | 609 | } |
| 610 | 610 | ); |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | return $this->parseArray( |
| 614 | 614 | $data, |
| 615 | 615 | $path, |
| 616 | - function ($data, $path, DataParser $parser) { |
|
| 616 | + function($data, $path, DataParser $parser) { |
|
| 617 | 617 | return $parser->parseRaw($data, $path); |
| 618 | 618 | } |
| 619 | 619 | ); |
@@ -115,6 +115,7 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | 117 | * @inheritdoc |
| 118 | + * @param string $path |
|
| 118 | 119 | */ |
| 119 | 120 | public function parseString($data, $path) |
| 120 | 121 | { |
@@ -139,6 +140,7 @@ discard block |
||
| 139 | 140 | |
| 140 | 141 | /** |
| 141 | 142 | * @inheritdoc |
| 143 | + * @param string $path |
|
| 142 | 144 | */ |
| 143 | 145 | public function parseInt($data, $path) |
| 144 | 146 | { |
@@ -147,6 +149,7 @@ discard block |
||
| 147 | 149 | |
| 148 | 150 | /** |
| 149 | 151 | * @inheritdoc |
| 152 | + * @param string $path |
|
| 150 | 153 | */ |
| 151 | 154 | public function parseFloat($data, $path) |
| 152 | 155 | { |
@@ -172,6 +175,7 @@ discard block |
||
| 172 | 175 | |
| 173 | 176 | /** |
| 174 | 177 | * @inheritdoc |
| 178 | + * @param string $path |
|
| 175 | 179 | */ |
| 176 | 180 | public function parseCallback($data, $path, $callback) |
| 177 | 181 | { |
@@ -189,6 +193,7 @@ discard block |
||
| 189 | 193 | |
| 190 | 194 | /** |
| 191 | 195 | * @inheritdoc |
| 196 | + * @param string $path |
|
| 192 | 197 | */ |
| 193 | 198 | public function parseBool($data, $path) |
| 194 | 199 | { |
@@ -247,6 +252,7 @@ discard block |
||
| 247 | 252 | |
| 248 | 253 | /** |
| 249 | 254 | * @inheritdoc |
| 255 | + * @param string $path |
|
| 250 | 256 | */ |
| 251 | 257 | public function parseArray($data, $path, \Closure $itemsParser) |
| 252 | 258 | { |
@@ -302,6 +308,8 @@ discard block |
||
| 302 | 308 | |
| 303 | 309 | /** |
| 304 | 310 | * @inheritdoc |
| 311 | + * @param string $path |
|
| 312 | + * @param string $resType |
|
| 305 | 313 | */ |
| 306 | 314 | public function parseResource($data, $path, $resType) |
| 307 | 315 | { |
@@ -53,7 +53,6 @@ |
||
| 53 | 53 | /** |
| 54 | 54 | * Returns response factory |
| 55 | 55 | * |
| 56 | - * @param RequestInterface $encodingParams |
|
| 57 | 56 | * @return ResponsesInterface |
| 58 | 57 | */ |
| 59 | 58 | public function getResponseFactory(RequestInterface $request); |
@@ -278,13 +278,13 @@ |
||
| 278 | 278 | private function createPsr7Request(Request $request) |
| 279 | 279 | { |
| 280 | 280 | return new Psr7Request( |
| 281 | - function () use ($request) { |
|
| 281 | + function() use ($request) { |
|
| 282 | 282 | return $request->getMethod(); |
| 283 | 283 | }, |
| 284 | - function ($name) use ($request) { |
|
| 284 | + function($name) use ($request) { |
|
| 285 | 285 | return $request->headers->get($name); |
| 286 | 286 | }, |
| 287 | - function () use ($request) { |
|
| 287 | + function() use ($request) { |
|
| 288 | 288 | return $request->query->all(); |
| 289 | 289 | } |
| 290 | 290 | ); |