From adee1d5772187d4edd2092df111d3976a37dcc70 Mon Sep 17 00:00:00 2001 From: Yaakov Saxon Date: Fri, 27 Oct 2023 11:09:39 -0400 Subject: [PATCH] minor fabbot code style improvements --- src/Extension/SandboxExtension.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Extension/SandboxExtension.php b/src/Extension/SandboxExtension.php index 7705ffb688a..2230810359f 100644 --- a/src/Extension/SandboxExtension.php +++ b/src/Extension/SandboxExtension.php @@ -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); }