Completed
Pull Request — master (#490)
by Antoine
07:18 queued 03:44
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
@@ -95,22 +95,22 @@  discard block
 block discarded – undo
95 95
         }
96 96
 
97 97
         $metadata = [
98
-          'shortName' => $metadata->getAttribute('shortName') ?: null,
99
-          'description' => $metadata->getAttribute('description') ?: null,
100
-          'iri' => $metadata->getAttribute('iri') ?: null,
101
-          'itemOperations' => $this->getOperations($xpath->query('./itemOperations/operation', $metadata)) ?: null,
102
-          'collectionOperations' => $this->getOperations($xpath->query('./collectionOperations/operation', $metadata)) ?: null,
103
-          'attributes' => $this->getAttributes($xpath->query('./attributes/attribute', $metadata)) ?? [],
98
+            'shortName' => $metadata->getAttribute('shortName') ?: null,
99
+            'description' => $metadata->getAttribute('description') ?: null,
100
+            'iri' => $metadata->getAttribute('iri') ?: null,
101
+            'itemOperations' => $this->getOperations($xpath->query('./itemOperations/operation', $metadata)) ?: null,
102
+            'collectionOperations' => $this->getOperations($xpath->query('./collectionOperations/operation', $metadata)) ?: null,
103
+            'attributes' => $this->getAttributes($xpath->query('./attributes/attribute', $metadata)) ?? [],
104 104
         ];
105 105
 
106 106
         if (!$parentResourceMetadata) {
107 107
             return new ResourceMetadata(
108
-              $metadata['shortName'],
109
-              $metadata['description'],
110
-              $metadata['iri'],
111
-              $metadata['itemOperations'],
112
-              $metadata['collectionOperations'],
113
-              $metadata['attributes']
108
+                $metadata['shortName'],
109
+                $metadata['description'],
110
+                $metadata['iri'],
111
+                $metadata['itemOperations'],
112
+                $metadata['collectionOperations'],
113
+                $metadata['attributes']
114 114
             );
115 115
         }
116 116
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         foreach ($query as $operation) {
142 142
             $key = $operation->getAttribute('key');
143 143
             $operations[$key] = [
144
-          'method' => $operation->getAttribute('method'),
144
+            'method' => $operation->getAttribute('method'),
145 145
         ];
146 146
 
147 147
             $path = $operation->getAttribute('path');
Please login to merge, or discard this patch.