-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/improvements
- Loading branch information
Showing
39 changed files
with
879 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?php | ||
header("HTTP/1.0 404 Not Found"); | ||
header('HTTP/1.0 404 Not Found'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2017 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Assert extends BaseAssertion | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2013-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class TableLoad | ||
|
@@ -130,7 +130,7 @@ public static function countRows($table, $criteria = null) | |
$prefixedTable = $db->prefix($table); | ||
$sql = 'SELECT COUNT(*) as `count` FROM ' . $prefixedTable . ' '; | ||
if (isset($criteria) && is_subclass_of($criteria, '\CriteriaElement')) { | ||
/* @var \CriteriaCompo $criteria */ | ||
/** @var \CriteriaCompo $criteria */ | ||
$sql .= $criteria->renderWhere(); | ||
} | ||
$result = $db->query($sql); | ||
|
@@ -157,7 +157,7 @@ public static function extractRows($table, $criteria = null, $skipColumns = arra | |
$prefixedTable = $db->prefix($table); | ||
$sql = 'SELECT * FROM ' . $prefixedTable . ' '; | ||
if (isset($criteria) && is_subclass_of($criteria, '\CriteriaElement')) { | ||
/* @var \CriteriaCompo $criteria */ | ||
/** @var \CriteriaCompo $criteria */ | ||
$sql .= $criteria->renderWhere(); | ||
} | ||
$rows = array(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?php | ||
header("HTTP/1.0 404 Not Found"); | ||
header('HTTP/1.0 404 Not Found'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
* @author trabis <[email protected]> | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2011-2021 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Debug extends \Kint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2011-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Highlighter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @package Xmf | ||
* @author trabis <[email protected]> | ||
* @copyright 2018-2021 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class IPAddress | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2018-2023 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class JsonWebToken | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2016-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class KeyFactory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2016-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class TokenFactory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2016-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class TokenReader | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?php | ||
header("HTTP/1.0 404 Not Found"); | ||
header('HTTP/1.0 404 Not Found'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class ArrayStorage extends \ArrayObject implements StorageInterface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2018-2023 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Basic extends KeyAbstract | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2016-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class FileStorage implements StorageInterface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2018-2023 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
abstract class KeyAbstract | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @package Xmf | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
interface StorageInterface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?php | ||
header("HTTP/1.0 404 Not Found"); | ||
header('HTTP/1.0 404 Not Found'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @package Xmf | ||
* @author trabis <[email protected]> | ||
* @copyright 2011-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Language | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
* @author Richard Griffith <[email protected]> | ||
* @author trabis <[email protected]> | ||
* @copyright 2011-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Metagen | ||
|
@@ -59,7 +59,7 @@ public static function assignTitle($title) | |
*/ | ||
public static function assignKeywords($keywords) | ||
{ | ||
if (!empty($keywords) && is_array($keywords)) { | ||
if (!empty($keywords) && \is_array($keywords)) { | ||
$keyword_tag = implode(', ', $keywords); | ||
static::assignThemeMeta('keywords', $keyword_tag); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
* @author trabis <[email protected]> | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2011-2023 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Helper extends GenericHelper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @author trabis <[email protected]> | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2016-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
abstract class AbstractHelper | ||
|
@@ -67,7 +67,7 @@ public function __construct($dirname = null) | |
if (isset($xoops)) { | ||
$moduleHandler = $xoops->getHandlerModule(); | ||
} else { | ||
/* @var \XoopsModuleHandler $moduleHandler */ | ||
/** @var \XoopsModuleHandler $moduleHandler */ | ||
$moduleHandler = xoops_getHandler('module'); | ||
} | ||
$this->module = $moduleHandler->getByDirname($dirname); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* @author trabis <[email protected]> | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2011-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Cache extends AbstractHelper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
* @author trabis <[email protected]> | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2016-2023 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
abstract class GenericHelper extends AbstractHelper | ||
|
@@ -141,7 +141,7 @@ protected function initObject() | |
) { | ||
$this->module = $xoopsModule; | ||
} else { | ||
/* @var \XoopsModuleHandler $module_handler */ | ||
/** @var \XoopsModuleHandler $module_handler */ | ||
$module_handler = xoops_getHandler('module'); | ||
$this->module = $module_handler->getByDirname($this->dirname); | ||
} | ||
|
@@ -163,7 +163,7 @@ protected function initConfig() | |
global $xoopsModuleConfig; | ||
$this->configs = $xoopsModuleConfig; | ||
} else { | ||
/* @var \XoopsConfigHandler $config_handler */ | ||
/** @var \XoopsConfigHandler $config_handler */ | ||
$config_handler = xoops_getHandler('config'); | ||
$this->configs = $config_handler->getConfigsByCat(0, $this->getModule()->getVar('mid')); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* @author trabis <[email protected]> | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2011-2023 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Permission extends AbstractHelper | ||
|
@@ -50,7 +50,7 @@ public function init() | |
{ | ||
$this->mid = $this->module->getVar('mid'); | ||
$this->dirname = $this->module->getVar('dirname'); | ||
/* @var $this->permissionHandler XoopsGroupPermHandler */ | ||
/** @var $this->permissionHandler XoopsGroupPermHandler */ | ||
$this->permissionHandler = xoops_getHandler('groupperm'); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* @author trabis <[email protected]> | ||
* @author Richard Griffith <[email protected]> | ||
* @copyright 2011-2018 XOOPS Project (https://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link https://xoops.org | ||
*/ | ||
class Session extends AbstractHelper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?php | ||
header("HTTP/1.0 404 Not Found"); | ||
header('HTTP/1.0 404 Not Found'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?php | ||
header("HTTP/1.0 404 Not Found"); | ||
header('HTTP/1.0 404 Not Found'); |
Oops, something went wrong.