Completed
Push — development ( 96664a...f2a74e )
by Claudio
02:38
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/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/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/Http/Controllers/AccountSecurityController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
      *
201 201
      * @param Request $request
202 202
      *
203
-     * @return mixed
203
+     * @return JsonResponse
204 204
      */
205 205
     public function confirmChangePassword(Request $request): JsonResponse
206 206
     {
Please login to merge, or discard this 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.