Skip to content

Commit

Permalink
Simplify conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Feb 14, 2025
1 parent e18fe9a commit 205c677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CoreBundle/ServiceHelper/AccessUrlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ public function getCurrent(): ?AccessUrl
return $accessUrl;
}

$accessUrl = $this->getFirstAccessUrl();

if ('cli' === PHP_SAPI) {
return $this->getFirstAccessUrl();
return $accessUrl;
}

$accessUrl = $this->getFirstAccessUrl();

if ($this->isMultiple()) {
$request = $this->requestStack->getMainRequest();

Expand Down

0 comments on commit 205c677

Please # to comment.