Completed
Push — master ( 918716...826605 )
by Sebastian
06:09
created
app/Services/Navigation/Menu/BackMenus.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,26 +10,26 @@  discard block
 block discarded – undo
10 10
 {
11 11
     public function register()
12 12
     {
13
-        Menu::macro('back', function () {
13
+        Menu::macro('back', function() {
14 14
             return Menu::new()
15 15
                 ->setActiveClass('-active')
16 16
                 ->setActiveFromRequest('/blender');
17 17
         });
18 18
 
19
-        Menu::macro('moduleGroup', function ($title) {
19
+        Menu::macro('moduleGroup', function($title) {
20 20
             return Menu::back()
21 21
                 ->addParentClass('menu_group')
22 22
                 ->setParentAttribute('data-menu-group', fragment("back.nav.{$title}"))
23
-                ->registerFilter(function (Link $link) {
23
+                ->registerFilter(function(Link $link) {
24 24
                     $link->addParentClass('menu_group_item');
25 25
                 });
26 26
         });
27 27
 
28
-        Menu::macro('module', function (string $action, string $name) {
28
+        Menu::macro('module', function(string $action, string $name) {
29 29
             return $this->action("Back\\{$action}", fragment("back.{$name}"));
30 30
         });
31 31
 
32
-        Menu::macro('backMain', function () {
32
+        Menu::macro('backMain', function() {
33 33
             return Menu::back()
34 34
                 ->addClass('menu_groups')
35 35
                 ->setAttribute('data-menu-groups')
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                 );
54 54
         });
55 55
 
56
-        Menu::macro('backUser', function () {
56
+        Menu::macro('backUser', function() {
57 57
 
58 58
             $avatar = HTML::avatar(current_user(), '-small').
59 59
                 el('span.:response-desktop-only', current_user()->email);
Please login to merge, or discard this patch.
app/Providers/ConfigServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         config()->set(
53 53
             'mail.recipients',
54
-            collect(config('mail.recipients'))->map(function () {
54
+            collect(config('mail.recipients'))->map(function() {
55 55
                 return '[email protected]';
56 56
             })
57 57
         );
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/Services/Navigation/Menu/FrontMenus.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,25 +10,25 @@
 block discarded – undo
10 10
 {
11 11
     public function register()
12 12
     {
13
-        Menu::macro('front', function () {
13
+        Menu::macro('front', function() {
14 14
             return Menu::new()->setActiveFromRequest(locale());
15 15
         });
16 16
 
17
-        Menu::macro('main', function () {
17
+        Menu::macro('main', function() {
18 18
             return Menu::front()
19 19
                 ->addClass('nav navbar-nav')
20 20
                 ->url('/', 'Home');
21 21
         });
22 22
 
23
-        Menu::macro('language', function () {
24
-            return locales()->reduce(function (Menu $menu, string $locale) {
23
+        Menu::macro('language', function() {
24
+            return locales()->reduce(function(Menu $menu, string $locale) {
25 25
                 $menu->url($locale, $locale);
26 26
             }, Menu::front());
27 27
         });
28 28
 
29
-        Menu::macro('articleSiblings', function (Article $article) {
29
+        Menu::macro('articleSiblings', function(Article $article) {
30 30
             return app(ArticleRepository::class)->getSiblings($article)
31
-                ->reduce(function (Menu $menu, Article $article) {
31
+                ->reduce(function(Menu $menu, Article $article) {
32 32
                     return $menu->url($article->fullUrl, $article->name);
33 33
                 }, Menu::front());
34 34
         });
Please login to merge, or discard this patch.
app/Foundation/Models/Base/ModuleModel.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
             'meta_og:type' => 'website',
50 50
             'meta_og:description' => (string) string($this->text)->tease(155),
51 51
             'meta_og:image' => $this->hasMedia('images') ?
52
-                url($this->getFirstMediaUrl('images')) :
53
-                url('/images/og-image.png'),
52
+                url($this->getFirstMediaUrl('images')) : url('/images/og-image.png'),
54 53
         ];
55 54
     }
56 55
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Front/Api/NewsletterController.php 1 patch
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.
app/Http/Controllers/Front/Auth/ResetPasswordController.php 1 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/Models/Tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public static function findByNameOrCreate(string $name, TagType $type): Tag
33 33
     {
34 34
         $existing = self::nonDraft()->get()
35
-            ->first(function (Tag $tag, int $id) use ($name, $type) {
35
+            ->first(function(Tag $tag, int $id) use ($name, $type) {
36 36
                 return $tag->translate('name', content_locale()) === $name && $tag->type === (string) $type;
37 37
             });
38 38
 
Please login to merge, or discard this patch.