mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Added declare strict types to all files
This commit is contained in:
parent
bea90a7d94
commit
6a2ff9d153
196 changed files with 685 additions and 360 deletions
|
@ -68,7 +68,7 @@ class LogEntryExtraFormatter
|
|||
$str .= '<error>'.$this->translator->trans($key).'</error>: ';
|
||||
}
|
||||
$str .= $value;
|
||||
if (!empty($str)) {
|
||||
if ($str !== '') {
|
||||
$tmp[] = $str;
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ class LogEntryExtraFormatter
|
|||
$str .= '<b>'.$this->translator->trans($key).'</b>: ';
|
||||
}
|
||||
$str .= $value;
|
||||
if (!empty($str)) {
|
||||
if ($str !== '') {
|
||||
$tmp[] = $str;
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ class LogEntryExtraFormatter
|
|||
$context->getNewStock(),
|
||||
($context->getNewStock() > $context->getOldStock() ? '+' : '-'). $context->getChangeAmount(),
|
||||
);
|
||||
if (!empty($context->getComment())) {
|
||||
if ($context->getComment() !== '') {
|
||||
$array['log.part_stock_changed.comment'] = htmlspecialchars($context->getComment());
|
||||
}
|
||||
if ($context->getInstockChangeType() === PartStockChangedLogEntry::TYPE_MOVE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue