Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
53 | protected function getUserModel() |
||
54 | { |
||
55 | $value = $this->argument('value'); |
||
56 | $field = $this->argument('field'); |
||
57 | |||
58 | if ($field) { |
||
59 | return $this->user::onlyTrashed() |
||
|
|||
60 | ->where($field, $value) |
||
61 | ->first(); |
||
62 | } |
||
63 | |||
64 | return $this->user::onlyTrashed() |
||
65 | ->where('email', $value) |
||
66 | ->first() ?: $this->user::onlyTrashed()->find($value); |
||
67 | } |
||
69 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.