Completed
Push — master ( 122e08...bdacbb )
by Mathieu
03:06
created

ImagemagickResizeEffect::doResize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 3
1
<?php
2
3
namespace Charcoal\Image\Imagemagick\Effect;
4
5
use \Exception;
6
7
use \Charcoal\Image\Effect\AbstractResizeEffect;
8
9
/**
10
 * Reisze Effect for the Imagemagick driver.
11
 */
12
class ImagemagickResizeEffect extends AbstractResizeEffect
13
{
14
    /**
15
     * @param integer $width   The target width.
16
     * @param integer $height  The target height.
17
     * @param boolean $bestFit The "best_fit" flag.
18
     * @return void
19
     */
20
    protected function doResize($width, $height, $bestFit = false)
21
    {
22
        throw new Exception(
23
            'Resize Effect not valid'
24
        );
25
    }
26
}
27