Total Complexity | 6 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class RetryDomainsMiddleware implements Middleware |
||
8 | { |
||
9 | /** |
||
10 | * @var array<string> backup domains. |
||
11 | */ |
||
12 | private $backupDomains; |
||
13 | |||
14 | /** |
||
15 | * @var numeric max retry times for each backup domains. |
||
|
|||
16 | */ |
||
17 | private $maxRetryTimes; |
||
18 | |||
19 | /** |
||
20 | * @param array<string> $backupDomains |
||
21 | * @param numeric $maxRetryTimes |
||
22 | */ |
||
23 | public function __construct($backupDomains, $maxRetryTimes = 2) |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param Request $request |
||
31 | * @param callable(Request): Response $next |
||
32 | * @return Response |
||
33 | */ |
||
34 | public function send($request, $next) |
||
62 |
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