Conditions | 5 |
Paths | 7 |
Total Lines | 26 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function send($request, $next) |
||
35 | { |
||
36 | $response = null; |
||
37 | $urlComponents = parse_url($request->url); |
||
38 | |||
39 | foreach (array_merge(array($urlComponents["host"]), $this->backupDomains) as $backupDomain) { |
||
40 | $urlComponents["host"] = $backupDomain; |
||
41 | $request->url = \Qiniu\unparse_url($urlComponents); |
||
42 | $retriedTimes = 0; |
||
43 | |||
44 | while ($retriedTimes < $this->maxRetryTimes) { |
||
45 | $response = $next($request); |
||
46 | |||
47 | $retriedTimes += 1; |
||
48 | |||
49 | if ($response->ok()) { |
||
50 | return $response; |
||
51 | } |
||
52 | } |
||
53 | } |
||
54 | |||
55 | if (!$response) { |
||
56 | $response = $next($request); |
||
57 | } |
||
58 | |||
59 | return $response; |
||
60 | } |
||
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