Completed
Push — development ( b8368b...6d5a30 )
by Claudio
05:38 queued 03:39
created
app/Models/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     {
346 346
         $accountCreated = $this->attributes['account_created'] ?? time();
347 347
 
348
-        return date('Y-m-d', $accountCreated).'T'.date('H:i:s.ZZZZ+ZZZZ', $accountCreated);
348
+        return date('Y-m-d', $accountCreated) . 'T' . date('H:i:s.ZZZZ+ZZZZ', $accountCreated);
349 349
     }
350 350
 
351 351
     /**
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
     {
358 358
         $accountCreated = $this->attributes['account_created'] ?? time();
359 359
 
360
-        return date('Y-m-d', $accountCreated).'T'.date('H:i:s.ZZZZ+ZZZZ', $accountCreated);
360
+        return date('Y-m-d', $accountCreated) . 'T' . date('H:i:s.ZZZZ+ZZZZ', $accountCreated);
361 361
     }
362 362
 
363 363
     /**
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
     {
380 380
         $lastLogin = $this->attributes['last_login'] ?? time();
381 381
 
382
-        return date('Y-m-d', $lastLogin).'T'.date('H:i:s.ZZZZ+ZZZZ', $lastLogin);
382
+        return date('Y-m-d', $lastLogin) . 'T' . date('H:i:s.ZZZZ+ZZZZ', $lastLogin);
383 383
     }
384 384
 
385 385
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
             return response()->json(UserFacade::setSession(User::where('real_name', $fbUser->getId())->first()));
107 107
         }
108 108
 
109
-        (new AccountController())->createUser($request, ['email' => $fbUser->getEmail().'-fblogin'], true, false);
109
+        (new AccountController())->createUser($request, ['email' => $fbUser->getEmail() . '-fblogin'], true, false);
110 110
 
111 111
         UserFacade::updateSession(['last_login' => time(), 'ip_register' => $request->ip(), 'ip_current' => $request->ip(), 'real_name' => $fbUser->getId()]);
112 112
 
Please login to merge, or discard this patch.
app/Http/Controllers/AccountController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             'block_friendrequests' => $request->json()->get('friendRequestEnabled') == false ? '1' : '0',
79 79
         ]);
80 80
 
81
-        foreach ((array) $request->json()->all() as $setting => $value) {
81
+        foreach ((array)$request->json()->all() as $setting => $value) {
82 82
             UserPreferences::find(UserFacade::getUser()->uniqueId)->update([$setting => $value == true ? '1' : '0']);
83 83
         }
84 84
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         if ($sendEmail == true) {
153 153
             Mail::send(['email' => $userInfo['email'], 'name' => $userName, 'url' => "/activate/{$token}",
154
-                'subject'       => 'Welcome to '.Config::get('chocolatey.hotelName'), ]);
154
+                'subject'       => 'Welcome to ' . Config::get('chocolatey.hotelName'), ]);
155 155
         }
156 156
 
157 157
         return UserFacade::setSession((new User())->store($userName, $userInfo['email'], $request->ip(), $newUser));
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     {
171 171
         $partialName = explode(' ', (new Alliteration())->getName());
172 172
 
173
-        return strtolower($partialName[0].strstr($userMail, '@', true).$partialName[1]);
173
+        return strtolower($partialName[0] . strstr($userMail, '@', true) . $partialName[1]);
174 174
     }
175 175
 
176 176
     /**
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         $token = Mail::store(UserFacade::getUser()->email, 'public/registration/activate');
220 220
 
221 221
         Mail::send(['name' => UserFacade::getUser()->name, 'email' => $request->user()->email,
222
-            'url'          => "/activate/{$token}", 'subject' => 'Welcome to '.Config::get('chocolatey.hotelName'),
222
+            'url'          => "/activate/{$token}", 'subject' => 'Welcome to ' . Config::get('chocolatey.hotelName'),
223 223
         ]);
224 224
 
225 225
         return response(null);
Please login to merge, or discard this patch.