| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.0416 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 2 | public function SignUpForm() |
|
| 43 | { |
||
| 44 | 2 | $form = new SignUpForm($this, 'SignUpForm'); |
|
| 45 | 2 | $config = SiteConfig::current_site_config(); |
|
| 46 | 2 | if ($config->EnableSpamProtection && class_exists('UndefinedOffset\NoCaptcha\Forms\NocaptchaField')) { |
|
| 47 | $form->enableSpamProtection(); |
||
| 48 | } |
||
| 49 | 2 | return $form; |
|
| 50 | } |
||
| 52 |
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