Skip to content

Commit

Permalink
Merge pull request #93 from voku/analysis-a6GjMm
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
voku authored Nov 21, 2024
2 parents 74c3ce8 + 10ae7a4 commit c791670
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/voku/helper/ASCII.php
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,6 @@ public static function to_transliterate(
$str_tmp = \transliterator_transliterate($TRANSLITERATOR, $str);

if ($str_tmp !== false) {

// check again, if we only have ASCII, now ...
if (
$str_tmp !== $str
Expand Down Expand Up @@ -1285,7 +1284,6 @@ public static function to_transliterate(
$new_char = $ord & 255;

if (isset($UTF8_TO_TRANSLIT[$bank][$new_char])) {

// keep for debugging
/*
echo "file: " . sprintf('x%02x', $bank) . "\n";
Expand Down Expand Up @@ -1313,7 +1311,6 @@ public static function to_transliterate(
$c = $new_char;
}
} else {

// keep for debugging missing chars
/*
echo "file: " . sprintf('x%02x', $bank) . "\n";
Expand Down
1 change: 0 additions & 1 deletion tests/TransliterateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public function testToTransliterate()
{
$testsStrict = [];
if (\extension_loaded('intl') === true) {

// ---

$testString = \file_get_contents(__DIR__ . '/fixtures/sample-unicode-chart.txt');
Expand Down

0 comments on commit c791670

Please sign in to comment.