phpstan config update, move const in basic into class

the basic class const for self checks are class const variables now
This commit is contained in:
Clemens Schwaighofer
2019-09-20 14:53:27 +09:00
parent 86c5085f92
commit a6918bac6f
3 changed files with 30 additions and 24 deletions

View File

@@ -157,7 +157,12 @@ if ($form->my_page_name == 'edit_order') {
}
$q .= "ORDER BY order_number";
// init arrays
$row_data = array();
$options_id = array();
$options_name = array();
$options_selected = array();
// DB read data for menu
while ($res = $form->dbReturn($q)) {
$row_data[] = array(
"id" => $res[$table_name."_id"],
@@ -180,12 +185,6 @@ if ($form->my_page_name == 'edit_order') {
$DATA['form_error_msg'] = $messages;
// all the row data
$options_id = array();
$options_name = array();
$options_selected = array();
if (!isset($row_data) || !is_array($row_data)) {
$row_data = array();
}
for ($i = 0; $i < count($row_data); $i ++) {
$options_id[] = $i;
$options_name[] = $row_data[$i]['name'];