Permalink
Browse files

[HttpKernel] fixed CS

  • Loading branch information...
fabpot committed Apr 5, 2011
1 parent 9bcd496 commit 6faacdec274a85f2271659ebbb1fd9b5aebb3796
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/Symfony/Component/HttpKernel/Kernel.php
@@ -243,12 +243,11 @@ public function locateResource($name, $dir = null, $first = true)
$overridePath = substr($path, 9);
$resourceBundle = null;
$bundles = $this->getBundle($bundleName, false);
-
+
foreach ($bundles as $bundle) {
if ($isResource && file_exists($file = $dir.'/'.$bundle->getName().$overridePath)) {
if (null !== $resourceBundle) {
- throw new \RuntimeException(sprintf('"%s" resource is hidden by a resource from the "%s" derived bundle. ' .
- 'Create a "%s" file to override the bundle resource.',
+ throw new \RuntimeException(sprintf('"%s" resource is hidden by a resource from the "%s" derived bundle. Create a "%s" file to override the bundle resource.',
$file,
$resourceBundle,
$dir.'/'.$bundles[0]->getName().$overridePath

0 comments on commit 6faacde

Please sign in to comment.