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 | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 22 | public function handleProviderCallback($provider) |
||
| 23 | { |
||
| 24 | $user = Socialite::driver($provider)->user(); |
||
| 25 | |||
| 26 | // Getting the data from Google+ |
||
| 27 | $data = [ |
||
| 28 | 'name' => $user->getName(), |
||
| 29 | 'email' => $user->getEmail(), |
||
| 30 | 'username' => '', |
||
| 31 | 'password' => bcrypt('secret'), |
||
| 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 | |||
| 46 |
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.