Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | protected function beforeSave(): void |
||
40 | { |
||
41 | if (!Auth::getIdentity()) { |
||
42 | $this->addValidator('name') |
||
43 | ->required() |
||
44 | ->alpha(' \''); |
||
45 | $this->addValidator('email') |
||
46 | ->required() |
||
47 | ->email(); |
||
48 | } |
||
49 | |||
50 | $this->addValidator('subject') |
||
51 | ->required() |
||
52 | ->alpha(' \''); |
||
53 | |||
54 | $this->addValidator('message') |
||
55 | ->required(); |
||
56 | } |
||
81 |
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