GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#34)
by
unknown
03:33 queued 01:44
created

Crop::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
ccs 5
cts 5
cp 1
cc 1
eloc 5
nc 1
nop 1
crap 1
1
<?php
2
namespace HtImgModule\Imagine\Filter\Loader;
3
4
use Imagine\Image\Box;
5
use Imagine\Image\Point;
6
use Imagine\Filter\Basic\Crop as CropFilter;
7
8
class Crop implements LoaderInterface
9
{
10 1
    public function load(array $options = [])
11
    {
12 1
        list($x, $y) = $options['start'];
13 1
        $width = $options['width'];
14 1
        $height = $options['height'];
15
16 1
        return new CropFilter(new Point($x, $y), new Box($width, $height));
17
    }
18
}
19