| @@ 71-79 (lines=9) @@ | ||
| 68 | /** |
|
| 69 | * {@inheritdoc} |
|
| 70 | */ |
|
| 71 | public function getFormat() |
|
| 72 | { |
|
| 73 | $format = $this->gmagick->getimageformat(); |
|
| 74 | if (!in_array($format, static::$supportedFormats)) { |
|
| 75 | throw new RuntimeException('Unsupported image format'); |
|
| 76 | } |
|
| 77 | ||
| 78 | return $format; |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * {@inheritdoc} |
|
| @@ 71-79 (lines=9) @@ | ||
| 68 | /** |
|
| 69 | * {@inheritdoc} |
|
| 70 | */ |
|
| 71 | public function getFormat() |
|
| 72 | { |
|
| 73 | $format = $this->imagick->getImageFormat(); |
|
| 74 | if (!in_array($format, static::$supportedFormats)) { |
|
| 75 | throw new RuntimeException('Unsupported image format'); |
|
| 76 | } |
|
| 77 | ||
| 78 | return $format; |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * {@inheritdoc} |
|