Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | abstract class base implements type_interface |
||
17 | { |
||
18 | /** |
||
19 | * User object |
||
20 | * @var \phpbb\user |
||
|
|||
21 | */ |
||
22 | protected $user; |
||
23 | |||
24 | /** |
||
25 | * Language object |
||
26 | * @var \phpbb\language\language |
||
27 | */ |
||
28 | protected $language; |
||
29 | |||
30 | /** |
||
31 | * Construct a template location object |
||
32 | * |
||
33 | * @param \phpbb\user $user User object |
||
34 | * @param \phpbb\language\language $language Language object |
||
35 | */ |
||
36 | 26 | public function __construct(\phpbb\user $user, \phpbb\language\language $language) |
|
37 | { |
||
38 | 26 | $this->user = $user; |
|
39 | 26 | $this->language = $language; |
|
40 | 26 | } |
|
41 | |||
42 | /** |
||
43 | * {@inheritDoc} |
||
44 | */ |
||
45 | 2 | public function get_name() |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | */ |
||
53 | 2 | public function get_desc() |
|
54 | { |
||
55 | 2 | return $this->language->lang('AD_' . strtoupper($this->get_id()) . '_DESC'); |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * {@inheritDoc} |
||
60 | */ |
||
61 | 8 | public function will_display() |
|
64 | } |
||
65 | } |
||
66 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths