Issues (51)

tests/Test_CommonExtensions.php (4 issues)

Labels
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
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
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
The private property $table_name is not used, and could be removed.
Loading history...
17
    private static $extensions = [
0 ignored issues
show
The private property $extensions is not used, and could be removed.
Loading history...
18
        IPExtension::class,
19
    ];
20
}
21