PHP 8 Style.
This commit is contained in:
@@ -126,7 +126,7 @@ function get_last_value(mysqli $db, string $table, $date): float
|
||||
return floatval($data['last_value']) / 1000;
|
||||
}
|
||||
|
||||
function get_production_values_for_month(mysqli $db, string $table, $date)
|
||||
function get_production_values_for_month(mysqli $db, string $table, $date): array
|
||||
{
|
||||
$value_query = 'SELECT date, production_og, production_eg FROM ' . $table . ' WHERE date LIKE "' . $date . '%" ORDER BY date ASC;';
|
||||
$value_result = $db->query($value_query);
|
||||
|
||||
Reference in New Issue
Block a user