Total Complexity | 7 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Join implements IJoin |
||
11 | { |
||
12 | public string $type; |
||
13 | public ITable|string $table; |
||
14 | public IQueryPart|string|null $on; |
||
|
|||
15 | |||
16 | /** |
||
17 | * Join constructor. |
||
18 | * |
||
19 | * @param string $type |
||
20 | * @param ITable|string $table |
||
21 | * @param IQueryPart|string|null $on |
||
22 | */ |
||
23 | 27 | public function __construct(string $type, ITable|string $table, IQueryPart|string|null $on) |
|
24 | { |
||
25 | 27 | if (!in_array($type, IJoin::VALID_TYPES)) { |
|
26 | 1 | throw new InvalidArgumentException(sprintf('invalid join type: %s', $type)); |
|
27 | } |
||
28 | |||
29 | 26 | $this->type = $type; |
|
30 | 26 | $this->table = $table; |
|
31 | 26 | $this->on = $on; |
|
32 | 26 | } |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 23 | public function __toString(): string |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | 6 | public function getParams(): array |
|
62 |
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