Skip to content

Commit 43695f8

Browse files
committed
refactor: Optimize file path concatenation and remove unused imports in LoopOperations
1 parent a5dfd2a commit 43695f8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Handlers/File/FileOperationHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private function removeDirectoryRecursive(string $dir): void
240240

241241
$files = array_diff(scandir($dir), ['.', '..']);
242242
foreach ($files as $file) {
243-
$path = $dir . DIRECTORY_SEPARATOR . $file;
243+
$path = $dir.DIRECTORY_SEPARATOR.$file;
244244
if (is_dir($path)) {
245245
$this->removeDirectoryRecursive($path);
246246
} else {

src/LoopOperations.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
use Rcalicdan\FiberAsync\Contracts\PromiseInterface;
77
use Rcalicdan\FiberAsync\Handlers\LoopOperations\BenchmarkHandler;
88
use Rcalicdan\FiberAsync\Handlers\LoopOperations\ConcurrentExecutionHandler;
9-
use Rcalicdan\FiberAsync\Handlers\LoopOperations\HttpExecutionHandler;
109
use Rcalicdan\FiberAsync\Handlers\LoopOperations\LoopExecutionHandler;
1110
use Rcalicdan\FiberAsync\Handlers\LoopOperations\TaskExecutionHandler;
1211
use Rcalicdan\FiberAsync\Handlers\LoopOperations\TimeoutHandler;
13-
use Rcalicdan\FiberAsync\Http\Response;
1412

1513
/**
1614
* High-level operations that manage the event loop lifecycle automatically.

0 commit comments

Comments
 (0)