Skip to content

Commit 148e787

Browse files
committed
adding curly brackets
1 parent fe21917 commit 148e787

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/jblond/Diff/Renderer/Html/HtmlArray.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ public function mbSubstrReplace($string, $replacement, $start, $length = null)
8686
// $start
8787
if (is_array($start)) {
8888
$start = array_slice($start, 0, $num);
89-
foreach ($start as $key => $value)
89+
foreach ($start as $key => $value) {
9090
$start[$key] = is_int($value) ? $value : 0;
91+
}
9192
} else {
9293
$start = array_pad(array($start), $num, $start);
9394
}
@@ -96,8 +97,9 @@ public function mbSubstrReplace($string, $replacement, $start, $length = null)
9697
$length = array_fill(0, $num, 0);
9798
} elseif (is_array($length)) {
9899
$length = array_slice($length, 0, $num);
99-
foreach ($length as $key => $value)
100+
foreach ($length as $key => $value) {
100101
$length[$key] = isset($value) ? (is_int($value) ? $value : $num) : 0;
102+
}
101103
} else {
102104
$length = array_pad(array($length), $num, $length);
103105
}

0 commit comments

Comments
 (0)