chore: code cleanup

This commit is contained in:
Björn Fromme
2025-06-24 09:13:55 +02:00
parent bdc7e1b7ba
commit 7cb2037f76
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -9,7 +9,6 @@ use App\Entity\Traits\TimestampableEntity;
use App\Repository\DestinationRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: DestinationRepository::class)]
class Destination implements TimestampableEntityInterface, SoftDeletableEntityInterface, BlameableEntityInterface
@@ -58,7 +57,8 @@ class Destination implements TimestampableEntityInterface, SoftDeletableEntityIn
public function __toString(): string
{
return sprintf('%s - %s %s',
return sprintf(
'%s - %s %s',
$this->getDateFrom()->format('d.m.y'),
$this->getDateTo()->format('d.m.y'),
$this->getProduct()
-2
View File
@@ -3,10 +3,8 @@
namespace App\Entity;
use App\Entity\Traits\BlameableEntity;
use App\Entity\Traits\SoftDeletableEntity;
use App\Entity\Traits\TimestampableEntity;
use App\Repository\DispositionRepository;
use Carbon\Carbon;
use Carbon\CarbonPeriod;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;