bluzphp /
module-profile
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @namespace |
||
| 5 | */ |
||
| 6 | |||
| 7 | namespace Application\UsersProfiles; |
||
| 8 | |||
| 9 | use Bluz\Proxy\Auth; |
||
|
0 ignored issues
–
show
|
|||
| 10 | use Bluz\Validator\Traits\Validator; |
||
|
0 ignored issues
–
show
The type
Bluz\Validator\Traits\Validator was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 11 | |||
| 12 | /** |
||
| 13 | * Class Row for `users_profiles` |
||
| 14 | * |
||
| 15 | * @package Application\UsersProfiles |
||
| 16 | * |
||
| 17 | * @property integer $userId |
||
| 18 | * @property string $firstName |
||
| 19 | * @property string $lastName |
||
| 20 | * @property string $birthday |
||
| 21 | * @property string $created |
||
| 22 | * @property string $updated |
||
| 23 | * |
||
| 24 | * @author dev |
||
| 25 | * @created 2017-10-18 14:23:20 |
||
| 26 | */ |
||
| 27 | class Row extends \Bluz\Db\Row |
||
|
0 ignored issues
–
show
The type
Bluz\Db\Row was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 28 | { |
||
| 29 | use Validator; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * beforeSave |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function beforeSave(): void |
||
| 37 | { |
||
| 38 | $this->addValidator('firstName')->alpha(); |
||
| 39 | $this->addValidator('lastName')->alpha(); |
||
| 40 | $this->addValidator('birthday')->date('Y-m-d'); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | public function beforeInsert(): void |
||
| 47 | { |
||
| 48 | $this->created = gmdate('Y-m-d H:i:s'); |
||
| 49 | $this->userId = Auth::getIdentity()->getId(); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return void |
||
| 54 | */ |
||
| 55 | public function beforeUpdate(): void |
||
| 56 | { |
||
| 57 | $this->updated = gmdate('Y-m-d H:i:s'); |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
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