| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | protected function beforeInsert() : void |
||
| 53 | { |
||
| 54 | $this->created = gmdate('Y-m-d H:i:s'); |
||
| 55 | |||
| 56 | // set default module |
||
| 57 | if (!$this->module) { |
||
| 58 | $this->module = 'users'; |
||
| 59 | } |
||
| 60 | // set user ID |
||
| 61 | if ($user = Auth::getIdentity()) { |
||
| 62 | $this->userId = $user->getId(); |
||
| 63 | } else { |
||
| 64 | $this->userId = Users\Table::SYSTEM_USER; |
||
| 65 | } |
||
| 88 |
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