From b0999368e2a54caf78babfb9b3a7256f61143d79 Mon Sep 17 00:00:00 2001 From: Jan Decavele Date: Wed, 23 Jul 2014 18:49:56 +0200 Subject: [PATCH] - Removed spaces around the concation dots to be more consitent - adjusted some formatting --- .../Config/Exception/FileLoaderLoadException.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Symfony/Component/Config/Exception/FileLoaderLoadException.php b/src/Symfony/Component/Config/Exception/FileLoaderLoadException.php index 627323bb4a..6b4ea86955 100644 --- a/src/Symfony/Component/Config/Exception/FileLoaderLoadException.php +++ b/src/Symfony/Component/Config/Exception/FileLoaderLoadException.php @@ -33,9 +33,9 @@ class FileLoaderLoadException extends \Exception // Trim the trailing period of the previous message. We only want 1 period remove so no rtrim... if ('.' === substr($previous->getMessage(), -1)) { $trimmedMessage = substr($previous->getMessage(), 0, -1); - $message .= sprintf('%s', $trimmedMessage) . ' in '; + $message .= sprintf('%s', $trimmedMessage).' in '; } else { - $message .= sprintf('%s', $previous->getMessage()) . ' in '; + $message .= sprintf('%s', $previous->getMessage()).' in '; } $message .= $resource . ' '; @@ -43,10 +43,7 @@ class FileLoaderLoadException extends \Exception 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 .= '.'; @@ -61,7 +58,7 @@ class FileLoaderLoadException extends \Exception 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);