mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +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
|
@ -394,7 +394,7 @@ abstract class AbstractParameter extends AbstractNamedDBElement
|
|||
protected function formatWithUnit(float $value, string $format = '%g'): string
|
||||
{
|
||||
$str = sprintf($format, $value);
|
||||
if (!empty($this->unit)) {
|
||||
if ($this->unit !== '') {
|
||||
return $str.' '.$this->unit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue