From e91bc0e8fae6e851d7cc5ad7f2965e427b60cdc1 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 17 Mar 2024 22:09:13 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php | 1 + src/Phug/Util/Util/SandBox.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php b/src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php index 42a69d84..b67f14bb 100644 --- a/src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php +++ b/src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php @@ -229,6 +229,7 @@ private function isStdOutATTY() } $stat = @fstat(STDOUT); + // Check if formatted mode is S_IFCHR return $stat ? 0020000 === ($stat['mode'] & 0170000) : false; } diff --git a/src/Phug/Util/Util/SandBox.php b/src/Phug/Util/Util/SandBox.php index fccbe5f8..2ae952af 100644 --- a/src/Phug/Util/Util/SandBox.php +++ b/src/Phug/Util/Util/SandBox.php @@ -33,6 +33,7 @@ public function __construct(callable $action, callable $errorInterceptor = null) return false; }); ob_start(); + // @codeCoverageIgnoreStart try { $this->result = $action();