fix: noverify --fix

This commit is contained in:
origami11@yandex.ru 2024-06-14 14:12:02 +03:00
parent 5aff28d2b8
commit 117640a755
44 changed files with 174 additions and 174 deletions

View file

@ -15,7 +15,7 @@ class Top extends Composite
public function getTitle()
{
return implode(" - ", array_filter($this->doTree('_title', false), array($this, 'isNotNull')));
return implode(" - ", array_filter($this->doTree('_title', false), [$this, 'isNotNull']));
}
function getId($pref)
@ -39,10 +39,10 @@ class Top extends Composite
$this->set('scripts', array_unique($this->getScripts()));
$this->set('stylesheet', array_unique($this->getStyleSheet()));
$this->require = array('admin' => 'ma');
$this->deps = array();
$this->require = ['admin' => 'ma'];
$this->deps = [];
$startup = array();
$startup = [];
foreach ($this->_section as $s) {
if (is_string($s)) {
continue;
@ -67,7 +67,7 @@ class Top extends Composite
$script .= $value . "." . $key . " = " . json_encode($v /*, JSON_PRETTY_PRINT*/) . ";\n";
}
$init = array();
$init = [];
foreach ($s->_section as $key => $item) {
$ss /*: View*/= $item;
if ($ss->codeGenerator !== null) {