Переглянути джерело

[DependencyInjection] fixed CS for previous merge

Fabien Potencier 14 роки тому
батько
коміт
bb3f5c5575

+ 2 - 7
src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

@@ -382,18 +382,13 @@ EOF
 
             // can it be handled by an extension?
             if (!$this->container->hasExtension($node->namespaceURI)) {
-                $extensionNamespaces = array_filter(array_map(
-                                            function($ext) {
-                                                return $ext->getNamespace();
-                                            },
-                                            $this->container->getExtensions()
-                                       ));
+                $extensionNamespaces = array_filter(array_map(function ($ext) { return $ext->getNamespace(); }, $this->container->getExtensions()));
                 throw new \InvalidArgumentException(sprintf(
                     'There is no extension able to load the configuration for "%s" (in %s). Looked for namespace "%s", found %s',
                     $node->tagName,
                     $file,
                     $node->namespaceURI,
-                    $extensionNamespaces ? '"' . join($extensionNamespaces, '", "') . '"' : 'none'
+                    $extensionNamespaces ? sprintf('"%s"', implode('", "', $extensionNamespaces)) : 'none'
                 ));
             }
         }