Completed
Push — master ( 3745d5...788192 )
by Freek
03:26
created
app/Providers/QueryBuilderServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     
11 11
     public function boot()
12 12
     {
13
-        Builder::macro('if', function (bool $condition, string $column, string $operator, $value) {
13
+        Builder::macro('if', function(bool $condition, string $column, string $operator, $value) {
14 14
             if ($condition) {
15 15
                 return $this->where($column, $operator, $value);
16 16
             }
Please login to merge, or discard this patch.
app/Services/Html/FormBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     public function locales(array $locales, string $current) : string
101 101
     {
102
-        $list = array_reduce($locales, function (array $list, string $locale) {
102
+        $list = array_reduce($locales, function(array $list, string $locale) {
103 103
             $list[$locale] = trans("locales.{$locale}");
104 104
 
105 105
             return $list;
Please login to merge, or discard this patch.
app/Providers/BladeDirectiveServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
     public function boot()
15 15
     {
16
-        Blade::directive('json', function ($expression) {
16
+        Blade::directive('json', function($expression) {
17 17
             return "<?php echo json_encode({$expression}); ?>";
18 18
         });
19 19
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/StatisticsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
         }
16 16
 
17 17
         $visitors = Analytics::fetchVisitorsAndPageViews(Period::days(365))
18
-            ->groupBy(function (array $visitorStatistics) {
18
+            ->groupBy(function(array $visitorStatistics) {
19 19
                 return $visitorStatistics['date']->format('Y-m');
20 20
             })
21
-            ->map(function ($visitorStatistics, $yearMonth) {
21
+            ->map(function($visitorStatistics, $yearMonth) {
22 22
                 list($year, $month) = explode('-', $yearMonth);
23 23
 
24 24
                 return [
Please login to merge, or discard this patch.
app/Models/Transformers/MediaTransformer.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
             'customProperties' => json_encode($media->custom_properties, JSON_FORCE_OBJECT),
18 18
             'orderColumn' => $media->order_column,
19 19
             'thumbUrl' => strtolower($media->extension) === 'svg' ?
20
-                $media->getUrl() :
21
-                $media->getUrl('admin'),
20
+                $media->getUrl() : $media->getUrl('admin'),
22 21
             'originalUrl' => $media->getUrl(),
23 22
         ];
24 23
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Front/Api/NewsletterController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 class NewsletterController extends Controller
9 9
 {
10 10
     /**
11
-     * @param \App\Http\Requests\Front\NewsletterSubscriptionRequest $request
11
+     * @param NewsletterSubscriptionRequest $request
12 12
      *
13 13
      * @return \Illuminate\Http\JsonResponse
14 14
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         $result = Newsletter::subscribe($email);
29 29
 
30
-        if (! $result) {
30
+        if (!$result) {
31 31
             return $this->respondWithBadRequest(['message' => fragment('newsletter.subscription.result.error'), 'type' => 'error']);
32 32
         }
33 33
 
Please login to merge, or discard this patch.
app/Http/Controllers/Front/Auth/ResetPasswordController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Get the response for a successful password reset.
61 61
      *
62 62
      * @param  string  $response
63
-     * @return \Illuminate\Http\Response
63
+     * @return \Illuminate\Http\RedirectResponse
64 64
      */
65 65
     protected function sendResetResponse($response)
66 66
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     public function showResetForm(Request $request, $token = null)
46 46
     {
47 47
 
48
-        if (! $user = User::findByToken($token)) {
48
+        if (!$user = User::findByToken($token)) {
49 49
             flash()->error(trans('passwordReset.invalidToken'));
50 50
 
51 51
             return redirect()->to(login_url());
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Auth/ResetPasswordController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     public function showResetForm(Request $request, $token = null)
46 46
     {
47 47
 
48
-        if (! $user = User::findByToken($token)) {
48
+        if (!$user = User::findByToken($token)) {
49 49
             flash()->error(trans('passwordReset.invalidToken'));
50 50
 
51 51
             return redirect()->to(login_url());
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Get the response for a successful password reset.
61 61
      *
62 62
      * @param  string  $response
63
-     * @return \Illuminate\Http\Response
63
+     * @return \Illuminate\Http\RedirectResponse
64 64
      */
65 65
     protected function sendResetResponse($response)
66 66
     {
Please login to merge, or discard this patch.
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         /*
20 20
          * Authenticate the user's personal channel...
21 21
          */
22
-        Broadcast::channel('App.User.*', function ($user, $userId) {
22
+        Broadcast::channel('App.User.*', function($user, $userId) {
23 23
             return (int) $user->id === (int) $userId;
24 24
         });
25 25
     }
Please login to merge, or discard this patch.