@@ -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(); |
@@ -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]; |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | 'header' => 'headers' |
| 49 | 49 | ]; |
| 50 | 50 | |
| 51 | - if(isset($operationObject->getDefinition()->parameters)) { |
|
| 51 | + if (isset($operationObject->getDefinition()->parameters)) { |
|
| 52 | 52 | foreach ($operationObject->getDefinition()->parameters as $paramDefinition) { |
| 53 | 53 | $paramName = $paramDefinition->name; |
| 54 | 54 | |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | $parameters = new \stdClass; |
| 93 | 93 | |
| 94 | - if(isset($this->operationObject->getDefinition()->parameters)) { |
|
| 94 | + if (isset($this->operationObject->getDefinition()->parameters)) { |
|
| 95 | 95 | foreach ($this->operationObject->getDefinition()->parameters as $paramDefinition) { |
| 96 | 96 | $paramName = $paramDefinition->name; |
| 97 | 97 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | ->arrayNode('namespace') |
| 38 | 38 | ->beforeNormalization() |
| 39 | 39 | ->ifString() |
| 40 | - ->then(function ($v) { return [$v]; }) |
|
| 40 | + ->then(function($v) { return [$v]; }) |
|
| 41 | 41 | ->end() |
| 42 | 42 | ->prototype('scalar') |
| 43 | 43 | ->end() |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | break; |
| 141 | 141 | } |
| 142 | 142 | if (isset($paramDefinition->enum)) { |
| 143 | - $requirements[$paramDefinition->name] = '(' . |
|
| 143 | + $requirements[$paramDefinition->name] = '('. |
|
| 144 | 144 | implode('|', $paramDefinition->enum) |
| 145 | 145 | . ')'; |
| 146 | 146 | break; |
@@ -25,14 +25,14 @@ |
||
| 25 | 25 | public function load(array $configs, ContainerBuilder $container) |
| 26 | 26 | { |
| 27 | 27 | $config = $this->processConfiguration(new Configuration(), $configs); |
| 28 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 28 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 29 | 29 | $loader->load('services.yml'); |
| 30 | 30 | |
| 31 | 31 | $container->setParameter('swagger.document.base_path', $config['document']['base_path']); |
| 32 | 32 | $container->setParameter('swagger.serializer.namespace', $config['serializer']['namespace']); |
| 33 | 33 | |
| 34 | 34 | $serializerType = $config['serializer']['type']; |
| 35 | - $container->setAlias('swagger.serializer.target', 'swagger.serializer.' . $serializerType); |
|
| 35 | + $container->setAlias('swagger.serializer.target', 'swagger.serializer.'.$serializerType); |
|
| 36 | 36 | |
| 37 | 37 | if ($serializerType !== 'array') { |
| 38 | 38 | $resolverDefinition = $container->getDefinition('swagger.request.processor.content_decoder'); |