| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 15 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | View Code Duplication | public function deleted(User $user) |
|
| 29 | { |
||
| 30 | \DB::table((new Revision())->getTable())->insert([ |
||
| 31 | [ |
||
| 32 | 'revisionable_type' => $user->getMorphClass(), |
||
| 33 | 'revisionable_id' => $user->id, |
||
| 34 | 'key' => 'deleted_at', |
||
| 35 | 'old_value' => $user, |
||
| 36 | 'new_value' => new \DateTime(), |
||
| 37 | 'user_id' => (\Auth::check() ? \Auth::user()->id : null), |
||
| 38 | 'created_at' => new \DateTime(), |
||
| 39 | 'updated_at' => new \DateTime(), |
||
| 40 | ] |
||
| 41 | ]); |
||
| 42 | } |
||
| 43 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.