Completed
Pull Request — master (#591)
by Amrouche
03:45
created
src/Hydra/ApiDocumentationBuilder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Bridge/Symfony/Routing/ApiLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Bridge/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Swagger/ApiDocumentationBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.