@@ -156,19 +156,19 @@ |
||
156 | 156 | // FOR LIVE TESTING ONLY |
157 | 157 | |
158 | 158 | $router->any('auth/google/test', [ |
159 | - 'uses' => function () { |
|
159 | + 'uses' => function() { |
|
160 | 160 | return Laravel\Socialite\Facades\Socialite::driver('google')->redirect(); |
161 | 161 | }, |
162 | 162 | ]); |
163 | 163 | |
164 | 164 | $router->any('auth/twitter/test', [ |
165 | - 'uses' => function () { |
|
165 | + 'uses' => function() { |
|
166 | 166 | return Laravel\Socialite\Facades\Socialite::driver('twitter')->redirect(); |
167 | 167 | }, |
168 | 168 | ]); |
169 | 169 | |
170 | 170 | $router->any('auth/facebook/test', [ |
171 | - 'uses' => function () { |
|
171 | + 'uses' => function() { |
|
172 | 172 | return Laravel\Socialite\Facades\Socialite::driver('facebook')->redirect(); |
173 | 173 | }, |
174 | 174 | ]); |
@@ -89,10 +89,10 @@ |
||
89 | 89 | $socialUserProfile->name, |
90 | 90 | $socialUserProfile->email, |
91 | 91 | $socialUserProfile->avatar, |
92 | - isset($socialUserProfile->tokenSecret) ? : null, |
|
93 | - isset($socialUserProfile->expiresIn) ? : null, |
|
94 | - isset($socialUserProfile->refreshToken) ? : null, |
|
95 | - isset($socialUserProfile->avatar_original) ? : null |
|
92 | + isset($socialUserProfile->tokenSecret) ?: null, |
|
93 | + isset($socialUserProfile->expiresIn) ?: null, |
|
94 | + isset($socialUserProfile->refreshToken) ?: null, |
|
95 | + isset($socialUserProfile->avatar_original) ?: null |
|
96 | 96 | ); |
97 | 97 | } else { |
98 | 98 | // if the user exist then update the Tokens |