mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-10 23:39:43 +00:00
phpstan boolean corrections
This commit is contained in:
@@ -83,7 +83,7 @@ final class ActivityController extends AbstractController
|
||||
|
||||
$activity = $this->activityRepository->find($id);
|
||||
|
||||
if (!$activity) {
|
||||
if (null === $activity) {
|
||||
throw $this->createNotFoundException('Unable to find Activity entity.');
|
||||
}
|
||||
|
||||
@@ -106,9 +106,9 @@ final class ActivityController extends AbstractController
|
||||
$this->logger->notice('An activity has been removed', [
|
||||
'by_user' => $this->getUser()->getUserIdentifier(),
|
||||
'activity_id' => $activity->getId(),
|
||||
'person_id' => $activity->getPerson() ? $activity->getPerson()->getId() : null,
|
||||
'comment' => $activity->getComment()->getComment(),
|
||||
'scope_id' => $activity->getScope() ? $activity->getScope()->getId() : null,
|
||||
'person_id' => null === $activity->getPerson() ? $activity->getPerson()->getId() : null,
|
||||
'comment' => null === $activity->getComment()->getComment(),
|
||||
'scope_id' => null === $activity->getScope() ? $activity->getScope()->getId() : null,
|
||||
'reasons_ids' => $activity->getReasons()
|
||||
->map(
|
||||
static fn (ActivityReason $ar): int => $ar->getId()
|
||||
|
Reference in New Issue
Block a user