Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2022-08-14 19:32:53 +02:00
parent eef26f7ae6
commit 639829f5c5
97 changed files with 305 additions and 185 deletions

View file

@ -30,6 +30,8 @@ use InvalidArgumentException;
use LogicException;
use Symfony\Component\Validator\Constraints as Assert;
use function sprintf;
/**
* @ORM\Entity()
* @ORM\Table("parameters")
@ -376,7 +378,7 @@ abstract class AbstractParameter extends AbstractNamedDBElement
*/
protected function formatWithUnit(float $value, string $format = '%g'): string
{
$str = \sprintf($format, $value);
$str = sprintf($format, $value);
if (!empty($this->unit)) {
return $str.' '.$this->unit;
}