Skip to content

Commit

Permalink
Fix linter error in Kata 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Dranoel2 committed Jun 24, 2024
1 parent 2223e48 commit c527419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/Kata4.spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
*/
function isArraySorted($array): bool
{
$i=0;
$i = 0;
$total_elements = count($array);
while ($total_elements > 1) {
if ($array[$i] <= $array[$i+1]) {
if ($array[$i] <= $array[$i + 1]) {
$i++;
$total_elements--;
} else {
Expand Down

0 comments on commit c527419

Please sign in to comment.