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

CitationOptions   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A factory() 0 3 1
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