AsPointable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootAsPointable() 0 9 1
1
<?php
2
/**
3
 * @todo Fazer aqui essa trait
4
 */
5
6
namespace Gamer\Traits;
7
8
use Log;
9
use Support\Models\Base;
10
use Auth;
11
use Illuminate\Database\Eloquent\Builder;
12
13
trait AsPointable
14
{
15
16
    public static function bootAsPointable()                                                                                                                                                             
17
    {
18
19
        // static::deleting(function (self $user) {
20
        //     optional($user->photos)->each(function (Photo $photo) {
21
        //         $photo->delete();
22
        //     });
23
        // });
24
    }
25
    
26
    // public function registerMediaConversions(Media $media = null)
27
    // {
28
    //     $this->addMediaConversion('thumb')
29
    //         ->width(50)
30
    //         ->height(50);
31
    // }
32
33
    // /**
34
    //  * @return \Illuminate\Database\Eloquent\Relations\HasMany
35
    //  */
36
    // public function photos()
37
    // {
38
    //     return $this-->getMedia();
39
    // }
40
}
41