| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | protected static function boot() |
||
| 39 | { |
||
| 40 | parent::boot(); // TODO: Change the autogenerated stub |
||
| 41 | static::updating(function ($instance) { |
||
| 42 | Cache::put('districts.'.$instance->slug, $instance); |
||
| 43 | }); |
||
| 44 | static::deleting(function ($instance) { |
||
| 45 | Cache::delete('districts.'.$instance->slug); |
||
| 46 | }); |
||
| 94 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.