Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Apr 20, 2023
1 parent 329d2aa commit 5cd4aa3
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 27 deletions.
17 changes: 12 additions & 5 deletions class/Common/BlockActionsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion class/Common/Breadcrumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
class Breadcrumb
{
public string $dirname;
private array $bread = [];
public array $bread = [];

public function __construct()
{
Expand Down
8 changes: 4 additions & 4 deletions class/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 14 additions & 14 deletions class/Poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion class/plugin/userlog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<h5>2.1.0 Beta 2 [2023-04-20]</h5> Dev: XOOPS 2.5.11, PHP 8.2.4
<hr>
- small fixes

<h5>2.1.0 Beta 1 [2023-04-18]</h5> Dev: XOOPS 2.5.11, PHP 8.2.4
<hr>
- namespaces, autoloading (mamba)
Expand Down
4 changes: 2 additions & 2 deletions xoops_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cd4aa3

Please sign in to comment.