1
0
Fork 0
mirror of synced 2024-09-28 15:31:43 +12:00

Merge pull request #1997 from srijit2002/master

fix: Fix PSR issue in database library
This commit is contained in:
Christy Jacob 2021-10-19 10:36:15 +05:30 committed by GitHub
commit 88cfcb9ea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 23 deletions

View file

@ -635,8 +635,7 @@ class MySQL extends Adapter
}
}
}
}
else {
} else {
$orderSelect = 'a.uid AS sort_ff';
}

View file

@ -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;

View file

@ -10,7 +10,7 @@ class Authorization extends Validator
/**
* @var array
*/
static $roles = ['*' => true];
public static $roles = ['*' => true];
/**
* @var Document