File   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0
ccs 6
cts 6
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
namespace LeadThread\Upload\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class File extends Model
8
{
9
    protected $table;
10
    protected $guarded = ['id'];
11
12 12
    public function __construct(array $attributes = [])
13
    {
14 12
        if (empty($this->table)) {
15 12
            $this->table = config('upload.table');
16 12
        }
17 12
        parent::__construct($attributes);
18 12
    }
19
20
    // [
21
    //  'mime'
22
    //  'path'
23
    //  'disk'
24
    //  'filename'
25
    //  'extension'
26
    //  'fingerprint'
27
    // ]
28
}
29