Investment   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createOfx() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace OfxParser\Parsers;
4
5
use SimpleXMLElement;
6
use \OfxParser\Parser;
0 ignored issues
show
Bug introduced by
The type \OfxParser\Parser was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use \OfxParser\Ofx\Investment as InvestmentOfx;
0 ignored issues
show
Bug introduced by
The type \OfxParser\Ofx\Investment was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
class Investment extends Parser
10
{
11
    /**
12
     * Factory to support Investment OFX document structure.
13
     * @param SimpleXMLElement $xml
14
     * @return InvestmentOfx
15
     */
16 4
    protected function createOfx(SimpleXMLElement $xml): InvestmentOfx
17
    {
18 4
        return new InvestmentOfx($xml);
19
    }
20
}
21