Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'improvement/18'
Browse files Browse the repository at this point in the history
Close #18
  • Loading branch information
michalbundyra committed Oct 16, 2019
2 parents 633c604 + aaf4017 commit 14c6504
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Figlet/Figlet.php
Original file line number Diff line number Diff line change
Expand Up @@ -1087,11 +1087,11 @@ protected function _loadFont($fontFile)
}

// Convert it if required
if (substr($uniCode, 0, 2) === '0x') {
if (0 === strpos($uniCode, '0x')) {
$uniCode = hexdec(substr($uniCode, 2));
} elseif (substr($uniCode, 0, 1) === '0' and
} elseif (0 === strpos($uniCode, '0') &&
$uniCode !== '0' or
substr($uniCode, 0, 2) === '-0') {
0 === strpos($uniCode, '-0')) {
$uniCode = octdec($uniCode);
} else {
$uniCode = (int) $uniCode;
Expand Down

0 comments on commit 14c6504

Please sign in to comment.