Skip to content

Commit

Permalink
Fix CS-Fixer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
elazar committed Aug 14, 2024
1 parent 455d3c2 commit cf7ad77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/StreamWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,14 @@ public function url_stat(string $path, int $flags)

if ($filesystem->fileExists($path)) {
$mode = 0100000 | $visibility->forFile(
$filesystem->visibility($path)
);
$filesystem->visibility($path)
);
$size = $filesystem->fileSize($path);
$mtime = $filesystem->lastModified($path);
} else if ($filesystem->directoryExists($path)) {
} elseif ($filesystem->directoryExists($path)) {
$mode = 0040000 | $visibility->forDirectory(
$filesystem->visibility($path)
);
$filesystem->visibility($path)
);
$size = 0;
$mtime = $filesystem->lastModified($path);
} else {
Expand Down
3 changes: 1 addition & 2 deletions tests/TestInMemoryFilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(
) {
$this->adapter = new InMemoryFilesystemAdapter(
$defaultVisibility,
$mimeTypeDetector ?? new FinfoMimeTypeDetector,
$mimeTypeDetector ?? new FinfoMimeTypeDetector(),
);
$this->directories = [];
}
Expand Down Expand Up @@ -153,4 +153,3 @@ private function preparePath(string $path): string
return '/' . trim($path, '/') . '/';
}
}

0 comments on commit cf7ad77

Please sign in to comment.