8000 - Removed spaces around the concation dots to be more consitent · symfony/symfony@b099936 · GitHub
[go: up one dir, main page]

Skip to content

Commit b099936

Browse files
committed
- Removed spaces around the concation dots to be more consitent
- adjusted some formatting
1 parent 0459d89 commit b099936

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/Symfony/Component/Config/Exception/FileLoaderLoadException.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,17 @@ public function __construct($resource, $sourceResource = null, $code = null, $pr
3333
// Trim the trailing period of the previous message. We only want 1 period remove so no rtrim...
3434
if ('.' === substr($previous->getMessage(), -1)) {
3535
$trimmedMessage = substr($previous->getMessage(), 0, -1);
36-
$message .= sprintf('%s', $trimmedMessage) . ' in ';
36+
$message .= sprintf('%s', $trimmedMessage).' in ';
3737
} else {
38-
$message .= sprintf('%s', $previous->getMessage()) . ' in ';
38+
$message .= sprintf('%s', $previous->getMessage()).' in ';
3939
}
4040
$message .= $resource . ' ';
4141

4242
// show tweaked trace to complete the human readable sentence
4343
if (null === $sourceResource) {
4444
$message .= sprintf('(which is loaded in resource "%s")', $this->varToString($resource));
4545
} else {
46-
$message .= sprintf(
47-
'(which is being imported from "%s")',
48-
$this->varToString($sourceResource)
49-
);
46+
$message .= sprintf('(which is being imported from "%s")',$this->varToString($sourceResource));
5047
}
5148
$message .= '.';
5249

@@ -61,7 +58,7 @@ public function __construct($resource, $sourceResource = null, $code = null, $pr
6158
if ('@' === $resource[0]) {
6259
$parts = explode(DIRECTORY_SEPARATOR, $resource);
6360
$bundle = substr($parts[0], 1);
64-
$message .= ' ' . sprintf('Make sure the "%s" bundle is correctly registered and loaded in the application kernel class.',$bundle);
61+
$message .= ' '.sprintf('Make sure the "%s" bundle is correctly registered and loaded in the application kernel class.',$bundle);
6562
}
6663

6764
parent::__construct($message, $code, $previous);

0 commit comments

Comments
 (0)
0