| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 8 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | public static function fileIsTooBig(string $path)  | 
            ||
| 17 |     { | 
            ||
| 18 | $fileSize = File::getHumanReadableSize(filesize($path));  | 
            ||
| 19 | |||
| 20 |         $maxFileSize = File::getHumanReadableSize(config('laravel-medialibrary.max_file_size')); | 
            ||
| 21 | |||
| 22 |         return new static("File `{$path}` has a size of {$fileSize} which is greater than the maximum allowed {$maxFileSize}"); | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 52 |