Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
71 | protected function getUserModel() |
||
72 | { |
||
73 | $value = $this->argument('value'); |
||
74 | $field = $this->argument('field'); |
||
75 | |||
76 | if ($field) { |
||
77 | return $this->user::query() |
||
|
|||
78 | ->where($field, $value) |
||
79 | ->first(); |
||
80 | } |
||
81 | |||
82 | return $this->user::query() |
||
83 | ->where('email', $value) |
||
84 | ->first() ?: $this->user::query()->find($value); |
||
85 | } |
||
87 |
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.