We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 23 | public function handleProviderCallback($provider) |
||
| 24 | { |
||
| 25 | $user = Socialite::driver($provider)->user(); |
||
| 26 | |||
| 27 | // Getting the data from Google+ |
||
| 28 | $data = [ |
||
| 29 | 'name' => $user->getName(), |
||
| 30 | 'email' => $user->getEmail(), |
||
| 31 | 'username' => strtolower($user->getName()) |
||
| 32 | ]; |
||
| 33 | |||
| 34 | // Created a user with requested data |
||
| 35 | Auth::login(User::firstOrCreate($data)); |
||
|
|
|||
| 36 | |||
| 37 | // redirect to home |
||
| 38 | return redirect()->route('home'); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
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.