| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 1 | protected static function get_if_login_page_exists() |
|
| 37 | { |
||
| 38 | 1 | if ($page = DataObject::get_one(self::class)) { |
|
| 39 | 1 | return $page; |
|
| 40 | } |
||
| 41 | user_error(_t(__CLASS__ . '.NoPage', 'No CustomerLoginPage was found. |
||
| 42 | Please create one in the CMS!'), E_USER_ERROR); |
||
| 43 | return null; // just to keep static analysis happy |
||
| 44 | } |
||
| 70 |
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