| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function calculateWidthsFromFile(string $imagePath): Collection |
||
| 12 | { |
||
| 13 | $image = Image::load($imagePath); |
||
| 14 | |||
| 15 | $width = $image->getWidth(); |
||
| 16 | $height = $image->getHeight(); |
||
| 17 | $fileSize = filesize($imagePath); |
||
| 18 | |||
| 19 | return $this->calculateWidths($fileSize, $width, $height); |
||
| 20 | } |
||
| 21 | |||
| 60 |