Passed
Push — master ( bf1cb1...07ceb6 )
by Vasyl
02:42
created

Variable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Fomvasss\Variable\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Variable extends Model
8
{
9
    public $timestamps = false;
10
11
    public $guarded = ['id'];
12
13
    public function __construct(array $attributes = [])
14
    {
15
        parent::__construct($attributes);
16
17
        $this->setTable(config('variables.table_name'));
0 ignored issues
show
Bug introduced by
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

17
        $this->setTable(/** @scrutinizer ignore-call */ config('variables.table_name'));
Loading history...
18
    }
19
}
20