Test_CommonExtensions
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 0
eloc 7
c 1
b 0
f 1
dl 0
loc 9
1
<?php
2
3
namespace LeKoala\CommonExtensions\Test;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\ORM\DataObject;
7
use LeKoala\CommonExtensions\IPExtension;
8
use LeKoala\GeoTools\FieldType\DBCountry;
0 ignored issues
show
Bug introduced by
The type LeKoala\GeoTools\FieldType\DBCountry 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...
9
10
class Test_CommonExtensions extends DataObject implements TestOnly
11
{
12
    private static $db = [
0 ignored issues
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
13
        "Phone" => "Varchar(51)",
14
        "CountryCode" => DBCountry::class,
15
    ];
16
    private static $table_name = 'CommonExtensions';
0 ignored issues
show
introduced by
The private property $table_name is not used, and could be removed.
Loading history...
17
    private static $extensions = [
0 ignored issues
show
introduced by
The private property $extensions is not used, and could be removed.
Loading history...
18
        IPExtension::class,
19
    ];
20
}
21