Completed
Push — master ( 60707e...85c950 )
by Sergi
11:38
created

Task   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A tags() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: sergi
5
 * Date: 29/02/16
6
 * Time: 16:36
7
 */
8
9
namespace App;
10
11
12
use Illuminate\Database\Eloquent\Model;
13
14
class Task extends Model
15
{
16
    protected $fillable = ['name', 'priority', 'done'];
17
    public function tags()
18
    {
19
        return $this->belongsToMany('App\Tag', 'task_tag');
20
    }
21
}