Skip to content

Commit 5fb2742

Browse files
committed
minor #14005 CS: Convert double quotes to single quotes (keradus)
This PR was merged into the 2.3 branch. Discussion ---------- CS: Convert double quotes to single quotes | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A Changes generated automatically by upcoming PHP CS Fixer. To keep fabbot.io happy ;) Commits ------- f99c22c CS: Convert double quotes to single quotes
2 parents cab88d4 + 307c079 commit 5fb2742

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Loader/MoFileLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private function parse($resource)
8888
$stat = fstat($stream);
8989

9090
if ($stat['size'] < self::MO_HEADER_SIZE) {
91-
throw new InvalidResourceException("MO stream content has an invalid format.");
91+
throw new InvalidResourceException('MO stream content has an invalid format.');
9292
}
9393
$magic = unpack('V1', fread($stream, 4));
9494
$magic = hexdec(substr(dechex(current($magic)), -8));
@@ -98,7 +98,7 @@ private function parse($resource)
9898
} elseif ($magic == self::MO_BIG_ENDIAN_MAGIC) {
9999
$isBigEndian = true;
100100
} else {
101-
throw new InvalidResourceException("MO stream content has an invalid format.");
101+
throw new InvalidResourceException('MO stream content has an invalid format.');
102102
}
103103

104104
// formatRevision

PluralizationRules.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ class PluralizationRules
3131
*/
3232
public static function get($number, $locale)
3333
{
34-
if ("pt_BR" == $locale) {
34+
if ('pt_BR' == $locale) {
3535
// temporary set a locale for brazilian
36-
$locale = "xbr";
36+
$locale = 'xbr';
3737
}
3838

3939
if (strlen($locale) > 3) {
@@ -197,9 +197,9 @@ public static function get($number, $locale)
197197
*/
198198
public static function set($rule, $locale)
199199
{
200-
if ("pt_BR" == $locale) {
200+
if ('pt_BR' == $locale) {
201201
// temporary set a locale for brazilian
202-
$locale = "xbr";
202+
$locale = 'xbr';
203203
}
204204

205205
if (strlen($locale) > 3) {

0 commit comments

Comments
 (0)