Completed
Pull Request — dev (#317)
by Tristan
06:21
created

Project   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 10
dl 0
loc 15
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A micro_references() 0 2 1
1
<?php
2
3
/**
4
 * Created by Reliese Model.
5
 * Date: Thu, 12 Jul 2018 22:39:28 +0000.
6
 */
0 ignored issues
show
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
Coding Style introduced by
Missing @link tag in file comment
Loading history...
7
8
namespace App\Models;
9
use App\Models\MicroReference;
10
11
/**
12
 * Class Project
13
 *
14
 * @property int $id
15
 * @property string $name
16
 * @property \Jenssegers\Date\Date $start_date
17
 * @property \Jenssegers\Date\Date $end_date
18
 *
19
 * @property \Jenssegers\Date\Date $created_at
20
 * @property \Jenssegers\Date\Date $updated_at
21
 *
22
 * @property \Illuminate\Database\Eloquent\Collection $micro_references
23
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
24
class Project extends BaseModel {
0 ignored issues
show
Coding Style introduced by
Opening brace of a class must be on the line after the definition
Loading history...
25
26
    protected $casts = [
27
        'name' => 'string',
28
        'start_date' => 'date',
29
        'end_date' => 'date'
30
    ];
31
    protected $fillable = [
32
        'name',
33
        'start_date',
34
        'end_date'
35
    ];
36
37
    public function micro_references() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function micro_references()
Loading history...
Coding Style introduced by
Public method name "Project::micro_references" is not in camel caps format
Loading history...
38
        return $this->belongsToMany(\App\Models\MicroReference::class);
39
    }
40
}
41