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

Commit 14c6504

Browse files
committed
Merge branch 'improvement/18'
Close #18
2 parents 633c604 + aaf4017 commit 14c6504

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Figlet/Figlet.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,11 +1087,11 @@ protected function _loadFont($fontFile)
10871087
}
10881088

10891089
// Convert it if required
1090-
if (substr($uniCode, 0, 2) === '0x') {
1090+
if (0 === strpos($uniCode, '0x')) {
10911091
$uniCode = hexdec(substr($uniCode, 2));
1092-
} elseif (substr($uniCode, 0, 1) === '0' and
1092+
} elseif (0 === strpos($uniCode, '0') &&
10931093
$uniCode !== '0' or
1094-
substr($uniCode, 0, 2) === '-0') {
1094+
0 === strpos($uniCode, '-0')) {
10951095
$uniCode = octdec($uniCode);
10961096
} else {
10971097
$uniCode = (int) $uniCode;

0 commit comments

Comments
 (0)