From 16684555a029ee9c40df9c6189bf0d0f0082a596 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 15 Nov 2022 22:07:37 +0100 Subject: [PATCH] cosmetic --- _define.php | 14 +++++++------- inc/class.postwidgettext.php | 2 +- inc/lib.pwt.admin.php | 8 ++++---- index.php | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/_define.php b/_define.php index 1e8dc01..4255cea 100644 --- a/_define.php +++ b/_define.php @@ -25,12 +25,12 @@ $this->registerModule( dcAuth::PERMISSION_USAGE, dcAuth::PERMISSION_CONTENT_ADMIN, ]), - 'type' => 'plugin', - 'support' => 'https://github.com/JcDenis/postWidgetText', - 'details' => 'https://plugins.dotaddict.org/dc2/details/postWidgetText', - 'repository' => 'https://raw.githubusercontent.com/JcDenis/postWidgetText/master/dcstore.xml', - 'settings' => [ - 'blog' => '#params.pwt_params' - ] + 'type' => 'plugin', + 'support' => 'https://github.com/JcDenis/postWidgetText', + 'details' => 'https://plugins.dotaddict.org/dc2/details/postWidgetText', + 'repository' => 'https://raw.githubusercontent.com/JcDenis/postWidgetText/master/dcstore.xml', + 'settings' => [ + 'blog' => '#params.pwt_params', + ], ] ); diff --git a/inc/class.postwidgettext.php b/inc/class.postwidgettext.php index 7be8b31..c1ac3a3 100644 --- a/inc/class.postwidgettext.php +++ b/inc/class.postwidgettext.php @@ -248,7 +248,7 @@ class postWidgetText 'excerpt' => &$excerpt, 'content' => &$content, 'excerpt_xhtml' => &$excerpt_xhtml, - 'content_xhtml' => &$content_xhtml + 'content_xhtml' => &$content_xhtml, ]); } } diff --git a/inc/lib.pwt.admin.php b/inc/lib.pwt.admin.php index f1101f6..b6e23fe 100644 --- a/inc/lib.pwt.admin.php +++ b/inc/lib.pwt.admin.php @@ -34,7 +34,7 @@ class adminPostWidgetText self::sortbyCombo(), 'post_dt', 'desc', - [__('entries per page'), 20] + [__('entries per page'), 20], ]; } @@ -73,7 +73,7 @@ class adminPostWidgetText 'small-icon' => dcPage::getPF('postWidgetText/icon.png'), 'large-icon' => dcPage::getPF('postWidgetText/icon-big.png'), 'permissions' => dcCore::app()->auth->check('usage,contentadmin', dcCore::app()->blog->id), - 'active_cb' => ['adminPostWidgetText', 'adminDashboardFavoritesActive'] + 'active_cb' => ['adminPostWidgetText', 'adminDashboardFavoritesActive'], ]); } @@ -234,7 +234,7 @@ class adminPostWidgetText $line->post_id = $bk->old_ids['post'][(int) $line->post_id]; $exists = $bk->postwidgettext->getWidgets([ - 'post_id' => $line->post_id + 'post_id' => $line->post_id, ]); if ($exists->isEmpty()) { @@ -258,7 +258,7 @@ class adminPostWidgetText { if ($line->__name == 'postwidgettext') { $exists = $bk->postwidgettext->getWidgets([ - 'post_id' => $line->post_id + 'post_id' => $line->post_id, ]); if ($exists->isEmpty()) { diff --git a/index.php b/index.php index 0a8d0cb..3274239 100644 --- a/index.php +++ b/index.php @@ -15,9 +15,9 @@ if (!defined('DC_CONTEXT_ADMIN')) { } dcPage::check(dcCore::app()->auth->makePermissions([ - dcAuth::PERMISSION_USAGE, - dcAuth::PERMISSION_CONTENT_ADMIN, - ])); + dcAuth::PERMISSION_USAGE, + dcAuth::PERMISSION_CONTENT_ADMIN, +])); $pwt = new postWidgetText(); @@ -66,7 +66,7 @@ $filter->js(dcCore::app()->adminurl->get('admin.plugin.postWidgetText')) . ' dcPage::breadcrumb([ __('Plugins') => '', - __('Posts widgets') => '' + __('Posts widgets') => '', ]) . dcPage::notices();