| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 13 | public function run($ad_code) |
|
| 36 | { |
||
| 37 | 13 | $is_https = $this->request->server('HTTPS', false); |
|
| 38 | 13 | if ($is_https && preg_match('/http[^s]/', $ad_code)) |
|
| 39 | 13 | { |
|
| 40 | return array( |
||
| 41 | 2 | 'severity' => 'warning', |
|
| 42 | 2 | 'message' => 'UNSECURE_CONNECTION', |
|
| 43 | 2 | ); |
|
| 44 | } |
||
| 45 | |||
| 46 | 11 | return false; |
|
| 47 | } |
||
| 49 |
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