@@ 842-850 (lines=9) @@ | ||
839 | $this->setExtension(pathinfo($image, PATHINFO_EXTENSION)); |
|
840 | } |
|
841 | ||
842 | if ($image instanceof FileInterface) { |
|
843 | ||
844 | /* @var FileInterface $image */ |
|
845 | $this->setOriginal($image->getName()); |
|
846 | $this->setExtension($image->getExtension()); |
|
847 | ||
848 | $this->setWidth($image->getWidth()); |
|
849 | $this->setHeight($image->getHeight()); |
|
850 | } |
|
851 | ||
852 | if ($image instanceof FilePresenter) { |
|
853 | ||
@@ 852-862 (lines=11) @@ | ||
849 | $this->setHeight($image->getHeight()); |
|
850 | } |
|
851 | ||
852 | if ($image instanceof FilePresenter) { |
|
853 | ||
854 | /* @var FilePresenter|FileInterface $image */ |
|
855 | $image = $image->getObject(); |
|
856 | ||
857 | $this->setOriginal($image->getName()); |
|
858 | $this->setExtension($image->getExtension()); |
|
859 | ||
860 | $this->setWidth($image->getWidth()); |
|
861 | $this->setHeight($image->getHeight()); |
|
862 | } |
|
863 | ||
864 | $this->image = $image; |
|
865 |