| Total Complexity | 6 | 
| Total Lines | 53 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 33 | class Row extends \Bluz\Db\Row  | 
            ||
| 34 | { | 
            ||
| 35 | use Validator;  | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 |      * {@inheritdoc} | 
            ||
| 39 | */  | 
            ||
| 40 | protected function beforeSave() : void  | 
            ||
| 41 |     { | 
            ||
| 42 |         $this->addValidator('title') | 
            ||
| 43 | ->required()  | 
            ||
| 44 |             ->latinNumeric(' -_.'); | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | /**  | 
            ||
| 48 | * __insert  | 
            ||
| 49 | *  | 
            ||
| 50 | * @return void  | 
            ||
| 51 | */  | 
            ||
| 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 | }  | 
            ||
| 66 | }  | 
            ||
| 67 | |||
| 68 | /**  | 
            ||
| 69 | * __update  | 
            ||
| 70 | *  | 
            ||
| 71 | * @return void  | 
            ||
| 72 | */  | 
            ||
| 73 | protected function beforeUpdate() : void  | 
            ||
| 74 |     { | 
            ||
| 75 |         $this->updated = gmdate('Y-m-d H:i:s'); | 
            ||
| 76 | }  | 
            ||
| 77 | |||
| 78 | /**  | 
            ||
| 79 | * postDelete  | 
            ||
| 80 | *  | 
            ||
| 81 | * @return void  | 
            ||
| 82 | */  | 
            ||
| 83 | protected function afterDelete() : void  | 
            ||
| 86 | }  | 
            ||
| 87 | }  | 
            ||
| 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