Skip to content

Commit

Permalink
improved code readability
Browse files Browse the repository at this point in the history
Co-authored-by: Mostafa Khudair <59371810+mostafakhudair@users.noreply.github.com>
  • Loading branch information
CosDiabos and mostafakhudair committed Nov 1, 2024
1 parent a1bc04c commit e1631ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions system/View/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,15 @@ protected function parse(string $template, array $data = [], ?array $options = n

if (is_array($val)) {
$escape = false;
$replacePairsStack[] = ['replace' => $this->parsePair($key, $val, $template), 'escape' => $escape];
$replacePairsStack[] = [
'replace' => $this->parsePair($key, $val, $template),
'escape' => $escape,
];
} else {
$replaceSingleStack[] = ['replace' => $this->parseSingle($key, (string) $val), 'escape' => $escape];
$replaceSingleStack[] = [
'replace' => $this->parseSingle($key, (string) $val),
'escape' => $escape,
];
}
}

Expand Down

0 comments on commit e1631ef

Please sign in to comment.