Skip to content

Commit

Permalink
[2.6] CS Fixes And Removed An Unused Import
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored and fabpot committed Dec 7, 2014
1 parent 84c0c15 commit 2b17676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Exception/FileLoaderLoadException.php
Expand Up @@ -43,22 +43,22 @@ public function __construct($resource, $sourceResource = null, $code = null, $pr
if (null === $sourceResource) {
$message .= sprintf('(which is loaded in resource "%s")', $this->varToString($resource));
} else {
$message .= sprintf('(which is being imported from "%s")',$this->varToString($sourceResource));
$message .= sprintf('(which is being imported from "%s")', $this->varToString($sourceResource));
}
$message .= '.';

// if there's no previous message, present it the default way
} elseif (null === $sourceResource) {
$message .= sprintf('Cannot load resource "%s".', $this->varToString($resource));
} else {
$message .= sprintf('Cannot import resource "%s" from "%s".',$this->varToString($resource),$this->varToString($sourceResource));
$message .= sprintf('Cannot import resource "%s" from "%s".', $this->varToString($resource), $this->varToString($sourceResource));
}

// Is the resource located inside a bundle?
if ('@' === $resource[0]) {
$parts = explode(DIRECTORY_SEPARATOR, $resource);
$bundle = substr($parts[0], 1);
$message .= ' '.sprintf('Make sure the "%s" bundle is correctly registered and loaded in the application kernel class.',$bundle);
$message .= ' '.sprintf('Make sure the "%s" bundle is correctly registered and loaded in the application kernel class.', $bundle);
}

parent::__construct($message, $code, $previous);
Expand Down

0 comments on commit 2b17676

Please sign in to comment.