Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4.8437 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 14 | public static function createRequest(Request $symfonyRequest) |
|
19 | { |
||
20 | 14 | if (class_exists(Psr17Factory::class) && class_exists(PsrHttpFactory::class)) { |
|
21 | 14 | $psr17Factory = new Psr17Factory; |
|
22 | |||
23 | 14 | return (new PsrHttpFactory($psr17Factory, $psr17Factory, $psr17Factory, $psr17Factory)) |
|
24 | 14 | ->createRequest($symfonyRequest); |
|
25 | } |
||
26 | |||
27 | if (class_exists(DiactorosFactory::class)) { |
||
28 | return (new DiactorosFactory)->createRequest($symfonyRequest); |
||
29 | } |
||
30 | |||
31 | throw new Exception('Unable to resolve PSR request. Please install symfony/psr-http-message-bridge and nyholm/psr7.'); |
||
32 | } |
||
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