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 ( c317f4...56a5d3 )
by Christian
05:39
created

DompdfFactory::createOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Core23\DompdfBundle\Factory;
4
5
use Dompdf\Dompdf;
6
use Dompdf\Options;
7
8
final class DompdfFactory implements DompdfFactoryInterface
9
{
10
    /**
11
     * @var string[]
12
     */
13
    private $options;
14
15
    /**
16
     * @param string[] $options
17
     */
18
    public function __construct(array $options = array())
19
    {
20
        $this->options  = $options;
21
    }
22
23
    /**
24
     * @inheritdoc
25
     */
26
    public function create(array $options = array()) : Dompdf
27
    {
28
        return new Dompdf($this->createOptions($options));
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    private function createOptions(array $options = array()): Options
35
    {
36
        return new Options(array_merge($this->options, $options));
37
    }
38
}
39