1 | <?php |
||
11 | class EloquentSocialUserRepository implements SocialUserRepository |
||
12 | { |
||
13 | use UserModel; |
||
14 | |||
15 | /** |
||
16 | * Social network. |
||
17 | * |
||
18 | * @var |
||
19 | */ |
||
20 | protected $provider; |
||
21 | |||
22 | /** |
||
23 | * Return user if exists; create and return if doesn't. |
||
24 | * |
||
25 | * @param $socialUser |
||
26 | * @return User |
||
27 | */ |
||
28 | public function findOrCreateUser($socialUser) |
||
46 | |||
47 | /** |
||
48 | * Find social user. |
||
49 | * |
||
50 | * @param $socialUser |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function find($socialUser) |
||
58 | |||
59 | /** |
||
60 | * Create social user. |
||
61 | * |
||
62 | * @param $socialUser |
||
63 | * @param $userId |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function createSocialUser($socialUser, $userId) |
||
79 | |||
80 | /** |
||
81 | * Returns field name to use at login. |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | private function username() |
||
89 | |||
90 | /** |
||
91 | * Set provider |
||
92 | * |
||
93 | * @param $provider |
||
94 | * @return $this |
||
95 | */ |
||
96 | public function provider($provider) |
||
101 | |||
102 | /** |
||
103 | * Create regular user. |
||
104 | * |
||
105 | * @param $socialUser |
||
106 | * @return mixed |
||
107 | */ |
||
108 | private function createUser($socialUser) |
||
120 | |||
121 | /** |
||
122 | * Provides always a valid (for database) name. |
||
123 | * |
||
124 | * @param $socialUser |
||
125 | * @return mixed |
||
126 | */ |
||
127 | private function validName($socialUser) |
||
134 | } |
||
135 |
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.