From 41750da6d7c5072bc516a88922b5a9957629441f Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Thu, 23 May 2024 16:02:23 +0900 Subject: [PATCH] Remove unused function and update formatting An unused function was found within the Compiler.php file and has been removed. Additionally, the code formatting was improved in both Compiler.php and CompileVisitor.php files to adhere the coding standards --- src/CompileVisitor.php | 3 ++- src/Compiler.php | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CompileVisitor.php b/src/CompileVisitor.php index eab7f1d..a052bc3 100644 --- a/src/CompileVisitor.php +++ b/src/CompileVisitor.php @@ -119,7 +119,8 @@ public function visitSetterMethod(string $method, Arguments $arguments): void } /** @inheritDoc */ - public function visitArguments(array $arguments): void { + public function visitArguments(array $arguments): void + { foreach ($arguments as $argument) { $argument->accept($this); } diff --git a/src/Compiler.php b/src/Compiler.php index 433d6d3..567d153 100644 --- a/src/Compiler.php +++ b/src/Compiler.php @@ -14,7 +14,6 @@ use function fclose; use function flock; use function fopen; -use function is_resource; use function is_string; use const LOCK_EX; @@ -31,7 +30,7 @@ public function compile(AbstractModule $module, string $scriptDir): Scripts { // Lock $fp = fopen($scriptDir . '/compile.lock', 'a+'); - if ($fp === false || !flock($fp, LOCK_EX)) { + if ($fp === false || ! flock($fp, LOCK_EX)) { // @CoverageIgnoreStart throw new CompileLockFailed($scriptDir); // @CoverageIgnoreEnd