Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public static function boot() |
||
23 | { |
||
24 | parent::boot(); |
||
25 | |||
26 | self::creating(function($model){ |
||
|
|||
27 | // ... code here |
||
28 | }); |
||
29 | |||
30 | self::created(function($model){ |
||
31 | // ... code here |
||
32 | }); |
||
33 | |||
34 | self::updating(function($model){ |
||
35 | // ... code here |
||
36 | }); |
||
37 | |||
38 | self::updated(function($model){ |
||
39 | // ... code here |
||
40 | }); |
||
41 | |||
42 | self::deleting(function($model){ |
||
43 | // ... code here |
||
44 | }); |
||
45 | |||
46 | self::deleted(function($model){ |
||
47 | // ... code here |
||
63 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.