Merge pull request #1997 from srijit2002/master
fix: Fix PSR issue in database library
This commit is contained in:
commit
88cfcb9ea8
6 changed files with 22 additions and 23 deletions
|
@ -635,8 +635,7 @@ class MySQL extends Adapter
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$orderSelect = 'a.uid AS sort_ff';
|
||||
}
|
||||
|
||||
|
|
|
@ -59,12 +59,12 @@ class Database
|
|||
/**
|
||||
* @var array
|
||||
*/
|
||||
static protected $filters = [];
|
||||
protected static $filters = [];
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
static protected $statusFilters = true;
|
||||
protected static $statusFilters = true;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
|
@ -462,7 +462,7 @@ class Database
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
static public function addFilter(string $name, callable $encode, callable $decode): void
|
||||
public static function addFilter(string $name, callable $encode, callable $decode): void
|
||||
{
|
||||
self::$filters[$name] = [
|
||||
'encode' => $encode,
|
||||
|
@ -576,7 +576,7 @@ class Database
|
|||
* @param string $name
|
||||
* @param mixed $value
|
||||
*/
|
||||
static protected function encodeAttribute(string $name, $value)
|
||||
protected static function encodeAttribute(string $name, $value)
|
||||
{
|
||||
if (!isset(self::$filters[$name])) {
|
||||
return $value;
|
||||
|
@ -598,7 +598,7 @@ class Database
|
|||
* @param string $name
|
||||
* @param mixed $value
|
||||
*/
|
||||
static protected function decodeAttribute(string $name, $value)
|
||||
protected static function decodeAttribute(string $name, $value)
|
||||
{
|
||||
if (!isset(self::$filters[$name])) {
|
||||
return $value;
|
||||
|
|
|
@ -10,7 +10,7 @@ class Authorization extends Validator
|
|||
/**
|
||||
* @var array
|
||||
*/
|
||||
static $roles = ['*' => true];
|
||||
public static $roles = ['*' => true];
|
||||
|
||||
/**
|
||||
* @var Document
|
||||
|
|
Loading…
Reference in a new issue