From 2cc4657be017b4976f35ea539ec622506581d05c Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 2 Mar 2026 11:11:52 +0100 Subject: [PATCH] refactor(plugin): replace array access with getter methods Replaced array access for file and dimension attributes with corresponding getter methods. --- Classes/Controller/PluginController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Classes/Controller/PluginController.php b/Classes/Controller/PluginController.php index 49108e5..e53e90a 100644 --- a/Classes/Controller/PluginController.php +++ b/Classes/Controller/PluginController.php @@ -606,12 +606,12 @@ public function getMap(): string $this->config['icon.'][$table . '.']['file.'] ?? [] ); $item['tx_odsosm_marker'] = [ - 'icon' => $info['processedFile'], + 'icon' => $info->getProcessedFile(), 'type' => 'image', - 'size_x' => $info[0], - 'size_y' => $info[1], - 'offset_x' => -$info[0] / 2, - 'offset_y' => -$info[1], + 'size_x' => $info->getWidth(), + 'size_y' => $info->getHeight(), + 'offset_x' => -$info->getWidth() / 2, + 'offset_y' => -$info->getHeight(), ]; } elseif ($this->config['icon.'][$table] === 'TEXT') { $conf = $this->config['icon.'][$table . '.'];