| @@ 78-86 (lines=9) @@ | ||
| 75 | /** |
|
| 76 | * {@inheritdoc} |
|
| 77 | */ |
|
| 78 | public function getFormat() |
|
| 79 | { |
|
| 80 | $format = $this->gmagick->getimageformat(); |
|
| 81 | if (!in_array($format, static::$supportedFormats)) { |
|
| 82 | throw new RuntimeException('Unsupported image format'); |
|
| 83 | } |
|
| 84 | ||
| 85 | return $format; |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * {@inheritdoc} |
|
| @@ 78-86 (lines=9) @@ | ||
| 75 | /** |
|
| 76 | * {@inheritdoc} |
|
| 77 | */ |
|
| 78 | public function getFormat() |
|
| 79 | { |
|
| 80 | $format = $this->imagick->getImageFormat(); |
|
| 81 | if (!in_array($format, static::$supportedFormats)) { |
|
| 82 | throw new RuntimeException('Unsupported image format'); |
|
| 83 | } |
|
| 84 | ||
| 85 | return $format; |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * {@inheritdoc} |
|