From 57722643b89aebebaf7c8438b6ef2fc30c2f31fb Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 6 Nov 2021 14:56:29 +0100 Subject: [PATCH] fix PSR12 CS --- _admin.php | 2 +- _config.php | 2 +- _define.php | 2 +- _install.php | 2 +- _prepend.php | 2 +- _uninstall.php | 50 ++++++++++++++++++------------------- inc/class.dc.packman.php | 2 +- inc/lib.packman.filezip.php | 2 +- inc/lib.packman.php | 2 +- index.php | 2 +- locales/fr/resources.php | 2 +- 11 files changed, 35 insertions(+), 35 deletions(-) diff --git a/_admin.php b/_admin.php index fc7ee91..d39ec4c 100644 --- a/_admin.php +++ b/_admin.php @@ -52,4 +52,4 @@ class packmanBehaviors && isset($params['p']) && $params['p'] == 'pacKman'; } -} \ No newline at end of file +} diff --git a/_config.php b/_config.php index 039d24a..854c87b 100644 --- a/_config.php +++ b/_config.php @@ -119,4 +119,4 @@ __('Remove comments from files') . '

form::checkbox('packman_pack_fixnewline', 1, $packman_pack_fixnewline) . ' ' . __('Fix newline style from files content') . '

-'; \ No newline at end of file +'; diff --git a/_define.php b/_define.php index dd13af0..da261d2 100644 --- a/_define.php +++ b/_define.php @@ -27,4 +27,4 @@ $this->registerModule( 'details' => 'https://plugins.dotaddict.org/dc2/details/pacKman', 'repository' => 'https://raw.githubusercontent.com/JcDenis/pacKman/master/dcstore.xml' ] -); \ No newline at end of file +); diff --git a/_install.php b/_install.php index 37ab0af..c4d127f 100644 --- a/_install.php +++ b/_install.php @@ -110,4 +110,4 @@ try { $core->error->add($e->getMessage()); return false; -} \ No newline at end of file +} diff --git a/_prepend.php b/_prepend.php index 0518eff..f6fc3b1 100644 --- a/_prepend.php +++ b/_prepend.php @@ -18,4 +18,4 @@ $d = dirname(__FILE__) . '/inc/'; $__autoload['dcPackman'] = $d . 'class.dc.packman.php'; $__autoload['libPackman'] = $d . 'lib.packman.php'; -$__autoload['packmanFileZip'] = $d . 'lib.packman.filezip.php'; \ No newline at end of file +$__autoload['packmanFileZip'] = $d . 'lib.packman.filezip.php'; diff --git a/_uninstall.php b/_uninstall.php index f62937a..d779e8e 100644 --- a/_uninstall.php +++ b/_uninstall.php @@ -17,67 +17,67 @@ if (!defined('DC_CONTEXT_ADMIN')) { $mod_id = 'pacKman'; $this->addUserAction( - /* type */ + /* type */ 'settings', - /* action */ + /* action */ 'delete_all', - /* ns */ + /* ns */ $mod_id, - /* desc */ + /* desc */ __('delete all settings') ); $this->addUserAction( - /* type */ + /* type */ 'plugins', - /* action */ + /* action */ 'delete', - /* ns */ + /* ns */ $mod_id, - /* desc */ + /* desc */ __('delete plugin files') ); $this->addUserAction( - /* type */ + /* type */ 'versions', - /* action */ + /* action */ 'delete', - /* ns */ + /* ns */ $mod_id, - /* desc */ + /* desc */ __('delete the version number') ); $this->addDirectAction( - /* type */ + /* type */ 'settings', - /* action */ + /* action */ 'delete_all', - /* ns */ + /* ns */ $mod_id, - /* desc */ + /* desc */ sprintf(__('delete all %s settings'), $mod_id) ); $this->addDirectAction( - /* type */ + /* type */ 'plugins', - /* action */ + /* action */ 'delete', - /* ns */ + /* ns */ $mod_id, - /* desc */ + /* desc */ sprintf(__('delete %s plugin files'), $mod_id) ); $this->addDirectAction( - /* type */ + /* type */ 'versions', - /* action */ + /* action */ 'delete', - /* ns */ + /* ns */ $mod_id, - /* desc */ + /* desc */ sprintf(__('delete %s version number'), $mod_id) -); \ No newline at end of file +); diff --git a/inc/class.dc.packman.php b/inc/class.dc.packman.php index f711317..5a16a8c 100644 --- a/inc/class.dc.packman.php +++ b/inc/class.dc.packman.php @@ -231,4 +231,4 @@ class dcPackman return $c; } -} \ No newline at end of file +} diff --git a/inc/lib.packman.filezip.php b/inc/lib.packman.filezip.php index 8c9c83f..02023b8 100644 --- a/inc/lib.packman.filezip.php +++ b/inc/lib.packman.filezip.php @@ -124,4 +124,4 @@ class packmanFileZip extends fileZip { return str_replace("\r\n", "\n", $content); } -} \ No newline at end of file +} diff --git a/inc/lib.packman.php b/inc/lib.packman.php index 9f6960d..22ccc50 100644 --- a/inc/lib.packman.php +++ b/inc/lib.packman.php @@ -214,4 +214,4 @@ class libPackman return $modules; } -} \ No newline at end of file +} diff --git a/index.php b/index.php index 196f198..aeefa52 100644 --- a/index.php +++ b/index.php @@ -331,4 +331,4 @@ $core->callBehavior('packmanAdminTabs', $core); dcPage::helpBlock('pacKman'); echo -''; \ No newline at end of file +''; diff --git a/locales/fr/resources.php b/locales/fr/resources.php index d941c3e..81d384d 100644 --- a/locales/fr/resources.php +++ b/locales/fr/resources.php @@ -16,4 +16,4 @@ if (!defined('DC_RC_PATH')) { if (!isset($__resources['help']['pacKman'])) { $__resources['help']['pacKman'] = dirname(__FILE__) . '/help/help.html'; -} \ No newline at end of file +}