TaskEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 9 1
1
<?php
2
3
namespace App;
4
5
6
use Illuminate\Database\Eloquent\Model;
7
8
class TaskEvent extends model
9
{
10
    protected $guarded = [];
11
12
    public function toArray()
13
    {
14
        return [
15
            'id'          => $this->id,
16
            'time'        => $this->time,
17
            'type'        => $this->type,
18
            'task_name'        => $this->task_name,
19
            'user_name'        => $this->user_name,
20
            'task'        => $this->task,
21
        ];
22
    }
23
}