some backend admin class var declarations fixes
This commit is contained in:
@@ -43,8 +43,6 @@ parameters:
|
|||||||
- www/lib/smarty-*/
|
- www/lib/smarty-*/
|
||||||
# ignore composer
|
# ignore composer
|
||||||
- www/vendor
|
- www/vendor
|
||||||
# ignore tst folder
|
|
||||||
- www/tests
|
|
||||||
# ignore errores with
|
# ignore errores with
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
# this is ignored for now
|
# this is ignored for now
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class Backend extends \CoreLibs\DB\IO
|
|||||||
'action', 'action_id', 'action_sub_id', 'action_yes', 'action_flag',
|
'action', 'action_id', 'action_sub_id', 'action_yes', 'action_flag',
|
||||||
'action_menu', 'action_value', 'action_error', 'action_loaded'
|
'action_menu', 'action_value', 'action_error', 'action_loaded'
|
||||||
];
|
];
|
||||||
/** @var string */
|
/** @var string|null */
|
||||||
public $action;
|
public $action;
|
||||||
/** @var string|int */
|
/** @var string|int */
|
||||||
public $action_id;
|
public $action_id;
|
||||||
@@ -76,12 +76,12 @@ class Backend extends \CoreLibs\DB\IO
|
|||||||
// error/warning/info messages
|
// error/warning/info messages
|
||||||
/** @var array<mixed> */
|
/** @var array<mixed> */
|
||||||
public $messages = [];
|
public $messages = [];
|
||||||
/** @var int */
|
/** @var bool */
|
||||||
public $error = 0;
|
public $error = false;
|
||||||
/** @var int */
|
/** @var bool */
|
||||||
public $warning = 0;
|
public $warning = false;
|
||||||
/** @var int */
|
/** @var bool */
|
||||||
public $info = 0;
|
public $info = false;
|
||||||
// internal lang & encoding vars
|
// internal lang & encoding vars
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $lang_dir = '';
|
public $lang_dir = '';
|
||||||
@@ -479,13 +479,13 @@ class Backend extends \CoreLibs\DB\IO
|
|||||||
];
|
];
|
||||||
switch ($level) {
|
switch ($level) {
|
||||||
case 'info':
|
case 'info':
|
||||||
$this->info = 1;
|
$this->info = true;
|
||||||
break;
|
break;
|
||||||
case 'warning':
|
case 'warning':
|
||||||
$this->warning = 1;
|
$this->warning = true;
|
||||||
break;
|
break;
|
||||||
case 'error':
|
case 'error':
|
||||||
$this->error = 1;
|
$this->error = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user