Completed
Pull Request — master (#490)
by Antoine
03:19
created
src/Metadata/Resource/Factory/XmlResourceMetadataFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
     /**
163 163
      * Transforms an xml dom to an array.
164 164
      *
165
-     * @param DomElement                    $node
165
+     * @param DOMElement                    $node
166 166
      * @param nodes relative root reference $nodes
167 167
      */
168 168
     private function toArray(DomElement $node, array &$nodes = []) : array
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use ApiPlatform\Core\Exception\ResourceClassNotFoundException;
16 16
 use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
17 17
 use DOMDocument;
18
-use DOMElement;
19 18
 use DOMXpath;
20 19
 
21 20
 /**
Please login to merge, or discard this patch.
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.