fix: noverify --fix
This commit is contained in:
parent
5aff28d2b8
commit
117640a755
44 changed files with 174 additions and 174 deletions
|
|
@ -23,7 +23,7 @@ class Field
|
|||
public $alias = array();
|
||||
|
||||
/** @phpstan-ignore-next-line */
|
||||
public function __construct ($input = array(), $factory = null)
|
||||
public function __construct ($input = [], $factory = null)
|
||||
{
|
||||
$this->default = null;
|
||||
if (isset($input['validate'])) {
|
||||
|
|
@ -33,7 +33,7 @@ class Field
|
|||
$this->fieldset = $input['fieldset'];
|
||||
}
|
||||
// Инициализация свойст обьетка
|
||||
foreach (array('label', 'name', 'type', 'description') as $name) {
|
||||
foreach (['label', 'name', 'type', 'description'] as $name) {
|
||||
if (isset($input[$name])) {
|
||||
$this->$name = $input[$name];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue