mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 09:54:33 +02:00
Fixed phpstan issue
This commit is contained in:
parent
a6fd4547a7
commit
ddbf8b7725
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class StructuralEntityChoiceHelper
|
||||||
public function generateChoiceAttrCurrency(Currency $choice, Options|array $options): array
|
public function generateChoiceAttrCurrency(Currency $choice, Options|array $options): array
|
||||||
{
|
{
|
||||||
$tmp = $this->generateChoiceAttr($choice, $options);
|
$tmp = $this->generateChoiceAttr($choice, $options);
|
||||||
$symbol = $choice->getIsoCode() === null || $choice->getIsoCode() === '' ? null : Currencies::getSymbol($choice->getIsoCode());
|
$symbol = empty($choice->getIsoCode()) ? null : Currencies::getSymbol($choice->getIsoCode());
|
||||||
$tmp['data-short'] = $options['short'] ? $symbol : $choice->getName();
|
$tmp['data-short'] = $options['short'] ? $symbol : $choice->getName();
|
||||||
|
|
||||||
return $tmp + [
|
return $tmp + [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue