Skip to content

Commit

Permalink
Code quality fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers authored Nov 5, 2024
1 parent 441bdf4 commit 5db08af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

use DirectoryIterator;
use FilesystemIterator;
use Illuminate\Filesystem\Filesystem as FilesystemBase;
use InvalidArgumentException;
use ReflectionClass;
use Winter\Storm\Support\Facades\Config;
use Illuminate\Filesystem\Filesystem as FilesystemBase;

/**
* File helper
Expand Down Expand Up @@ -118,13 +119,13 @@ public function sizeToBytes(string $size): string
// No multiplication needed; already in bytes
break;
default:
throw new \InvalidArgumentException("Unknown size unit '$unit'");
throw new InvalidArgumentException("Unknown size unit '$unit'");
}

return (string) $value;
}

throw new \InvalidArgumentException("Invalid size format '$size'");
throw new InvalidArgumentException("Invalid size format '$size'");
}

/**
Expand Down

0 comments on commit 5db08af

Please sign in to comment.