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

@ -54,17 +54,17 @@ class Service
}
public function options($key, $val, $res/*: PDOStatement*/) {
$result = array();
$result = [];
while($res->next()) {
$result[] = array('value' => $res->getInt($key), 'name' => $res->getString($val));
$result[] = ['value' => $res->getInt($key), 'name' => $res->getString($val)];
}
return $result;
}
public function optionsPair($list, $selected = false) {
$result = array();
$result = [];
foreach ($list as $key => $value) {
$result [] = array('value' => $key, 'name' => $value, 'selected' => $key == $selected);
$result [] = ['value' => $key, 'name' => $value, 'selected' => $key == $selected];
}
return $result;
}
@ -75,7 +75,7 @@ class Service
$settings = json_decode(File::getContents($filename), true);
return $settings;
}
return array();
return [];
}
}