Total Complexity | 8 |
Total Lines | 77 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class SettingData implements \OCP\Activity\ISetting |
||
15 | { |
||
16 | |||
17 | /** @var IL10N */ |
||
18 | protected $l; |
||
19 | |||
20 | /** |
||
21 | * @param IL10N $l |
||
22 | */ |
||
23 | public function __construct(IL10N $l) |
||
24 | { |
||
25 | $this->l = $l; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return string Lowercase a-z and underscore only identifier |
||
30 | * @since 11.0.0 |
||
31 | */ |
||
32 | public function getIdentifier() |
||
33 | { |
||
34 | return 'analytics_data'; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string A translated string |
||
39 | * @since 11.0.0 |
||
40 | */ |
||
41 | public function getName() |
||
42 | { |
||
43 | return $this->l->t('<strong>Analytics</strong>: New data was added to a report'); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return int whether the filter should be rather on the top or bottom of |
||
48 | * the admin section. The filters are arranged in ascending order of the |
||
49 | * priority values. It is required to return a value between 0 and 100. |
||
50 | * @since 11.0.0 |
||
51 | */ |
||
52 | public function getPriority() |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return bool True when the option can be changed for the stream |
||
59 | * @since 11.0.0 |
||
60 | */ |
||
61 | public function canChangeStream() |
||
62 | { |
||
63 | return true; |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * @return bool True when the option can be changed for the stream |
||
68 | * @since 11.0.0 |
||
69 | */ |
||
70 | public function isDefaultEnabledStream() |
||
71 | { |
||
72 | return false; |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * @return bool True when the option can be changed for the mail |
||
77 | * @since 11.0.0 |
||
78 | */ |
||
79 | public function canChangeMail() |
||
82 | } |
||
83 | |||
84 | /** |
||
85 | * @return bool True when the option can be changed for the stream |
||
86 | * @since 11.0.0 |
||
87 | */ |
||
88 | public function isDefaultEnabledMail() |
||
91 | } |
||
92 | } |
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