Completed
Pull Request — master (#490)
by Antoine
03:23
created
src/Bridge/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,11 +153,11 @@
 block discarded – undo
153 153
             $paths = array_merge($paths, glob($glob, GLOB_BRACE | GLOB_NOSORT));
154 154
         }
155 155
 
156
-        $yamlPaths = array_filter($paths, function ($v) {
156
+        $yamlPaths = array_filter($paths, function($v) {
157 157
             return preg_match('/\.yml$/', $v);
158 158
         });
159 159
 
160
-        $xmlPaths = array_filter($paths, function ($v) {
160
+        $xmlPaths = array_filter($paths, function($v) {
161 161
             return preg_match('/\.xml$/', $v);
162 162
         });
163 163
 
Please login to merge, or discard this patch.
src/Metadata/Resource/Factory/XmlResourceMetadataFactory.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -90,22 +90,22 @@  discard block
 block discarded – undo
90 90
         }
91 91
 
92 92
         $metadata = [
93
-          'shortName' => $metadata->getAttribute('shortName') ?? null,
94
-          'description' => $metadata->getAttribute('description') ?? null,
95
-          'iri' => $metadata->getAttribute('iri') ?? null,
96
-          'itemOperations' => $this->getOperations($xpath->query('./itemOperations/operation', $metadata)) ?? null,
97
-          'collectionOperations' => $this->getOperations($xpath->query('./collectionOperations/operation', $metadata)) ?? null,
98
-          'attributes' => $this->getAttributes($xpath->query('./attributes/attribute', $metadata)) ?? [],
93
+            'shortName' => $metadata->getAttribute('shortName') ?? null,
94
+            'description' => $metadata->getAttribute('description') ?? null,
95
+            'iri' => $metadata->getAttribute('iri') ?? null,
96
+            'itemOperations' => $this->getOperations($xpath->query('./itemOperations/operation', $metadata)) ?? null,
97
+            'collectionOperations' => $this->getOperations($xpath->query('./collectionOperations/operation', $metadata)) ?? null,
98
+            'attributes' => $this->getAttributes($xpath->query('./attributes/attribute', $metadata)) ?? [],
99 99
         ];
100 100
 
101 101
         if (!$parentResourceMetadata) {
102 102
             return new ResourceMetadata(
103
-              $metadata['shortName'],
104
-              $metadata['description'],
105
-              $metadata['iri'],
106
-              $metadata['itemOperations'],
107
-              $metadata['collectionOperations'],
108
-              $metadata['attributes']
103
+                $metadata['shortName'],
104
+                $metadata['description'],
105
+                $metadata['iri'],
106
+                $metadata['itemOperations'],
107
+                $metadata['collectionOperations'],
108
+                $metadata['attributes']
109 109
             );
110 110
         }
111 111
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         foreach ($query as $operation) {
137 137
             $key = $operation->getAttribute('key');
138 138
             $operations[$key] = [
139
-          'method' => $operation->getAttribute('method'),
139
+            'method' => $operation->getAttribute('method'),
140 140
         ];
141 141
 
142 142
             $path = $operation->getAttribute('path');
Please login to merge, or discard this patch.