Invert::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php namespace Modules\Media\Image\Intervention\Manipulations;
2
3
use Modules\Media\Image\ImageHandlerInterface;
4
5
class Invert implements ImageHandlerInterface
6
{
7
    /**
8
     * Handle the image manipulation request
9
     * @param  \Intervention\Image\Image $image
10
     * @param  array                     $options
11
     * @return \Intervention\Image\Image
12
     */
13
    public function handle($image, $options)
14
    {
15
        return $image->invert();
16
    }
17
}
18