@@ -9,7 +9,6 @@ |
||
9 | 9 | namespace KleijnWeb\SwaggerBundle\Tests\Request\ContentDecoder; |
10 | 10 | |
11 | 11 | use JMS\Serializer\Serializer; |
12 | -use JMS\Serializer\SerializerBuilder; |
|
13 | 12 | use KleijnWeb\SwaggerBundle\Request\ContentDecoder; |
14 | 13 | use KleijnWeb\SwaggerBundle\Serializer\JmsSerializerFactory; |
15 | 14 | use KleijnWeb\SwaggerBundle\Serializer\SerializationTypeResolver; |
@@ -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(); |
@@ -6,7 +6,7 @@ |
||
6 | 6 | /** |
7 | 7 | * @var ClassLoader $loader |
8 | 8 | */ |
9 | -$loader = require __DIR__.'/../../../../../vendor/autoload.php'; |
|
9 | +$loader = require __DIR__ . '/../../../../../vendor/autoload.php'; |
|
10 | 10 | |
11 | 11 | AnnotationRegistry::registerLoader(array($loader, 'loadClass')); |
12 | 12 |
@@ -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(); |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use org\bovigo\vfs\vfsStream; |
16 | 16 | use org\bovigo\vfs\vfsStreamDirectory; |
17 | 17 | use org\bovigo\vfs\vfsStreamWrapper; |
18 | -use Symfony\Component\HttpFoundation\Request; |
|
19 | 18 | use Symfony\Component\HttpFoundation\Response; |
20 | 19 | use Symfony\Component\Yaml\Yaml; |
21 | 20 |
@@ -197,7 +197,7 @@ |
||
197 | 197 | { |
198 | 198 | $exception = new ResourceNotReadableException("Failed reading '$uri'"); |
199 | 199 | |
200 | - set_error_handler(function () use ($exception) { |
|
200 | + set_error_handler(function() use ($exception) { |
|
201 | 201 | throw $exception; |
202 | 202 | }); |
203 | 203 | $response = file_get_contents($uri); |
@@ -90,7 +90,7 @@ |
||
90 | 90 | |
91 | 91 | $operationDefinition = [ |
92 | 92 | 'parameters' => (object)[ |
93 | - (object) [ |
|
93 | + (object)[ |
|
94 | 94 | 'name' => 'myContent', |
95 | 95 | 'in' => 'body' |
96 | 96 | ] |