Completed
Push — development ( 50b604...8f1755 )
by Claudio
04:03 queued 01:22
created
app/Models/Room.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
      */
168 168
     public function getTagsAttribute(): array
169 169
     {
170
-        return array_filter(explode(';', $this->attributes['tags']), function ($element) {
170
+        return array_filter(explode(';', $this->attributes['tags']), function($element) {
171 171
             return !empty($element);
172 172
         });
173 173
     }
Please login to merge, or discard this patch.
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/Models/ShopHistory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     public function getCreationTimeAttribute(): string
82 82
     {
83
-        return date('Y-m-d', strtotime($this->attributes['created_at'])).'T'.
83
+        return date('Y-m-d', strtotime($this->attributes['created_at'])) . 'T' .
84 84
             date('H:i:s.ZZZZ+ZZZZ', strtotime($this->attributes['created_at']));
85 85
     }
86 86
 
Please login to merge, or discard this patch.
app/Http/Controllers/ImagingController.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function getUserHead(Request $request)
27 27
     {
28
-        return redirect(Config::get('chocolatey.imaging').'avatarimage?figure='.($request->has('figure') ? $request->input('figure') :
29
-                User::where('username', $request->input('user'))->first()->figureString).'&size=l&headonly=1');
28
+        return redirect(Config::get('chocolatey.imaging') . 'avatarimage?figure=' . ($request->has('figure') ? $request->input('figure') : User::where('username', $request->input('user'))->first()->figureString) . '&size=l&headonly=1');
30 29
     }
31 30
 
32 31
     /**
@@ -39,7 +38,7 @@  discard block
 block discarded – undo
39 38
      */
40 39
     public function getUserBody(string $figure)
41 40
     {
42
-        return redirect(Config::get('chocolatey.imaging')."avatar/{$figure}");
41
+        return redirect(Config::get('chocolatey.imaging') . "avatar/{$figure}");
43 42
     }
44 43
 
45 44
     /**
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
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
         $token = Mail::store($userInfo['email'], 'public/registration/activate');
146 146
 
147
-        Mail::send(['email' => $userInfo['email'], 'name' => $userName, 'url' => "/activate/{$token}", 'subject' => 'Welcome to '.Config::get('chocolatey.hotelName')]);
147
+        Mail::send(['email' => $userInfo['email'], 'name' => $userName, 'url' => "/activate/{$token}", 'subject' => 'Welcome to ' . Config::get('chocolatey.hotelName')]);
148 148
 
149 149
         return UserFacade::setSession((new User())->store($userName, $userInfo['email'], $request->ip(), $newUser));
150 150
     }
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     {
163 163
         $partialName = explode(' ', (new Alliteration())->getName());
164 164
 
165
-        return strtolower($partialName[0].strstr($userMail, '@', true).$partialName[1]);
165
+        return strtolower($partialName[0] . strstr($userMail, '@', true) . $partialName[1]);
166 166
     }
167 167
 
168 168
     /**
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         $token = Mail::store(UserFacade::getUser()->email, 'public/registration/activate');
212 212
 
213 213
         Mail::send(['name' => UserFacade::getUser()->name, 'email' => $request->user()->email,
214
-            'url'          => "/activate/{$token}", 'subject' => 'Welcome to '.Config::get('chocolatey.hotelName'),
214
+            'url'          => "/activate/{$token}", 'subject' => 'Welcome to ' . Config::get('chocolatey.hotelName'),
215 215
         ]);
216 216
 
217 217
         return response(null);
Please login to merge, or discard this patch.
app/Models/Photo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function getIdAttribute(): string
56 56
     {
57
-        return (string) $this->attributes['id'];
57
+        return (string)$this->attributes['id'];
58 58
     }
59 59
 
60 60
     /**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function getLikesAttribute(): array
108 108
     {
109
-        return array_map(function (array $item) {
109
+        return array_map(function(array $item) {
110 110
             return $item['username'];
111 111
         }, PhotoLike::query()->select('username')->where('photo_id', $this->attributes['id'])->get(['username'])->toArray());
112 112
     }
Please login to merge, or discard this patch.
app/Helpers/Validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function checkWords(string $needle): bool
48 48
     {
49
-        return count(array_filter(Config::get('chocolatey.invalid'), function ($illegal) use ($needle) {
49
+        return count(array_filter(Config::get('chocolatey.invalid'), function($illegal) use ($needle) {
50 50
             return stripos($needle, $illegal) !== false;
51 51
         })) == 0;
52 52
     }
Please login to merge, or discard this patch.
app/Helpers/User.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $chocolateyId = ChocolateyId::find($request->json()->get('email'));
77 77
 
78
-        $user = $chocolateyId->last_logged_id == 0 ? UserModel::where('mail', $request->json()->get('email'))->first() :
79
-            UserModel::find($chocolateyId->last_logged_id);
78
+        $user = $chocolateyId->last_logged_id == 0 ? UserModel::where('mail', $request->json()->get('email'))->first() : UserModel::find($chocolateyId->last_logged_id);
80 79
 
81 80
         $chocolateyId->last_logged_id = $user->uniqueId;
82 81
 
@@ -91,7 +90,7 @@  discard block
 block discarded – undo
91 90
      */
92 91
     public function hasSession()
93 92
     {
94
-        return (bool) Session::get(Config::get('chocolatey.security.session'));
93
+        return (bool)Session::get(Config::get('chocolatey.security.session'));
95 94
     }
96 95
 
97 96
     /**
Please login to merge, or discard this patch.