| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 19 | 3 | public function __construct(iterable $transports = []) |
|
| 20 | { |
||
| 21 | 3 | $mappedTransports = []; |
|
| 22 | /** @var TransportInterface $transport */ |
||
| 23 | 3 | foreach ($transports as $transport) { |
|
| 24 | 2 | $transportKey = $transport->getKey(); |
|
| 25 | 2 | if (isset($mappedTransports[$transportKey])) { |
|
| 26 | 1 | throw new InvalidArgumentException("Transport key '$transportKey' is already defined."); |
|
| 27 | } |
||
| 28 | 2 | $mappedTransports[$transportKey] = $transport; |
|
| 29 | } |
||
| 30 | |||
| 31 | 2 | $this->init($mappedTransports, [TransportInterface::class]); |
|
| 32 | 2 | } |
|
| 34 |
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