@@ -21,10 +21,10 @@ |
||
| 21 | 21 | * SocialLoginAction constructor. |
| 22 | 22 | * |
| 23 | 23 | * @param \App\Containers\SocialAuth\Tasks\GetUserSocialProfileTask $getUserSocialProfileTask |
| 24 | - * @param \App\Containers\User\Tasks\FindSocialUserTask $findSocialUserTask |
|
| 25 | - * @param \App\Containers\User\Tasks\CreateUserBySocialProfileTask $createUserBySocialProfileTask |
|
| 24 | + * @param FindSocialUserTask $findSocialUserTask |
|
| 25 | + * @param CreateUserBySocialProfileTask $createUserBySocialProfileTask |
|
| 26 | 26 | * @param \App\Containers\SocialAuth\Tasks\UpdateUserSocialProfileTask $updateUserSocialProfileTask |
| 27 | - * @param \App\Containers\SocialAuth\Actions\ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask |
|
| 27 | + * @param ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask |
|
| 28 | 28 | */ |
| 29 | 29 | public function __construct( |
| 30 | 30 | GetUserSocialProfileTask $getUserSocialProfileTask, |
@@ -78,10 +78,10 @@ |
||
| 78 | 78 | // find if that user exist in our database |
| 79 | 79 | $user = $this->findSocialUserTask->run($provider, $socialUserProfile->id); |
| 80 | 80 | |
| 81 | - $tokenSecret = isset($socialUserProfile->tokenSecret) ? : null; |
|
| 82 | - $expiresIn = isset($socialUserProfile->expiresIn) ? : null; |
|
| 83 | - $refreshToken = isset($socialUserProfile->refreshToken) ? : null; |
|
| 84 | - $avatar_original = isset($socialUserProfile->avatar_original) ? : null; |
|
| 81 | + $tokenSecret = isset($socialUserProfile->tokenSecret) ?: null; |
|
| 82 | + $expiresIn = isset($socialUserProfile->expiresIn) ?: null; |
|
| 83 | + $refreshToken = isset($socialUserProfile->refreshToken) ?: null; |
|
| 84 | + $avatar_original = isset($socialUserProfile->avatar_original) ?: null; |
|
| 85 | 85 | |
| 86 | 86 | // if user not found then create new one |
| 87 | 87 | if (!$user) { |
@@ -4,8 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\Containers\SocialAuth\Actions\SocialLoginAction; |
| 6 | 6 | use App\Containers\SocialAuth\UI\API\Requests\ApiAuthenticateRequest; |
| 7 | -use App\Containers\SocialAuth\UI\API\Requests\AuthenticateCallbackRequest; |
|
| 8 | -use App\Containers\SocialAuth\UI\API\Requests\AuthenticateOneRequest; |
|
| 9 | 7 | use App\Containers\User\UI\API\Transformers\UserTransformer; |
| 10 | 8 | use App\Port\Controller\Abstracts\PortApiController; |
| 11 | 9 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * DefaultUsersSeeder constructor. |
| 20 | 20 | * |
| 21 | - * @param \App\Containers\Authorization\Data\Seeders\GetRoleTask $getRoleTask |
|
| 21 | + * @param GetRoleTask $getRoleTask |
|
| 22 | 22 | */ |
| 23 | 23 | public function __construct(GetRoleTask $getRoleTask) |
| 24 | 24 | { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | | |
| 65 | 65 | */ |
| 66 | 66 | |
| 67 | - 'user' => env('USER_NAMESPACE').'User', |
|
| 67 | + 'user' => env('USER_NAMESPACE') . 'User', |
|
| 68 | 68 | |
| 69 | 69 | /* |
| 70 | 70 | |-------------------------------------------------------------------------- |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -$router->group(['domain' => 'admin.'. env('APP_URL')], function ($router) { |
|
| 2 | +$router->group(['domain' => 'admin.' . env('APP_URL')], function($router) { |
|
| 3 | 3 | |
| 4 | 4 | $router->get('/', [ |
| 5 | 5 | 'uses' => 'Controller@showLoginPage', |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $this->attachRole($user, $role); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - }else{ |
|
| 46 | + } else { |
|
| 47 | 47 | $this->attachRole($user, $roles); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $this->attachRole($user, $role); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - }else{ |
|
| 46 | + } else{ |
|
| 47 | 47 | $this->attachRole($user, $roles); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | { |
| 44 | 44 | $stripeAccount = $user->stripeAccount; |
| 45 | 45 | |
| 46 | - if(!$stripeAccount){ |
|
| 46 | + if (!$stripeAccount) { |
|
| 47 | 47 | throw new StripeAccountNotFoundException('You need to enter your payment information first (Credit Card), by calling another endpoint.'); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function up() |
| 20 | 20 | { |
| 21 | - Schema::create('applications', function (Blueprint $table) { |
|
| 21 | + Schema::create('applications', function(Blueprint $table) { |
|
| 22 | 22 | $table->increments('id'); |
| 23 | 23 | |
| 24 | 24 | $table->string('name'); |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | return array( |
| 4 | 4 | |
| 5 | 5 | |
| 6 | - /* |
|
| 6 | + /* |
|
| 7 | 7 | |-------------------------------------------------------------------------- |
| 8 | 8 | | Database settings |
| 9 | 9 | |-------------------------------------------------------------------------- |
@@ -11,6 +11,6 @@ discard block |
||
| 11 | 11 | | The name of the table to create in the database |
| 12 | 12 | | |
| 13 | 13 | */ |
| 14 | - 'table_name' => 'countries', |
|
| 14 | + 'table_name' => 'countries', |
|
| 15 | 15 | |
| 16 | 16 | ); |