@@ -69,7 +69,7 @@ |
||
| 69 | 69 | /** |
| 70 | 70 | * Deserializes data into the given type. |
| 71 | 71 | * |
| 72 | - * @param mixed $data |
|
| 72 | + * @param string $data |
|
| 73 | 73 | * @param string $type |
| 74 | 74 | * @param string $format |
| 75 | 75 | * @param SerializationContext|array $context |
@@ -243,7 +243,7 @@ |
||
| 243 | 243 | |
| 244 | 244 | $definitionPaths = array_keys($pathDefinitions); |
| 245 | 245 | sort($definitionPaths); |
| 246 | - $routePaths = array_map(function ($route) { |
|
| 246 | + $routePaths = array_map(function($route) { |
|
| 247 | 247 | return $route->getPath(); |
| 248 | 248 | }, $routes->getIterator()->getArrayCopy()); |
| 249 | 249 | sort($routePaths); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $this->contentDecoderMock |
| 33 | 33 | ->expects($this->any()) |
| 34 | 34 | ->method('decodeContent') |
| 35 | - ->willReturnCallback(function (Request $request) { |
|
| 35 | + ->willReturnCallback(function(Request $request) { |
|
| 36 | 36 | return json_decode($request->getContent()); |
| 37 | 37 | }); |
| 38 | 38 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $jsonEncoderMock |
| 45 | 45 | ->expects($this->once()) |
| 46 | 46 | ->method('encode') |
| 47 | - ->willReturnCallback(function ($string) { |
|
| 47 | + ->willReturnCallback(function($string) { |
|
| 48 | 48 | $data = json_encode($string); |
| 49 | 49 | if (is_null($data)) { |
| 50 | 50 | throw new \Exception(); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $jsonEncoderMock |
| 45 | 45 | ->expects($this->once()) |
| 46 | 46 | ->method('encode') |
| 47 | - ->willReturnCallback(function ($string) { |
|
| 47 | + ->willReturnCallback(function($string) { |
|
| 48 | 48 | $data = json_encode($string); |
| 49 | 49 | if (is_null($data)) { |
| 50 | 50 | throw new \Exception(); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * @param string $username |
| 18 | 18 | * @param string $password |
| 19 | 19 | * |
| 20 | - * @return array |
|
| 20 | + * @return string |
|
| 21 | 21 | */ |
| 22 | 22 | public function loginUser($username, $password) |
| 23 | 23 | { |
@@ -203,7 +203,7 @@ |
||
| 203 | 203 | $logger |
| 204 | 204 | ->expects($this->once()) |
| 205 | 205 | ->method('log') |
| 206 | - ->with($this->anything(), $this->callback(function ($message) use (&$logref) { |
|
| 206 | + ->with($this->anything(), $this->callback(function($message) use (&$logref) { |
|
| 207 | 207 | $matches = []; |
| 208 | 208 | if (preg_match('/logref ([a-z0-9]*)/', $message, $matches)) { |
| 209 | 209 | $logref = $matches[1]; |
@@ -308,8 +308,8 @@ |
||
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | /** |
| 311 | - * @param mixed $expected |
|
| 312 | - * @param mixed $actual |
|
| 311 | + * @param integer $expected |
|
| 312 | + * @param integer $actual |
|
| 313 | 313 | * @param string $message |
| 314 | 314 | * |
| 315 | 315 | * @return mixed |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * @return object |
|
| 75 | + * @return \stdClass |
|
| 76 | 76 | */ |
| 77 | 77 | private function assembleRequestSchema() |
| 78 | 78 | { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | ] |
| 75 | 75 | ] |
| 76 | 76 | ]; |
| 77 | - $document = new SwaggerDocument('', $documentDefinition); |
|
| 77 | + $document = new SwaggerDocument('', $documentDefinition); |
|
| 78 | 78 | |
| 79 | 79 | return new static($document, $path, $method); |
| 80 | 80 | } |