chore: remove superfluous condition

This commit is contained in:
Björn Fromme
2025-03-26 14:20:19 +01:00
parent 4947c19edb
commit 28b757fb15
+2 -4
View File
@@ -5,6 +5,7 @@ namespace App\Service\Assignment;
use App\Entity\Assignment;
use App\Model\TimelineItem;
use Carbon\CarbonPeriod;
use function Symfony\Component\String\b;
class TimelineService
{
@@ -59,10 +60,7 @@ class TimelineService
$fitsRow = true;
foreach ($row as $entry) {
/** @var TimelineItem $entry */
if (
isset($row[$item->getKey()]) ||
$entry->getDateTo() >= $item->getDateFrom() && $entry->getDateFrom() <= $item->getDateTo()
) {
if ($entry->getDateTo() >= $item->getDateFrom() && $entry->getDateFrom() <= $item->getDateTo()) {
$fitsRow = false;
}
}