Skip to content

Commit

Permalink
Remove unused function and update formatting
Browse files Browse the repository at this point in the history
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
  • Loading branch information
koriym committed May 23, 2024
1 parent 1bd4504 commit 41750da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/CompileVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 1 addition & 2 deletions src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 41750da

Please sign in to comment.