@@ -392,7 +392,7 @@ |
||
| 392 | 392 | return ['$ref' => sprintf('#/definitions/%s', $this->resourceMetadataFactory->create($className)->getShortName())]; |
| 393 | 393 | } |
| 394 | 394 | } |
| 395 | - break; |
|
| 395 | + break; |
|
| 396 | 396 | } |
| 397 | 397 | } |
| 398 | 398 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | |
| 61 | 61 | $routeCollection->addCollection($this->fileLoader->load('jsonld.xml')); |
| 62 | 62 | $routeCollection->addCollection($this->fileLoader->load('hydra.xml')); |
| 63 | - if($this->container->getParameter('api_platform.enable_swagger')) { |
|
| 63 | + if ($this->container->getParameter('api_platform.enable_swagger')) { |
|
| 64 | 64 | $routeCollection->addCollection($this->fileLoader->load('swagger.xml')); |
| 65 | 65 | } |
| 66 | 66 | foreach ($this->resourceNameCollectionFactory->create() as $resourceClass) { |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | |
| 86 | 86 | if ($config['enable_swagger']) { |
| 87 | 87 | $loader->load('swagger.xml'); |
| 88 | - $container->setParameter('api_platform.enable_swagger', (string)$config['enable_swagger']); |
|
| 88 | + $container->setParameter('api_platform.enable_swagger', (string) $config['enable_swagger']); |
|
| 89 | 89 | |
| 90 | 90 | } |
| 91 | 91 | |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | $doc['host'] = $this->host; |
| 174 | 174 | $doc['basePath'] = $this->urlGenerator->generate('api_jsonld_entrypoint'); |
| 175 | 175 | $doc['definitions'] = $properties; |
| 176 | - $doc['externalDocs'] = ['description' => 'Find more about API Platform', 'url' => 'https://api-platform.com']; $doc['tags'] = $classes; |
|
| 176 | + $doc['externalDocs'] = ['description' => 'Find more about API Platform', 'url' => 'https://api-platform.com']; $doc['tags'] = $classes; |
|
| 177 | 177 | $doc['schemes'] = $this->schema; // more schema ? |
| 178 | 178 | $doc['paths'] = $itemOperationsDocs; |
| 179 | 179 | |