Rating   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
namespace Canylmz\Rating\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Rating extends Model
8
{
9
    public function __construct(array $attributes = [])
10
    {
11
        if (! isset($this->table)) {
12
            $this->setTable(config('rating.table_name'));
13
        }
14
15
        parent::__construct($attributes);
16
    }
17
}
18