Passed
Push — master ( ea1130...b24b06 )
by F
03:15
created

CountryRepository   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 28
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A model() 0 3 1
A getFieldsSearchable() 0 3 1
1
<?php
2
3
namespace PWWEB\Localisation\Repositories;
4
5
use App\Repositories\BaseRepository;
0 ignored issues
show
Bug introduced by
The type App\Repositories\BaseRepository 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...
6
use PWWEB\Localisation\Models\Country;
7
8
/**
9
 * PWWEB\Localisation\Repositories\CountryRepository CountryRepository.
10
 *
11
 * The repository for Country.
12
 * Class CountryRepository
13
 *
14
 * @package   pwweb/localisation
15
 * @author    Frank Pillukeit <[email protected]>
16
 * @author    Richard Browne <[email protected]
17
 * @copyright 2020 pw-websolutions.com
18
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
19
*/
20
class CountryRepository extends BaseRepository
21
{
22
    /**
23
     * @var array
24
     */
25
    protected $fieldSearchable = [
26
        'name',
27
        'iso',
28
        'ioc',
29
        'active'
30
    ];
31
32
    /**
33
     * Return searchable fields.
34
     *
35
     * @return array
36
     */
37
    public function getFieldsSearchable()
38
    {
39
        return $this->fieldSearchable;
40
    }
41
42
    /**
43
     * Configure the Model.
44
     **/
45
    public function model()
46
    {
47
        return Country::class;
48
    }
49
}
50