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