Conditions | 5 |
Paths | 10 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
41 | public function load(string $wsdl): array |
||
42 | { |
||
43 | if (!isset($this->metadataCache[$wsdl])) { |
||
44 | try { |
||
45 | $definitions = $this->wsdlReader->readFile($wsdl); |
||
46 | |||
47 | $services = []; |
||
48 | foreach ($definitions->getServices() as $service) { |
||
49 | foreach ($service->getPorts() as $port) { |
||
50 | $services[] = $this->soapReader->getServiceByPort($port); |
||
51 | } |
||
52 | } |
||
53 | |||
54 | $this->metadataCache[$wsdl] = $this->metadataGenerator->generate($services); |
||
55 | } catch (\Throwable $e) { |
||
56 | throw new MetadataException(sprintf('Can not generate metadata information for %s', $wsdl), 0, $e); |
||
57 | } |
||
58 | } |
||
59 | |||
60 | return $this->metadataCache[$wsdl]; |
||
61 | } |
||
63 |
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