From 5cd4aa3df501cd3af61eee8b3918ac7dbdd0ec64 Mon Sep 17 00:00:00 2001 From: mambax7 Date: Thu, 20 Apr 2023 06:41:04 -0400 Subject: [PATCH] small fixes --- class/Common/BlockActionsHandler.php | 17 ++++++++++++----- class/Common/Breadcrumb.php | 2 +- class/Option.php | 8 ++++---- class/Poll.php | 28 ++++++++++++++-------------- class/plugin/userlog.php | 2 +- docs/changelog.txt | 4 ++++ xoops_version.php | 4 ++-- 7 files changed, 38 insertions(+), 27 deletions(-) diff --git a/class/Common/BlockActionsHandler.php b/class/Common/BlockActionsHandler.php index 2e12d18..5106015 100644 --- a/class/Common/BlockActionsHandler.php +++ b/class/Common/BlockActionsHandler.php @@ -21,16 +21,18 @@ Helper }; -//require __DIR__ . '/admin_header.php'; - -// BlockActionsHandler.php - +/** + * class BlockActionsHandler + */ class BlockActionsHandler { private $blocksadmin; private $helper; private $request; + /** + * @param $blocksadmin + */ public function __construct($blocksadmin) { $this->blocksadmin = $blocksadmin; @@ -162,7 +164,12 @@ public function processOrderBlockAction(BlockData $blockData) //for testing mocking - public function setRequest($request) + + /** + * @param $request + * @return void + */ + public function setRequest($request): void { $this->request = $request; } diff --git a/class/Common/Breadcrumb.php b/class/Common/Breadcrumb.php index b9ca60e..3ed2229 100644 --- a/class/Common/Breadcrumb.php +++ b/class/Common/Breadcrumb.php @@ -32,7 +32,7 @@ class Breadcrumb { public string $dirname; - private array $bread = []; + public array $bread = []; public function __construct() { diff --git a/class/Option.php b/class/Option.php index 55cf841..fadf63d 100644 --- a/class/Option.php +++ b/class/Option.php @@ -47,12 +47,12 @@ */ class Option extends XoopsObject { - private int $option_id; - private int $poll_id; + private int $option_id; + private int $poll_id; private string $option_text; - private int $option_count; + private int $option_count; private string $option_color; - private mixed $optHandler; + private mixed $optHandler; /** * database connection object diff --git a/class/Poll.php b/class/Poll.php index e5b1f05..b1b4328 100644 --- a/class/Poll.php +++ b/class/Poll.php @@ -27,22 +27,22 @@ */ class Poll extends \XoopsObject { - private int $poll_id; + private int $poll_id; private string $question; private string $description; - private int $user_id; - private int $start_time; - private int $end_time; - private int $votes; - private int $voters; - private int $display; - private int $visibility; - private int $anonymous; - private int $weight; - private int $multiple; - private int $multilimit; - private int $mail_status; - private int $mail_voter; + private int $user_id; + private int $start_time; + private int $end_time; + private int $votes; + private int $voters; + private int $display; + private int $visibility; + private int $anonymous; + private int $weight; + private int $multiple; + private int $multilimit; + private int $mail_status; + private int $mail_voter; /** * Poll::__construct() diff --git a/class/plugin/userlog.php b/class/plugin/userlog.php index 1e0daeb..d824c3f 100644 --- a/class/plugin/userlog.php +++ b/class/plugin/userlog.php @@ -20,7 +20,7 @@ */ // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); -class userlog extends \Userlog_Module_Plugin_Abstract implements \UserlogPluginInterface +class Userlog extends \Userlog_Module_Plugin_Abstract implements \UserlogPluginInterface { /** * @param string $subscribe_from Name of the script diff --git a/docs/changelog.txt b/docs/changelog.txt index 5c66cfc..f51d961 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -1,3 +1,7 @@ +
2.1.0 Beta 2 [2023-04-20]
Dev: XOOPS 2.5.11, PHP 8.2.4 +
+- small fixes +
2.1.0 Beta 1 [2023-04-18]
Dev: XOOPS 2.5.11, PHP 8.2.4
- namespaces, autoloading (mamba) diff --git a/xoops_version.php b/xoops_version.php index 93952df..ae970b7 100644 --- a/xoops_version.php +++ b/xoops_version.php @@ -44,8 +44,8 @@ // ------------------- Information ------------------- / $modversion = [ 'version' => '2.1.0', - 'module_status' => 'Beta 1', - 'release_date' => '2023/04/18', + 'module_status' => 'Beta 2', + 'release_date' => '2023/04/20', 'name' => _MI_XOOPSPOLL_NAME, 'description' => _MI_XOOPSPOLL_DESC, 'official' => 0, //1 indicates official XOOPS module supported by XOOPS Dev Team, 0 means 3rd party supported