Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 2 |
1 | <?php namespace Modules\Media\Validators; |
||
10 | public function validateMaxSize($attribute, UploadedFile $value, $parameters) |
||
11 | { |
||
12 | $mediaPath = public_path(config('asgard.media.config.files-path')); |
||
13 | $folderSize = $this->getDirSize($mediaPath); |
||
14 | |||
15 | preg_match('/([0-9]+)/', $folderSize, $match); |
||
16 | |||
17 | return ($match[0] + $value->getSize()) < config('asgard.media.config.max-total-size'); |
||
18 | } |
||
19 | |||
35 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.