Test Failed
Push — feature/job-builder/update-job... ( 68ba7e...7a08dc )
by Xander
23:02 queued 10:32
created

Classification::skills()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace App\Models;
4
5
/**
6
 * Class UserRole
7
 *
8
 * @property int $id
9
 * @property string $key
10
 * @property \Jenssegers\Date\Date $created_at
11
 * @property \Jenssegers\Date\Date $updated_at
12
 *
13
 * @property \Illuminate\Database\Eloquent\Collection $skills
14
 */
15
class Classification extends BaseModel
16
{
17
18
    protected $fillable = [];
1 ignored issue
show
introduced by
Property \App\Models\Classification::$fillable does not have @var annotation.
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
19
20
    public function skills()
1 ignored issue
show
introduced by
Method \App\Models\Classification::skills() does not have return type hint nor @return annotation for its return value.
Loading history...
Coding Style Documentation introduced by
Missing doc comment for function skills()
Loading history...
21
    {
22
        return $this->belongsToMany(\App\Models\Skill::class)->withTimestamps();
23
    }
24
}
25