Passed
Push — new-api ( 4bfe18...7ec1cc )
by Sebastian
05:06
created

CitationOptions::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * citeproc-php
4
 *
5
 * @link        http://github.com/seboettg/citeproc-php for the source repository
6
 * @copyright   Copyright (c) 2017 Sebastian Böttger.
7
 * @license     https://opensource.org/licenses/MIT
8
 */
9
10
namespace Seboettg\CiteProc\Style\Options;
11
12
use SimpleXMLElement;
13
14
/**
15
 * Class GlobalOptionsTrait
16
 * @package Seboettg\CiteProc\Style
17
 * @author Sebastian Böttger <[email protected]>
18
 */
19
class CitationOptions implements StyleOptions
20
{
21
    /**
22
     * @param SimpleXMLElement $node
23
     * @return CitationOptions
24
     */
25 160
    public static function factory(SimpleXMLElement $node): CitationOptions
0 ignored issues
show
Unused Code introduced by
The parameter $node is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

25
    public static function factory(/** @scrutinizer ignore-unused */ SimpleXMLElement $node): CitationOptions

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
    {
27 160
        return new self();
28
    }
29
}
30