Skip to content

Commit

Permalink
minor fabbot code style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
YSaxon committed Oct 27, 2023
1 parent cbbf38b commit adee1d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Extension/SandboxExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ public function isSandboxedGlobally()
return $this->sandboxedGlobally;
}

private function isSourceSandboxed(?Source $source) : bool
private function isSourceSandboxed(?Source $source): bool
{
if ($source === null || $this->sourcePolicy === null) {
if (null === $source || null === $this->sourcePolicy) {
return false;
}

return $this->sourcePolicy->enableSandbox($source);
}

Expand Down

0 comments on commit adee1d5

Please sign in to comment.