Test Failed
Push — master ( af71f9...0ec276 )
by
unknown
08:59
created

Audit   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 4
Bugs 1 Features 0
Metric Value
eloc 7
c 4
b 1
f 0
dl 0
loc 21
ccs 0
cts 2
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSerializedDate() 0 3 1
1
<?php
2
3
namespace OwenIt\Auditing\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * @property string $tags
9
 * @property string $event
10
 * @property array $new_values
11
 * @property array $old_values
12
 * @property mixed $user
13
 * @property mixed $auditable.
14
 */
15
class Audit extends Model implements \OwenIt\Auditing\Contracts\Audit
16
{
17
    use \OwenIt\Auditing\Audit;
0 ignored issues
show
Bug introduced by
The trait OwenIt\Auditing\Audit requires the property $auditable which is not provided by OwenIt\Auditing\Models\Audit.
Loading history...
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    protected $guarded = [];
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    protected $casts = [
28
        'old_values'   => 'json',
29
        'new_values'   => 'json',
30
        // Note: Please do not add 'auditable_id' in here, as it will break non-integer PK models
31
    ];
32
33
    public function getSerializedDate($date)
34
    {
35
        return $this->serializeDate($date);
36
    }
37
}
38