@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use IrishDan\ResponsiveImageBundle\Event\ImageEvent; |
| 15 | 15 | use IrishDan\ResponsiveImageBundle\Event\ImageEvents; |
| 16 | 16 | use IrishDan\ResponsiveImageBundle\ImageProcessing\ImageManager; |
| 17 | - |
|
| 18 | 17 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 19 | 18 | |
| 20 | 19 | /** |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use IrishDan\ResponsiveImageBundle\Event\UploaderEvent; |
| 14 | 14 | use IrishDan\ResponsiveImageBundle\Event\UploaderEvents; |
| 15 | 15 | use League\Flysystem\FilesystemInterface; |
| 16 | - |
|
| 17 | 16 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -123,8 +123,7 @@ |
||
| 123 | 123 | { |
| 124 | 124 | if (!empty($style)) { |
| 125 | 125 | $path = $this->styleManager->getStylePath($image, $style); |
| 126 | - } |
|
| 127 | - else { |
|
| 126 | + } else { |
|
| 128 | 127 | $path = $image->getPath(); |
| 129 | 128 | } |
| 130 | 129 | $this->fileSystem->delete($path); |