Skip to content

Commit

Permalink
Remvoe php7 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Jul 18, 2024
1 parent d033d47 commit d84b055
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/org/openpsa/invoices/handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ trait org_openpsa_invoices_handler
public function get_vat_options(string $percentages) : array
{
$values = [];
if ($vat_array = explode(',', $percentages)) {
foreach ($vat_array as $entry) {
$values[$entry] = "{$entry}%";
}
foreach (explode(',', $percentages) as $entry) {
$values[$entry] = "{$entry}%";
}
return $values;
}
Expand Down

0 comments on commit d84b055

Please sign in to comment.