diff --git a/LibreNMS/Data/Graphing/AbstractGraph.php b/LibreNMS/Data/Graphing/AbstractGraph.php index c8aaccca11..5b4f2e8538 100644 --- a/LibreNMS/Data/Graphing/AbstractGraph.php +++ b/LibreNMS/Data/Graphing/AbstractGraph.php @@ -40,8 +40,7 @@ abstract class AbstractGraph implements GraphInterface public function __construct( protected readonly GraphParameters $params, protected readonly array $vars = [], - ) - { + ) { $device_id = $this->vars['device'] ?? ($this->params->type == 'device' ? ($this->vars['id'] ?? null) : null); $this->device = DeviceCache::get($device_id); diff --git a/LibreNMS/Util/Graph.php b/LibreNMS/Util/Graph.php index b6206c077d..597faa43a0 100644 --- a/LibreNMS/Util/Graph.php +++ b/LibreNMS/Util/Graph.php @@ -132,7 +132,7 @@ public static function get(array|string $vars): GraphImage throw $e; } - foreach($graph->getRrdFiles() as $rrd_filename) { + foreach ($graph->getRrdFiles() as $rrd_filename) { if (! Rrd::checkRrdExists($rrd_filename)) { throw new RrdGraphException('No Data file' . basename($rrd_filename), 'No Data', $params->width, $params->height, $e->getCode(), $e->getImage()); }