| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function doesImageWithUrlExist(string $imageUrl, string $liipImagineFilter): bool |
||
| 33 | { |
||
| 34 | $imageUrl = str_replace($liipImagineFilter . '/', '', substr($imageUrl, strpos($imageUrl, $liipImagineFilter), strlen($imageUrl))); |
||
| 35 | |||
| 36 | $browserImagePath = $this->filterService->getUrlOfFilteredImage($imageUrl, $liipImagineFilter); |
||
| 37 | |||
| 38 | return file_exists($this->mediaRootPath . parse_url($browserImagePath, PHP_URL_PATH)); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |