Completed
Pull Request — master (#490)
by Antoine
03:17
created
src/Bridge/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,13 +154,13 @@
 block discarded – undo
154 154
         }
155 155
 
156 156
         $container->getDefinition('api_platform.metadata.resource.name_collection_factory.yml')->addArgument(
157
-            array_filter($paths, function ($v) {
157
+            array_filter($paths, function($v) {
158 158
                 return preg_match('/\.yml$/', $v);
159 159
             })
160 160
         );
161 161
 
162 162
         $container->getDefinition('api_platform.metadata.resource.name_collection_factory.xml')->addArgument(
163
-            array_filter($paths, function ($v) {
163
+            array_filter($paths, function($v) {
164 164
                 return preg_match('/\.xml$/', $v);
165 165
             })
166 166
         );
Please login to merge, or discard this patch.
src/Metadata/Resource/Factory/XmlResourceMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
             return $this->handleNotFound($parentResourceMetadata, $resourceClass);
59 59
         }
60 60
 
61
-        if(!isset($metadata['shortName'])) {
61
+        if (!isset($metadata['shortName'])) {
62 62
             $metadata['shortName'] = $reflectionClass->name;
63 63
         }
64 64
 
Please login to merge, or discard this patch.
src/Metadata/Resource/Factory/YmlResourceMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             return $this->handleNotFound($parentResourceMetadata, $resourceClass);
60 60
         }
61 61
 
62
-        if(!isset($metadata['shortName'])) {
62
+        if (!isset($metadata['shortName'])) {
63 63
             $metadata['shortName'] = $reflectionClass->name;
64 64
         }
65 65
 
Please login to merge, or discard this patch.
src/Metadata/Resource/Factory/ResourceMetadataFactoryTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
         $resourceMetadata = $parentResourceMetadata;
54 54
         foreach (['shortName', 'description', 'iri', 'attributes'] as $property) {
55
-            if($annotation->$property) {
55
+            if ($annotation->$property) {
56 56
                 $resourceMetadata = $this->createWith($resourceMetadata, $property, $annotation->$property);
57 57
             }
58 58
         }
Please login to merge, or discard this patch.