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