| Conditions | 3 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | 1 | public function requireDefaultRecords() |
|
| 50 | { |
||
| 51 | 1 | parent::requireDefaultRecords(); |
|
| 52 | 1 | if (!self::get()->exists() && $this->config()->create_default_pages) { |
|
| 53 | /** |
||
| 54 | * @var UserLoginPage $page |
||
| 55 | */ |
||
| 56 | 1 | $page = self::create()->update( |
|
| 57 | [ |
||
| 58 | 1 | 'Title' => 'UserLogin', |
|
| 59 | 1 | 'URLSegment' => UserLoginPageController::config()->url_segment, |
|
| 60 | 1 | 'ShowInMenus' => 0, |
|
| 61 | ] |
||
| 62 | ); |
||
| 63 | 1 | $page->write(); |
|
| 64 | 1 | $page->publishSingle(); |
|
| 65 | 1 | $page->flushCache(); |
|
| 66 | 1 | DB::alteration_message('UserLoginPage page created', 'created'); |
|
| 67 | } |
||
| 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