1 | <?php |
||
2 | /** |
||
3 | * Analytics |
||
4 | * |
||
5 | * SPDX-FileCopyrightText: 2019-2022 Marcel Scherello |
||
6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
||
7 | */ |
||
8 | |||
9 | namespace OCA\Analytics\Datasource; |
||
10 | |||
11 | use OCP\EventDispatcher\Event; |
||
0 ignored issues
–
show
|
|||
12 | |||
13 | /** |
||
14 | * Class CommentsEntityEvent |
||
15 | * |
||
16 | * @since 9.1.0 |
||
17 | */ |
||
18 | class DatasourceEvent extends Event |
||
19 | { |
||
20 | |||
21 | /** @var string */ |
||
22 | protected $event; |
||
23 | /** @var \Closure[] */ |
||
24 | protected $collections = []; |
||
25 | |||
26 | /** |
||
27 | * @param string $datasource |
||
28 | * @since 9.1.0 |
||
29 | */ |
||
30 | public function registerDatasource(string $datasource) |
||
31 | { |
||
32 | $this->collections[] = $datasource; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return \Closure[] |
||
37 | * @since 9.1.0 |
||
38 | */ |
||
39 | public function getDataSources() |
||
40 | { |
||
41 | return $this->collections; |
||
42 | } |
||
43 | } |
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