Skip to content

Commit f9ad42e

Browse files
CS fixes
1 parent a5465e2 commit f9ad42e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/emoji/build.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static function saveRules(iterable $rulesByLocale): void
173173
file_put_contents(self::TARGET_DIR."/emoji-$locale.php", "<?php\n\nreturn ".VarExporter::export($rules).";\n");
174174

175175
foreach ($rules as $k => $v) {
176-
for ($i = 0; \ord($k[$i]) < 128 || "\xC2" === $k[$i]; ++$i) {
176+
for ($i = 0; ord($k[$i]) < 128 || "\xC2" === $k[$i]; ++$i) {
177177
}
178178
for ($j = $i; isset($k[$j]) && !isset($firstChars[$k[$j]]); ++$j) {
179179
}
@@ -189,7 +189,7 @@ public static function saveRules(iterable $rulesByLocale): void
189189

190190
$quickCheck = '"'.str_replace('%', '\\x', rawurlencode(implode('', $firstChars))).'"';
191191

192-
$file = \dirname(__DIR__, 2).'/Transliterator/EmojiTransliterator.php';
192+
$file = dirname(__DIR__, 2).'/Transliterator/EmojiTransliterator.php';
193193
file_put_contents($file, preg_replace('/QUICK_CHECK = .*;/m', "QUICK_CHECK = {$quickCheck};", file_get_contents($file)));
194194
}
195195

0 commit comments

Comments
 (0)