PHP 8 Style.

This commit is contained in:
2024-05-17 12:11:01 +02:00
parent e85080078e
commit 44b725a382

View File

@@ -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);