Completed
Push — development ( b8368b...6d5a30 )
by Claudio
05:38 queued 03:39
created
app/Models/User.php 2 patches
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.
Switch Indentation   +176 added lines, -176 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1
-<?php
1
+ <?php
2 2
 
3
-namespace App\Models;
3
+ namespace App\Models;
4 4
 
5
-use Illuminate\Auth\Authenticatable;
6
-use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
7
-use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
8
-use Illuminate\Database\Eloquent\Model;
9
-use Illuminate\Support\Facades\Config;
10
-use Laravel\Lumen\Auth\Authorizable;
11
-use Sofa\Eloquence\Eloquence;
12
-use Sofa\Eloquence\Mappable;
5
+ use Illuminate\Auth\Authenticatable;
6
+ use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
7
+ use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
8
+ use Illuminate\Database\Eloquent\Model;
9
+ use Illuminate\Support\Facades\Config;
10
+ use Laravel\Lumen\Auth\Authorizable;
11
+ use Sofa\Eloquence\Eloquence;
12
+ use Sofa\Eloquence\Mappable;
13 13
 
14 14
 /**
15 15
  * Class User.
@@ -20,77 +20,77 @@  discard block
 block discarded – undo
20 20
  * @property string name
21 21
  * @property string motto
22 22
  */
23
-class User extends Model implements AuthenticatableContract, AuthorizableContract
24
-{
25
-    use Authenticatable, Authorizable, Eloquence, Mappable;
23
+ class User extends Model implements AuthenticatableContract, AuthorizableContract
24
+ {
25
+     use Authenticatable, Authorizable, Eloquence, Mappable;
26 26
 
27
-    /**
27
+     /**
28 28
      * Disable Timestamps.
29 29
      *
30 30
      * @var bool
31 31
      */
32
-    public $timestamps = false;
32
+     public $timestamps = false;
33 33
 
34
-    /**
34
+     /**
35 35
      * User Traits.
36 36
      *
37 37
      * @var array
38 38
      */
39
-    public $traits = ['USER'];
39
+     public $traits = ['USER'];
40 40
 
41
-    /**
41
+     /**
42 42
      * The table associated with the model.
43 43
      *
44 44
      * @var string
45 45
      */
46
-    protected $table = 'users';
46
+     protected $table = 'users';
47 47
 
48
-    /**
48
+     /**
49 49
      * Primary Key of the Table.
50 50
      *
51 51
      * @var string
52 52
      */
53
-    protected $primaryKey = 'id';
53
+     protected $primaryKey = 'id';
54 54
 
55
-    /**
55
+     /**
56 56
      * The attributes that will be mapped.
57 57
      *
58 58
      * @var array
59 59
      */
60
-    protected $maps = ['uniqueId' => 'id', 'name' => 'username', 'figureString' => 'look', 'lastWebAccess' => 'last_login', 'creationTime' => 'account_created', 'email' => 'mail', 'identityId' => 'id', 'accountId' => 'id'];
60
+     protected $maps = ['uniqueId' => 'id', 'name' => 'username', 'figureString' => 'look', 'lastWebAccess' => 'last_login', 'creationTime' => 'account_created', 'email' => 'mail', 'identityId' => 'id', 'accountId' => 'id'];
61 61
 
62
-    /**
62
+     /**
63 63
      * The Appender(s) of the Model.
64 64
      *
65 65
      * @var array
66 66
      */
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', 'realEmail', ];
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', 'realEmail', ];
69 69
 
70
-    /**
70
+     /**
71 71
      * The attributes that are mass assignable.
72 72
      *
73 73
      * @var array
74 74
      */
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', ];
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', ];
77 77
 
78
-    /**
78
+     /**
79 79
      * The attributes excluded from the model's JSON form.
80 80
      *
81 81
      * @var array
82 82
      */
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', ];
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', ];
85 85
 
86
-    /**
86
+     /**
87 87
      * The attributes that should be casted to native types.
88 88
      *
89 89
      * @var array
90 90
      */
91
-    protected $casts = ['traits' => 'string'];
91
+     protected $casts = ['traits' => 'string'];
92 92
 
93
-    /**
93
+     /**
94 94
      * Store an User on the Database.
95 95
      *
96 96
      * @param string $username
@@ -100,186 +100,186 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @return User
102 102
      */
103
-    public function store(string $username, string $email, string $address = '', bool $newUser = true): User
104
-    {
105
-        $this->attributes['username'] = $username;
106
-        $this->attributes['mail'] = $email;
103
+     public function store(string $username, string $email, string $address = '', bool $newUser = true): User
104
+     {
105
+         $this->attributes['username'] = $username;
106
+         $this->attributes['mail'] = $email;
107 107
 
108
-        $this->attributes['motto'] = Config::get('chocolatey.motto');
109
-        $this->attributes['look'] = Config::get('chocolatey.figure');
110
-        $this->attributes['auth_ticket'] = '';
108
+         $this->attributes['motto'] = Config::get('chocolatey.motto');
109
+         $this->attributes['look'] = Config::get('chocolatey.figure');
110
+         $this->attributes['auth_ticket'] = '';
111 111
 
112
-        $this->attributes['password'] = hash(Config::get('chocolatey.security.hash'), openssl_random_pseudo_bytes(50));
113
-        $this->attributes['account_created'] = time();
112
+         $this->attributes['password'] = hash(Config::get('chocolatey.security.hash'), openssl_random_pseudo_bytes(50));
113
+         $this->attributes['account_created'] = time();
114 114
 
115
-        $this->attributes['ip_current'] = $address;
115
+         $this->attributes['ip_current'] = $address;
116 116
 
117
-        $this->traits = $newUser ? ['NEW_USER', 'USER'] : ['USER'];
117
+         $this->traits = $newUser ? ['NEW_USER', 'USER'] : ['USER'];
118 118
 
119
-        $this->timestamps = false;
119
+         $this->timestamps = false;
120 120
 
121
-        $this->save();
122
-        $this->createData();
121
+         $this->save();
122
+         $this->createData();
123 123
 
124
-        return $this;
125
-    }
124
+         return $this;
125
+     }
126 126
 
127
-    /**
127
+     /**
128 128
      * Get User E-mail.
129 129
      *
130 130
      * @return string
131 131
      */
132
-    public function getRealEmailAttribute()
133
-    {
134
-        return $this->attributes['mail'];
135
-    }
132
+     public function getRealEmailAttribute()
133
+     {
134
+         return $this->attributes['mail'];
135
+     }
136 136
 
137
-    /**
137
+     /**
138 138
      * Get User E-mail.
139 139
      *
140 140
      * @return string
141 141
      */
142
-    public function getMailAttribute()
143
-    {
144
-        return strpos('-fblogin', $this->attributes['mail']) !== 0 ? 'fblogin' : $this->attributes['mail'];
145
-    }
142
+     public function getMailAttribute()
143
+     {
144
+         return strpos('-fblogin', $this->attributes['mail']) !== 0 ? 'fblogin' : $this->attributes['mail'];
145
+     }
146 146
 
147
-    /**
147
+     /**
148 148
      * Store an User Alias Set on Database.
149 149
      */
150
-    public function createData()
151
-    {
152
-        (new UserPreferences())->store($this->attributes['id']);
153
-    }
150
+     public function createData()
151
+     {
152
+         (new UserPreferences())->store($this->attributes['id']);
153
+     }
154 154
 
155
-    /**
155
+     /**
156 156
      * Get Is User is Banned.
157 157
      *
158 158
      * @return bool
159 159
      */
160
-    public function getIsBannedAttribute(): bool
161
-    {
162
-        $ban = Ban::where('user_id', $this->attributes['id'])->first();
160
+     public function getIsBannedAttribute(): bool
161
+     {
162
+         $ban = Ban::where('user_id', $this->attributes['id'])->first();
163 163
 
164
-        if ($ban == null) {
165
-            return false;
166
-        }
164
+         if ($ban == null) {
165
+             return false;
166
+         }
167 167
 
168
-        return $ban->ban_expire >= time();
169
-    }
168
+         return $ban->ban_expire >= time();
169
+     }
170 170
 
171
-    /**
171
+     /**
172 172
      * Check if Is Staff.
173 173
      *
174 174
      * @return bool
175 175
      */
176
-    public function getIsStaffAttribute(): bool
177
-    {
178
-        return array_key_exists('rank', $this->attributes) ? $this->attributes['rank'] >= 5 : false;
179
-    }
176
+     public function getIsStaffAttribute(): bool
177
+     {
178
+         return array_key_exists('rank', $this->attributes) ? $this->attributes['rank'] >= 5 : false;
179
+     }
180 180
 
181
-    /**
181
+     /**
182 182
      * Get Ban Details.
183 183
      *
184 184
      * @return Ban
185 185
      */
186
-    public function getBanDetailsAttribute()
187
-    {
188
-        return Ban::where('user_id', $this->attributes['id'])->first();
189
-    }
186
+     public function getBanDetailsAttribute()
187
+     {
188
+         return Ban::where('user_id', $this->attributes['id'])->first();
189
+     }
190 190
 
191
-    /**
191
+     /**
192 192
      * Get Current User Country.
193 193
      *
194 194
      * @TODO: Implement this in a proper way
195 195
      *
196 196
      * @return string
197 197
      */
198
-    public function getCountryAttribute(): string
199
-    {
200
-        return 'com';
201
-    }
198
+     public function getCountryAttribute(): string
199
+     {
200
+         return 'com';
201
+     }
202 202
 
203
-    /**
203
+     /**
204 204
      * Set the Trait Attribute.
205 205
      *
206 206
      * @param array $accountType
207 207
      */
208
-    public function setTraitsAttribute(array $accountType)
209
-    {
210
-        $this->traits = $accountType;
211
-    }
208
+     public function setTraitsAttribute(array $accountType)
209
+     {
210
+         $this->traits = $accountType;
211
+     }
212 212
 
213
-    /**
213
+     /**
214 214
      * What is this field?
215 215
      *
216 216
      * @return array
217 217
      */
218
-    public function getTraitsAttribute(): array
219
-    {
220
-        if (array_key_exists('rank', $this->attributes) && $this->attributes['rank'] >= config('chocolatey.minRank')) {
221
-            return ['STAFF'];
222
-        }
218
+     public function getTraitsAttribute(): array
219
+     {
220
+         if (array_key_exists('rank', $this->attributes) && $this->attributes['rank'] >= config('chocolatey.minRank')) {
221
+             return ['STAFF'];
222
+         }
223 223
 
224
-        return $this->traits;
225
-    }
224
+         return $this->traits;
225
+     }
226 226
 
227
-    /**
227
+     /**
228 228
      * We don't care about this?
229 229
      *
230 230
      * @return bool
231 231
      */
232
-    public function getTrustedAttribute(): bool
233
-    {
234
-        if (UserSecurity::find($this->attributes['id']) == null) {
235
-            return true;
236
-        }
232
+     public function getTrustedAttribute(): bool
233
+     {
234
+         if (UserSecurity::find($this->attributes['id']) == null) {
235
+             return true;
236
+         }
237 237
 
238
-        return in_array($this->attributes['ip_current'],
239
-            UserSecurity::find($this->attributes['id'])->trustedDevices);
240
-    }
238
+         return in_array($this->attributes['ip_current'],
239
+             UserSecurity::find($this->attributes['id'])->trustedDevices);
240
+     }
241 241
 
242
-    /**
242
+     /**
243 243
      * What is this field?
244 244
      *
245 245
      * @return string
246 246
      */
247
-    public function getIdentityTypeAttribute(): string
248
-    {
249
-        return strpos('-fblogin', $this->attributes['mail']) !== 0 ? 'FACEBOOK' : 'HABBO';
250
-    }
247
+     public function getIdentityTypeAttribute(): string
248
+     {
249
+         return strpos('-fblogin', $this->attributes['mail']) !== 0 ? 'FACEBOOK' : 'HABBO';
250
+     }
251 251
 
252
-    /**
252
+     /**
253 253
      * We don't care about this, every user is trusted.
254 254
      *
255 255
      * @return bool
256 256
      */
257
-    public function getIdentityVerifiedAttribute(): bool
258
-    {
259
-        return true;
260
-    }
257
+     public function getIdentityVerifiedAttribute(): bool
258
+     {
259
+         return true;
260
+     }
261 261
 
262
-    /**
262
+     /**
263 263
      * We don't care about this.
264 264
      *
265 265
      * @return int
266 266
      */
267
-    public function getLoginLogIdAttribute(): int
268
-    {
269
-        return 1;
270
-    }
267
+     public function getLoginLogIdAttribute(): int
268
+     {
269
+         return 1;
270
+     }
271 271
 
272
-    /**
272
+     /**
273 273
      * We don't care about this.
274 274
      *
275 275
      * @return int
276 276
      */
277
-    public function getSessionLoginIdAttribute(): int
278
-    {
279
-        return 1;
280
-    }
277
+     public function getSessionLoginIdAttribute(): int
278
+     {
279
+         return 1;
280
+     }
281 281
 
282
-    /**
282
+     /**
283 283
      * Get the HabboClub Attribute
284 284
      * In a Retro Habbo everyone is HC, yeah?
285 285
      *
@@ -287,12 +287,12 @@  discard block
 block discarded – undo
287 287
      *
288 288
      * @return bool
289 289
      */
290
-    public function getHabboClubMemberAttribute(): bool
291
-    {
292
-        return Config::get('chocolatey.ads.enabled') == false;
293
-    }
290
+     public function getHabboClubMemberAttribute(): bool
291
+     {
292
+         return Config::get('chocolatey.ads.enabled') == false;
293
+     }
294 294
 
295
-    /**
295
+     /**
296 296
      * Get the Builders Club Attribute
297 297
      * In a Retro Habbo everyone is BC, yeah?
298 298
      *
@@ -300,75 +300,75 @@  discard block
 block discarded – undo
300 300
      *
301 301
      * @return bool
302 302
      */
303
-    public function getBuildersClubMemberAttribute(): bool
304
-    {
305
-        return Config::get('chocolatey.ads.enabled') == false;
306
-    }
303
+     public function getBuildersClubMemberAttribute(): bool
304
+     {
305
+         return Config::get('chocolatey.ads.enabled') == false;
306
+     }
307 307
 
308
-    /**
308
+     /**
309 309
      * Get GTimestamp in Habbo UserCurrency.
310 310
      *
311 311
      * @return string
312 312
      */
313
-    public function getAccountCreatedAttribute(): string
314
-    {
315
-        $accountCreated = $this->attributes['account_created'] ?? time();
313
+     public function getAccountCreatedAttribute(): string
314
+     {
315
+         $accountCreated = $this->attributes['account_created'] ?? time();
316 316
 
317
-        return date('Y-m-d', $accountCreated).'T'.date('H:i:s.ZZZZ+ZZZZ', $accountCreated);
318
-    }
317
+         return date('Y-m-d', $accountCreated).'T'.date('H:i:s.ZZZZ+ZZZZ', $accountCreated);
318
+     }
319 319
 
320
-    /**
320
+     /**
321 321
      * Get GTimestamp in Habbo UserCurrency.
322 322
      *
323 323
      * @return string
324 324
      */
325
-    public function getMemberSinceAttribute(): string
326
-    {
327
-        $accountCreated = $this->attributes['account_created'] ?? time();
325
+     public function getMemberSinceAttribute(): string
326
+     {
327
+         $accountCreated = $this->attributes['account_created'] ?? time();
328 328
 
329
-        return date('Y-m-d', $accountCreated).'T'.date('H:i:s.ZZZZ+ZZZZ', $accountCreated);
330
-    }
329
+         return date('Y-m-d', $accountCreated).'T'.date('H:i:s.ZZZZ+ZZZZ', $accountCreated);
330
+     }
331 331
 
332
-    /**
332
+     /**
333 333
      * Retrieve User Figure String.
334 334
      *
335 335
      * @return string
336 336
      */
337
-    public function getFigureStringAttribute(): string
338
-    {
339
-        return $this->attributes['look'] ?? 'hr-115-42.hd-195-19.ch-3030-82.lg-275-1408.fa-1201.ca-1804-64';
340
-    }
337
+     public function getFigureStringAttribute(): string
338
+     {
339
+         return $this->attributes['look'] ?? 'hr-115-42.hd-195-19.ch-3030-82.lg-275-1408.fa-1201.ca-1804-64';
340
+     }
341 341
 
342
-    /**
342
+     /**
343 343
      * Get GTimestamp in Habbo UserCurrency.
344 344
      *
345 345
      * @return false|string
346 346
      */
347
-    public function getLastLoginAttribute(): string
348
-    {
349
-        $lastLogin = $this->attributes['last_login'] ?? time();
347
+     public function getLastLoginAttribute(): string
348
+     {
349
+         $lastLogin = $this->attributes['last_login'] ?? time();
350 350
 
351
-        return date('Y-m-d', $lastLogin).'T'.date('H:i:s.ZZZZ+ZZZZ', $lastLogin);
352
-    }
351
+         return date('Y-m-d', $lastLogin).'T'.date('H:i:s.ZZZZ+ZZZZ', $lastLogin);
352
+     }
353 353
 
354
-    /**
354
+     /**
355 355
      * Get E-Mail Verified Attribute.
356 356
      *
357 357
      * @return bool
358 358
      */
359
-    public function getEmailVerifiedAttribute(): bool
360
-    {
361
-        return strpos('-fblogin', $this->attributes['mail']) !== 0 ?
362
-            true : ($this->getChocolateyId()->mail_verified ?? false);
363
-    }
359
+     public function getEmailVerifiedAttribute(): bool
360
+     {
361
+         return strpos('-fblogin', $this->attributes['mail']) !== 0 ?
362
+             true : ($this->getChocolateyId()->mail_verified ?? false);
363
+     }
364 364
 
365
-    /**
365
+     /**
366 366
      * Get Account Chocolatey Id.
367 367
      *
368 368
      * @return ChocolateyId
369 369
      */
370
-    public function getChocolateyId()
371
-    {
372
-        return ChocolateyId::find($this->attributes['mail']);
373
-    }
370
+     public function getChocolateyId()
371
+     {
372
+         return ChocolateyId::find($this->attributes['mail']);
373
+     }
374 374
 }
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.