Issues (69)

src/Models/ApiAuthOprateEvent.php (2 issues)

Labels
Severity
1
<?php
2
3
4
namespace ArcherZdip\LaravelApiAuth\Models;
5
6
7
use Illuminate\Database\Eloquent\Model;
0 ignored issues
show
The type Illuminate\Database\Eloquent\Model 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
class ApiAuthOprateEvent extends Model
10
{
11
    protected static $nameRegex = '/^[a-z0-9-]{1,255}$/';
12
13
    /**
14
     * The attributes that are mass assignable.
15
     *
16
     * @var array
17
     */
18
    protected $fillable = [
19
        'app_client_id',
20
        'ip_address',
21
        'event',
22
    ];
23
24
    /**
25
     * The attributes that should be hidden for arrays.
26
     *
27
     * @var array
28
     */
29
    protected $hidden = [];
30
31
    /**
32
     * ApiAuthOprateEvent constructor.
33
     * @param array $attributes
34
     */
35
    public function __construct(array $attributes = [])
36
    {
37
        parent::__construct($attributes);
38
39
        $this->setTable(config('apikey.table_name.api_auth_oprate_events'));
0 ignored issues
show
The function config was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

39
        $this->setTable(/** @scrutinizer ignore-call */ config('apikey.table_name.api_auth_oprate_events'));
Loading history...
40
    }
41
}