Passed
Push — master ( 9e3b1c...0f5478 )
by Ion
02:48
created
app/Models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         parent::boot();
103 103
 
104 104
         /** Delete all user associations */
105
-        static::deleting(function ($user) {
105
+        static::deleting(function($user) {
106 106
             if ($user->userTokens) {
107 107
                 foreach ($user->userTokens as $userToken) {
108 108
                     $userToken->delete();
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@
 block discarded – undo
20 20
         /**
21 21
          * Validate alpha spaces
22 22
          */
23
-        Validator::extend('alpha_spaces', function ($attribute, $value) {
23
+        Validator::extend('alpha_spaces', function($attribute, $value) {
24 24
             return preg_match('/^[\pL\s]+$/u', $value);
25 25
         });
26 26
 
27 27
         /**
28 28
          * Validate phone number
29 29
          */
30
-        Validator::extend('phone', function ($attribute, $value) {
30
+        Validator::extend('phone', function($attribute, $value) {
31 31
             $conditions = [];
32 32
             $conditions[] = strlen($value) >= 10;
33 33
             $conditions[] = strlen($value) <= 16;
Please login to merge, or discard this patch.
app/Services/TaskService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $user = Auth::user();
29 29
 
30 30
         $userTasks = UserTask::with(['user', 'assignedUser'])
31
-            ->where(function ($query) use ($user) {
31
+            ->where(function($query) use ($user) {
32 32
                 $query->where('user_id', $user->id)
33 33
                     ->orWhere('assigned_user_id', $user->id);
34 34
             });
Please login to merge, or discard this patch.
app/Services/UserService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function loginUserWithRememberToken($token)
157 157
     {
158
-        return User::whereHas('userTokens', function ($query) use ($token) {
158
+        return User::whereHas('userTokens', function($query) use ($token) {
159 159
             $query->where('token', $token)
160 160
                 ->where('expire_on', '>=', Carbon::now()->format('Y-m-d H:i:s'));
161 161
         })->first();
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      */
258 258
     public function loginUserWithSocial(SocialiteUser $socialUser, Language $language, string $socialId)
259 259
     {
260
-        $user = User::where(function ($query) use ($socialUser, $socialId) {
260
+        $user = User::where(function($query) use ($socialUser, $socialId) {
261 261
             $query->where($socialId, $socialUser->getId())
262 262
                 ->orWhereEncrypted('email', $socialUser->getEmail());
263 263
         })->first();
Please login to merge, or discard this patch.
app/Providers/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function boot()
28 28
     {
29
-        $this->app['auth']->viaRequest('api', function ($request) {
29
+        $this->app['auth']->viaRequest('api', function($request) {
30 30
             if ($request->header('Authorization')) {
31 31
                 $requestToken = explode(' ', $request->header('Authorization'));
32 32
 
Please login to merge, or discard this patch.
app/Services/EmailService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         Lang::setLocale($languageCode);
25 25
 
26
-        Mail::send('emails.forgot', ['user' => $user], function ($message) use ($user) {
26
+        Mail::send('emails.forgot', ['user' => $user], function($message) use ($user) {
27 27
             $message->from(env('MAIL_FROM_ADDRESS'), env('MAIL_FROM_NAME'));
28 28
             $message->subject(Lang::get('forgot.subject'));
29 29
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         Lang::setLocale($languageCode);
43 43
 
44 44
         Mail::send('emails.activation', ['user' => $user],
45
-            function ($message) use ($user) {
45
+            function($message) use ($user) {
46 46
                 $message->from(env('MAIL_FROM_ADDRESS'), env('MAIL_FROM_NAME'));
47 47
                 $message->subject(Lang::get('activate.subject'));
48 48
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         Lang::setLocale($languageCode);
62 62
 
63 63
         Mail::send('emails.emailChange', ['user' => $user],
64
-            function ($message) use ($user) {
64
+            function($message) use ($user) {
65 65
                 $message->from(env('MAIL_FROM_ADDRESS'), env('MAIL_FROM_NAME'));
66 66
                 $message->subject(Lang::get('emailChange.subject'));
67 67
 
Please login to merge, or discard this patch.
app/Services/BaseService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function applySearch($builder, $term)
29 29
     {
30
-        $builder->where(function ($query) use ($term) {
30
+        $builder->where(function($query) use ($term) {
31 31
             foreach ($query->getModel()->getSearchable() as $searchColumn) {
32 32
                 if (in_array($searchColumn, $query->getModel()->getEncrypted())) {
33 33
                     $query->orWhereEncrypted($searchColumn, '%' . $term . '%');
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         $pictureData = [];
184 184
 
185 185
         if ($generateAvatar) {
186
-            $avatarImage = Image::make($image)->resize(200, 200, function ($constraint) {
186
+            $avatarImage = Image::make($image)->resize(200, 200, function($constraint) {
187 187
                 $constraint->aspectRatio();
188 188
                 $constraint->upsize();
189 189
             });
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             return json_encode($pictureData);
207 207
         }
208 208
 
209
-        $mediumImage = Image::make($image)->resize(1024, null, function ($constraint) {
209
+        $mediumImage = Image::make($image)->resize(1024, null, function($constraint) {
210 210
             $constraint->aspectRatio();
211 211
             $constraint->upsize();
212 212
         });
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         $mediumImage->save($mediumPath . $name);
218 218
         $pictureData['medium'] = $mediumPath . $name;
219 219
 
220
-        $originalMaxImage = Image::make($image)->resize(1920, null, function ($constraint) {
220
+        $originalMaxImage = Image::make($image)->resize(1920, null, function($constraint) {
221 221
             $constraint->aspectRatio();
222 222
             $constraint->upsize();
223 223
         });
Please login to merge, or discard this patch.