Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class UrlFixer |
||
6 | { |
||
7 | private $urlPrefix; |
||
8 | |||
9 | /** |
||
10 | * Prepends given $urlPrefix to all URLs in Package objects. |
||
11 | * |
||
12 | * @param string $urlPrefix Prefix to put before all URLs to make them absolute. |
||
13 | */ |
||
14 | 4 | public function __construct($urlPrefix) |
|
15 | { |
||
16 | 4 | $this->urlPrefix = $urlPrefix; |
|
17 | 4 | } |
|
18 | |||
19 | /** |
||
20 | * Prepends given prefix to Package $pkg. |
||
21 | * |
||
22 | * @param \SSpkS\Package\Package $pkg Package to work on. |
||
23 | */ |
||
24 | 4 | public function fixPackage($pkg) |
|
40 | 4 | } |
|
41 | |||
42 | /** |
||
43 | * Prepends given prefix to all Packages in array $pkgList. |
||
44 | * |
||
45 | * @param \SSpkS\Package\Package[] List of Packages. |
||
|
|||
46 | */ |
||
47 | 3 | public function fixPackageList($pkgList) |
|
51 | 3 | } |
|
52 | 3 | } |
|
54 |
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