Skip to content

Commit

Permalink
Debug cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Sep 25, 2024
1 parent cfdd515 commit b342cda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\FilesystemOperationFailed;
use League\Flysystem\StorageAttributes;

class ExceptionThrowingFilesystemAdapter implements FilesystemAdapter
{
Expand Down Expand Up @@ -52,6 +53,13 @@ public function fileExists(string $path): bool
return $this->adapter->fileExists($path);
}

public function metadata(string $path, Config $config): StorageAttributes
{
$this->throwStagedException(__METHOD__, $path);

return $this->adapter->metadata($path);
}

public function write(string $path, string $contents, Config $config): void
{
$this->throwStagedException(__METHOD__, $path);
Expand Down
1 change: 0 additions & 1 deletion src/Ftp/FtpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
use function ftp_close;
use function is_string;
use function preg_match;
use function var_dump;

class FtpAdapter implements FilesystemAdapter
{
Expand Down
2 changes: 0 additions & 2 deletions src/Local/LocalFilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use function sprintf;
use function str_replace;
use function substr;
use function var_dump;
use const DIRECTORY_SEPARATOR;
use const LOCK_EX;
use DirectoryIterator;
Expand Down Expand Up @@ -240,7 +239,6 @@ public function listContents(string $path, bool $deep): iterable

private function mapFileInfo(SplFileInfo $fileInfo): StorageAttributes | false {
$pathName = $fileInfo->getPathname();
var_dump($fileInfo->isLink(), $this->linkHandling & self::SKIP_LINKS);

if ($fileInfo->isLink()) {
if ($this->linkHandling & self::SKIP_LINKS) {
Expand Down

0 comments on commit b342cda

Please sign in to comment.