fix: noverify --fix
This commit is contained in:
parent
5aff28d2b8
commit
117640a755
44 changed files with 174 additions and 174 deletions
|
|
@ -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 [];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue