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

ImagemagickResizeEffect   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A doResize() 0 6 1
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