Completed
Push — master ( 9bb841...b4cfa9 )
by Mahmoud
04:38
created
app/Containers/Authentication/Configs/jwt.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     |
65 65
     */
66 66
 
67
-    'user' => env('USER_NAMESPACE').'User',
67
+    'user' => env('USER_NAMESPACE') . 'User',
68 68
 
69 69
     /*
70 70
     |--------------------------------------------------------------------------
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         |
147 147
         */
148 148
 
149
-        'auth' => function ($app) {
149
+        'auth' => function($app) {
150 150
             return new Tymon\JWTAuth\Providers\Auth\IlluminateAuthAdapter($app['auth']);
151 151
         },
152 152
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         |
160 160
         */
161 161
 
162
-        'storage' => function ($app) {
162
+        'storage' => function($app) {
163 163
             return new Tymon\JWTAuth\Providers\Storage\IlluminateCacheAdapter($app['cache']);
164 164
         },
165 165
 
Please login to merge, or discard this patch.
app/Containers/Countries/Configs/countries.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 return array(
4 4
 
5 5
 
6
- /*
6
+    /*
7 7
   |--------------------------------------------------------------------------
8 8
   | Database settings
9 9
   |--------------------------------------------------------------------------
@@ -11,6 +11,6 @@  discard block
 block discarded – undo
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
 );
Please login to merge, or discard this patch.
app/Port/Configs/repository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
     */
221 221
     'generator'  => [
222 222
         'basePath'      => env('SRC_PATH'),
223
-        'rootNamespace' => env('ROOT_NAMESPACE').'\\',
223
+        'rootNamespace' => env('ROOT_NAMESPACE') . '\\',
224 224
         'paths'         => [
225 225
             'models'       => 'Entities',
226 226
             'repositories' => 'Repositories',
Please login to merge, or discard this patch.
app/Containers/SocialAuth/Actions/SocialLoginAction.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,10 +78,10 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
app/Containers/SocialAuth/UI/API/Controllers/Controller.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.