Skip to content

Commit f39aee3

Browse files
committed
Add missing dots at the end of exception messages
1 parent f4f54a2 commit f39aee3

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Data/Bundle/Compiler/GenrbCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct($genrb = 'genrb', $envVars = '')
3737
exec('which '.$genrb, $output, $status);
3838

3939
if (0 !== $status) {
40-
throw new RuntimeException(sprintf('The command "%s" is not installed', $genrb));
40+
throw new RuntimeException(sprintf('The command "%s" is not installed.', $genrb));
4141
}
4242

4343
$this->genrb = ($envVars ? $envVars.' ' : '').$genrb;

Data/Bundle/Reader/JsonBundleReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function read($path, $locale)
4646
$data = json_decode(file_get_contents($fileName), true);
4747

4848
if (null === $data) {
49-
throw new RuntimeException(sprintf('The resource bundle "%s" contains invalid JSON: %s', $fileName, json_last_error_msg()));
49+
throw new RuntimeException(sprintf('The resource bundle "%s" contains invalid JSON: %s.', $fileName, json_last_error_msg()));
5050
}
5151

5252
return $data;

Data/Generator/LocaleDataGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private function generateLocaleName(BundleEntryReaderInterface $reader, $tempDir
160160
// i.e. in de_AT, "AT" is the region
161161
if ($region = \Locale::getRegion($locale)) {
162162
if (!RegionDataGenerator::isValidCountryCode($region)) {
163-
throw new MissingResourceException('Skipping "'.$locale.'" due an invalid country.');
163+
throw new MissingResourceException(sprintf('Skipping "%s" due an invalid country.', $locale));
164164
}
165165

166166
$extras[] = str_replace(['(', ')'], ['[', ']'], $reader->readEntry($tempDir.'/region', $displayLocale, ['Countries', $region]));

DateFormatter/DateFormat/FullTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function formatReplace($dateChars, $dateTime)
121121

122122
// handle unimplemented characters
123123
if (false !== strpos($this->notImplementedChars, $dateChars[0])) {
124-
throw new NotImplementedException(sprintf('Unimplemented date character "%s" in format "%s"', $dateChars[0], $this->pattern));
124+
throw new NotImplementedException(sprintf('Unimplemented date character "%s" in format "%s".', $dateChars[0], $this->pattern));
125125
}
126126

127127
return null;

Globals/IntlGlobals.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public static function getErrorName($code)
118118
public static function setError($code, $message = '')
119119
{
120120
if (!isset(self::$errorCodes[$code])) {
121-
throw new \InvalidArgumentException(sprintf('No such error code: "%s"', $code));
121+
throw new \InvalidArgumentException(sprintf('No such error code: "%s".', $code));
122122
}
123123

124124
self::$errorMessage = $message ? sprintf('%s: %s', $message, self::$errorCodes[$code]) : self::$errorCodes[$code];

NumberFormatter/NumberFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public function format($value, $type = self::TYPE_DEFAULT)
363363
}
364364

365365
if (self::CURRENCY === $this->style) {
366-
throw new NotImplementedException(sprintf('%s() method does not support the formatting of currencies (instance with CURRENCY style). %s', __METHOD__, NotImplementedException::INTL_INSTALL_MESSAGE));
366+
throw new NotImplementedException(sprintf('%s() method does not support the formatting of currencies (instance with CURRENCY style). %s.', __METHOD__, NotImplementedException::INTL_INSTALL_MESSAGE));
367367
}
368368

369369
// Only the default type is supported.

0 commit comments

Comments
 (0)