Completed
Push — development ( 96664a...f2a74e )
by Claudio
02:38
created
app/Models/Photo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
      */
139 139
     public function getLikesAttribute(): array
140 140
     {
141
-        return array_map(function (array $item) {
141
+        return array_map(function(array $item) {
142 142
             return $item['username'];
143 143
         }, PhotoLike::query()->select('username')->where('photo_id', $this->attributes['id'])->get(['username'])->toArray());
144 144
     }
Please login to merge, or discard this patch.
app/Http/Controllers/ImagingController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 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
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/AccountSecurityController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             'firstQuestion' => $request->json()->get('questionId1'),
55 55
             'secondQuestion' => $request->json()->get('questionId2'),
56 56
             'firstAnswer' => $request->json()->get('answer1'),
57
-            'secondAnswer' => $request->json()->get('answer2'),]);
57
+            'secondAnswer' => $request->json()->get('answer2'), ]);
58 58
 
59 59
         return response()->json(null, 204);
60 60
     }
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
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         return response()->json(['message' => 'login.user_banned',
51 51
             'expiryTime' => UserFacade::getUser()->banDetails->ban_expire,
52
-            'reason' => UserFacade::getUser()->banDetails->ban_reason,], 401);
52
+            'reason' => UserFacade::getUser()->banDetails->ban_reason, ], 401);
53 53
     }
54 54
 
55 55
     /**
Please login to merge, or discard this patch.
app/Helpers/User.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 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
 
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
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     public function checkWords(string $needle): bool
46 46
     {
47
-        return count(array_filter(Config::get('chocolatey.invalid'), function ($illegal) use ($needle) {
47
+        return count(array_filter(Config::get('chocolatey.invalid'), function($illegal) use ($needle) {
48 48
                 return stripos($needle, $illegal) !== false;
49 49
             })) == 0;
50 50
     }
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
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * @var array
66 66
      */
67 67
     protected $appends = ['habboClubMember', 'buildersClubMember', 'sessionLoginId', 'loginLogId', 'identityVerified', 'identityType', 'trusted', 'country', 'traits',
68
-        'uniqueId', 'name', 'figureString', 'lastWebAccess', 'creationTime', 'email', 'identityId', 'emailVerified', 'accountId', 'memberSince', 'isBanned', 'banDetails', 'isStaff',];
68
+        'uniqueId', 'name', 'figureString', 'lastWebAccess', 'creationTime', 'email', 'identityId', 'emailVerified', 'accountId', 'memberSince', 'isBanned', 'banDetails', 'isStaff', ];
69 69
 
70 70
     /**
71 71
      * The attributes that are mass assignable.
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * @var array
74 74
      */
75 75
     protected $fillable = ['mail', 'id', 'username', 'auth_ticket', 'last_login', 'ip_current', 'ip_register', 'mail_verified', 'account_day_of_birth',
76
-        'real_name', 'look', 'gender', 'credits', 'pixels', 'home_room',];
76
+        'real_name', 'look', 'gender', 'credits', 'pixels', 'home_room', ];
77 77
 
78 78
     /**
79 79
      * The attributes excluded from the model's JSON form.
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * @var array
82 82
      */
83 83
     protected $hidden = ['id', 'username', 'mail', 'account_created', 'password', 'mail_verified', 'real_name', 'account_day_of_birth',
84
-        'last_online', 'last_login', 'ip_register', 'auth_ticket', 'home_room', 'points', 'look', 'ip_current', 'online', 'pixels', 'credits', 'gender', 'points', 'rank',];
84
+        'last_online', 'last_login', 'ip_register', 'auth_ticket', 'home_room', 'points', 'look', 'ip_current', 'online', 'pixels', 'credits', 'gender', 'points', 'rank', ];
85 85
 
86 86
     /**
87 87
      * The attributes that should be casted to native types.
Please login to merge, or discard this patch.
app/Models/Room.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @var array
51 51
      */
52 52
     protected $maps = ['uniqueId' => 'id', 'ownerName' => 'owner_name', 'ownerUniqueId' => 'owner_id', 'doorMode' => 'state',
53
-        'leaderboardValue' => 'score', 'maximumVisitors' => 'users_max', 'habboGroupId' => 'guild_id', 'rating' => 'score',];
53
+        'leaderboardValue' => 'score', 'maximumVisitors' => 'users_max', 'habboGroupId' => 'guild_id', 'rating' => 'score', ];
54 54
 
55 55
     /**
56 56
      * The Appender(s) of the Model.
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @var array
59 59
      */
60 60
     protected $appends = ['uniqueId', 'leaderboardRank', 'thumbnailUrl', 'imageUrl', 'leaderboardValue', 'doorMode', 'maximumVisitors',
61
-        'publicRoom', 'ownerUniqueId', 'ownerName', 'showOwnerName', 'categories', 'rating',];
61
+        'publicRoom', 'ownerUniqueId', 'ownerName', 'showOwnerName', 'categories', 'rating', ];
62 62
 
63 63
     /**
64 64
      * The attributes excluded from the model's JSON form.
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     protected $hidden = ['owner_name', 'owner_id', 'is_public', 'state', 'password', 'model', 'users', 'users_max', 'guild_id', 'category', 'score', 'paper_floor', 'paper_wall',
69 69
         'paper_landscape', 'thickness_wall', 'wall_height', 'thickness_floor', 'moodlight_data', 'is_staff_picked', 'allow_other_pets', 'allow_other_pets_eat', 'allow_walkthrough',
70 70
         'allow_hidewall', 'chat_mode', 'chat_weight', 'chat_speed', 'chat_hearing_distance', 'chat_protection', 'override_model', 'who_can_mute', 'who_can_kick', 'who_can_ban', 'poll_id',
71
-        'roller_speed', 'promoted', 'trade_mode', 'move_diagonally',];
71
+        'roller_speed', 'promoted', 'trade_mode', 'move_diagonally', ];
72 72
 
73 73
     /**
74 74
      * Stores a new Room.
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function getTagsAttribute(): array
116 116
     {
117
-        return array_filter(explode(';', $this->attributes['tags']), function ($element) {
117
+        return array_filter(explode(';', $this->attributes['tags']), function($element) {
118 118
             return !empty($element);
119 119
         });
120 120
     }
Please login to merge, or discard this patch.
app/Models/UserPreferences.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      * @var array
44 44
      */
45 45
     protected $fillable = ['emailFriendRequestNotificationEnabled', 'emailGiftNotificationEnabled', 'emailGroupNotificationEnabled', 'emailMiniMailNotificationEnabled',
46
-        'emailNewsletterEnabled', 'emailRoomMessageNotificationEnabled', 'friendCanFollow', 'friendRequestEnabled', 'offlineMessagingEnabled', 'onlineStatusVisible', 'profileVisible',];
46
+        'emailNewsletterEnabled', 'emailRoomMessageNotificationEnabled', 'friendCanFollow', 'friendRequestEnabled', 'offlineMessagingEnabled', 'onlineStatusVisible', 'profileVisible', ];
47 47
 
48 48
     /**
49 49
      * Store an User Preference set on the Database.
Please login to merge, or discard this patch.