Skip to content

Commit

Permalink
support under php 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
PyaeSoneAungRgn committed Sep 4, 2022
1 parent 2e0e0a2 commit e4fde21
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Support/LaravelMyanmarTools/Nrc.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,8 @@ public function normalizeNrc(string $lang = 'en'): string
protected function convert(string $nrc, string $type): string
{
$nrc = str_replace(static::NAING, static::N, strtoupper($nrc));
$en = [
...static::EN_TYPES,
...static::EN_NUMS,
...static::EN_CHARS
];
$mm = [
...static::MM_TYPES,
...static::MM_NUMS,
...static::MM_CHARS
];
$en = array_merge(static::EN_TYPES, static::EN_NUMS, static::EN_CHARS);
$mm = array_merge(static::MM_TYPES, static::MM_NUMS, static::MM_CHARS);
if ($type == static::EN_TO_MM) {
$en = array_reverse($en);
$mm = array_reverse($mm);
Expand Down

0 comments on commit e4fde21

Please sign in to comment.