| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function handle(UserHasBeenMigrated $event) |
||
| 30 | { |
||
| 31 | try { |
||
| 32 | $newUserMigration = UserMigration::create([ |
||
|
|
|||
| 33 | 'source_user_id' => $event->sourceUserId, |
||
| 34 | 'source_user' => $event->sourceUser, |
||
| 35 | 'user_id' => $event->newUser ? $event->newUser->id : null, |
||
| 36 | 'user_migration_batch_id' => $event->user_migration_batch_id |
||
| 37 | ]); |
||
| 38 | event(new UserMigrationHasBeenPersisted($newUserMigration)); |
||
| 39 | } catch (\Exception $e) { |
||
| 40 | dump($e->getMessage()); |
||
| 41 | } |
||
| 42 | |||
| 43 | } |
||
| 44 | |||
| 45 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.