Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
1 | <?php |
||
4 | public function BestCrop($width, $height) { |
||
1 ignored issue
–
show
|
|||
5 | if ($this->owner->hasExtension('FocusPointImage')) { |
||
6 | return $this->owner->CroppedFocusedImage($width, $height); |
||
7 | } elseif ($this->owner->hasMethod('Fill')) { |
||
8 | return $this->owner->Fill($width, $height); |
||
9 | } else { |
||
10 | return $this->owner->setSize($width, $height); |
||
11 | } |
||
12 | } |
||
13 | } |
||
14 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.