Completed
Pull Request — development (#278)
by Claudio
07:51 queued 05:51
created
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function register()
15 15
     {
16 16
         // Register Mailing Services
17
-        $this->app->singleton('mailer', function ($app) {
17
+        $this->app->singleton('mailer', function($app) {
18 18
             return $app->loadComponent('mail', 'Illuminate\Mail\MailServiceProvider', 'mailer');
19 19
         });
20 20
     }
Please login to merge, or discard this patch.
app/Providers/SessionServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register()
20 20
     {
21
-        $this->app->bind('chocosession', function () {
21
+        $this->app->bind('chocosession', function() {
22 22
             return Session::getInstance();
23 23
         });
24 24
 
Please login to merge, or discard this patch.
app/Providers/NuxServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register()
20 20
     {
21
-        $this->app->bind('choconux', function () {
21
+        $this->app->bind('choconux', function() {
22 22
             return Nux::getInstance();
23 23
         });
24 24
     }
Please login to merge, or discard this patch.
app/Http/Middleware/Maintenance.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
      */
22 22
     public function handle($request, Closure $next)
23 23
     {
24
-        return Config::get('maintenance.enforce') ? response()->json(['error' => 'maintenance'], 503) :
25
-            $next($request);
24
+        return Config::get('maintenance.enforce') ? response()->json(['error' => 'maintenance'], 503) : $next($request);
26 25
     }
27 26
 }
Please login to merge, or discard this patch.
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/Providers/UserServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register()
20 20
     {
21
-        $this->app->bind('chocouser', function () {
21
+        $this->app->bind('chocouser', function() {
22 22
             return User::getInstance();
23 23
         });
24 24
     }
Please login to merge, or discard this patch.
app/Providers/MailServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register()
20 20
     {
21
-        $this->app->bind('chocomail', function () {
21
+        $this->app->bind('chocomail', function() {
22 22
             return Mail::getInstance();
23 23
         });
24 24
     }
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.