chore: remove superfluous condition
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user