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
Push — master ( 037104...b3593d )
by
unknown
10s
created

Watermark::load()   A

Complexity

Conditions 3
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

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 3
eloc 5
nc 1
nop 1
crap 3
1
<?php
2
namespace HtImgModule\Imagine\Filter\Loader;
3
4
use HtImgModule\Imagine\Filter\Watermark as WatermarkFilter;
5
6
class Watermark extends Paste implements LoaderInterface
7
{
8
    /**
9
     * {@inheritDoc}
10
     */
11 1
    public function load(array $options = [])
12
    {
13 1
        return new WatermarkFilter(
14 1
            $this->imagine->open($this->resolver->resolve($options['watermark'])),
15 1
            isset($options['size']) ? $options['size'] : null,
16 1
            isset($options['position']) ? $options['position'] : 'center'
17
        );
18
    }
19
}
20