getTaskKind() && null !== $task->getStartDate()) { $task->setEndDate(clone $task->getStartDate()); } } }