Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
style(CFBinaryPropertyList): curly braces on arrays
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Aug 13, 2020
1 parent df97f53 commit 33a4def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CFPropertyList/CFBinaryPropertyList.php
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ public function toBinary()
protected static function binaryStrlen($val)
{
for ($i=0; $i<strlen($val); ++$i) {
if (ord($val{$i}) >= 128) {
if (ord($val[$i]) >= 128) {
$val = self::convertCharset($val, 'UTF-8', 'UTF-16BE');
return strlen($val);
}
Expand All @@ -965,7 +965,7 @@ public function stringToBinary($val)
$utf16 = false;

for ($i=0; $i<strlen($val); ++$i) {
if (ord($val{$i}) >= 128) {
if (ord($val[$i]) >= 128) {
$utf16 = true;
break;
}
Expand Down

0 comments on commit 33a4def

Please sign in to comment.