fix: noverify --fix
This commit is contained in:
parent
5aff28d2b8
commit
117640a755
44 changed files with 174 additions and 174 deletions
|
|
@ -101,7 +101,7 @@ class View extends \stdClass
|
|||
*/
|
||||
protected function doTree($list, $flatten = true)
|
||||
{
|
||||
$result = ($flatten == true) ? $this->$list : array($this->$list);
|
||||
$result = ($flatten == true) ? $this->$list : [$this->$list];
|
||||
foreach ($this->_section as $value) {
|
||||
if (is_object($value)) {
|
||||
if ($list == '_script' || $list == '_stylesheet') {
|
||||
|
|
@ -182,10 +182,10 @@ class View extends \stdClass
|
|||
|
||||
function loadImports($importFile)
|
||||
{
|
||||
$types = array(
|
||||
$types = [
|
||||
'js' => array($this, 'addScript'),
|
||||
'css' => array($this, 'addStyleSheet')
|
||||
);
|
||||
];
|
||||
// Подключение стилей и скриптов
|
||||
if (file_exists($importFile)) {
|
||||
$files = file($importFile);
|
||||
|
|
@ -201,7 +201,7 @@ class View extends \stdClass
|
|||
}
|
||||
|
||||
public function resolveAllNames($alias, $list) {
|
||||
$result = array();
|
||||
$result = [];
|
||||
foreach($list as $item) {
|
||||
$result [] = $this->resolveName($alias, $item);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue