Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function getDomain() |
||
24 | { |
||
25 | |||
26 | $domain = preg_replace("/[^a-zA-Z0-9.:_-]/", "", str_replace( |
||
27 | ['https://', 'http://'], |
||
28 | '', |
||
29 | $this->request->get( |
||
30 | 'app-domain', |
||
31 | $this->request->headers->get( |
||
32 | 'app-domain', |
||
33 | $this->request->headers->get( |
||
34 | 'referer', |
||
35 | $this->getMainDomain() |
||
36 | ) |
||
37 | ) |
||
38 | ) |
||
39 | )); |
||
40 | |||
41 | if (!$domain) |
||
42 | throw new InvalidArgumentException('Please define header or get param "app-domain"', 301); |
||
43 | return $domain; |
||
44 | } |
||
51 |
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