diff --git a/LibreNMS/Validations/Database/CheckSchemaStructure.php b/LibreNMS/Validations/Database/CheckSchemaStructure.php index b1d7a491b286..e0c3533c58de 100644 --- a/LibreNMS/Validations/Database/CheckSchemaStructure.php +++ b/LibreNMS/Validations/Database/CheckSchemaStructure.php @@ -264,7 +264,7 @@ private function dropTableSql(string $table): string */ private function columnToSql(array $column_data): string { - $segments = ["`${column_data['Field']}`", $column_data['Type']]; + $segments = ["`{$column_data['Field']}`", $column_data['Type']]; $segments[] = $column_data['Null'] ? 'NULL' : 'NOT NULL'; @@ -274,7 +274,7 @@ private function columnToSql(array $column_data): string } elseif ($column_data['Default'] == 'NULL') { $segments[] = 'DEFAULT NULL'; } else { - $segments[] = "DEFAULT '${column_data['Default']}'"; + $segments[] = "DEFAULT '{$column_data['Default']}'"; } } diff --git a/database/seeders/DefaultAlertTemplateSeeder.php b/database/seeders/DefaultAlertTemplateSeeder.php index 9ee562c79bc1..8eadaed6824f 100644 --- a/database/seeders/DefaultAlertTemplateSeeder.php +++ b/database/seeders/DefaultAlertTemplateSeeder.php @@ -48,7 +48,7 @@ public function run(): void @if ($alert->faults) Faults: @foreach ($alert->faults as $key => $value) - @php($unit = __("sensors.${value["sensor_class"]}.unit")) + @php($unit = __("sensors.{$value["sensor_class"]}.unit")) #{{ $key }}: {{ $value['sensor_descr'] ?? 'Sensor' }} Current: {{ $value['sensor_current'].$unit }} diff --git a/includes/html/modal/new_bill.inc.php b/includes/html/modal/new_bill.inc.php index 2236966211a1..3feca93f9b11 100644 --- a/includes/html/modal/new_bill.inc.php +++ b/includes/html/modal/new_bill.inc.php @@ -58,7 +58,7 @@ $interface = cleanPort($interface); $string = $interface['label'] . ' - ' . \LibreNMS\Util\Clean::html($interface['ifAlias'], []); $selected = $interface['port_id'] === $port['port_id'] ? ' selected' : ''; - echo "\n"; + echo "\n"; } } ?> diff --git a/includes/html/pages/notifications.inc.php b/includes/html/pages/notifications.inc.php index 13ea55b52ca0..e4045069d78d 100644 --- a/includes/html/pages/notifications.inc.php +++ b/includes/html/pages/notifications.inc.php @@ -83,7 +83,7 @@ echo '