:100644 100644 c8aaccca11 0000000000 M LibreNMS/Data/Graphing/AbstractGraph.php :100644 100644 b6206c077d 0000000000 M LibreNMS/Util/Graph.php diff --git a/LibreNMS/Data/Graphing/AbstractGraph.php b/LibreNMS/Data/Graphing/AbstractGraph.php index c8aaccca112295935657f5a1d9f87fc851d0b225..5b4f2e8538c74fd2bf21804a20d77c0c543f625b 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 b6206c077d5375c6687f308333d84b70eae06d3e..597faa43a0d0edcc8ff09c8ba63f0cf6c1088df5 100644 --- a/LibreNMS/Util/Graph.php +++ b/LibreNMS/Util/Graph.php @@ -132,7 +132,7 @@ class Graph 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()); }