Pleets /
SQLWebManager
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Auth\Model; |
||
| 4 | |||
| 5 | use Drone\Db\Entity; |
||
| 6 | |||
| 7 | class User extends Entity |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $TOKEN; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var date |
||
|
0 ignored issues
–
show
|
|||
| 16 | */ |
||
| 17 | public $RECORD_DATE; |
||
| 18 | |||
| 19 | public function __construct($data = []) |
||
| 20 | { |
||
| 21 | $config = include 'module/Auth/config/user.config.php'; |
||
| 22 | |||
| 23 | $username_str = $config["authentication"]["gateway"]["credentials"]["username"]; |
||
| 24 | $password_str = $config["authentication"]["gateway"]["credentials"]["password"]; |
||
| 25 | $state_field = $config["authentication"]["gateway"]["table_info"]["columns"]["state_field"]; |
||
| 26 | $email_field = $config["authentication"]["gateway"]["table_info"]["columns"]["email_field"]; |
||
| 27 | $id_field = $config["authentication"]["gateway"]["table_info"]["columns"]["id_field"]; |
||
| 28 | |||
| 29 | foreach ([$id_field, $username_str, $password_str, $state_field, $email_field] as $field) |
||
| 30 | { |
||
| 31 | $this->{$field} = null; |
||
| 32 | } |
||
| 33 | |||
| 34 | parent::__construct($data); |
||
| 35 | |||
| 36 | $table = $config["authentication"]["gateway"]["entity"]; |
||
| 37 | $prefix = $config["database"]["prefix"]; |
||
| 38 | |||
| 39 | $this->setTableName($prefix . "_" . $table); |
||
| 40 | } |
||
| 41 | } |
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