From eabe8ef00a3273da7e96bb49eac9f21ffd38c5fb Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Tue, 9 Apr 2019 12:24:53 +0200 Subject: [PATCH] Visual Console Refactor: minor changes Former-commit-id: 43125220be6ea9cc76ea5b5261fd13c3fcd36d29 --- .../models/VisualConsole/Items/BarsGraph.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/BarsGraph.php b/pandora_console/include/rest-api/models/VisualConsole/Items/BarsGraph.php index 5406c35084..a7c91122ae 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Items/BarsGraph.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Items/BarsGraph.php @@ -258,18 +258,18 @@ final class BarsGraph extends Item switch ($data['label_position']) { case 'left': - $div_start = '
'; - $div_end = '
'; + $divStart = '
'; + $divEnd = '
'; break; case 'right': - $div_start = '
'; - $div_end = '
'; + $divStart = '
'; + $divEnd = '
'; break; default: - $div_start = ''; - $div_end = ''; + $divStart = ''; + $divEnd = ''; break; } @@ -282,7 +282,7 @@ final class BarsGraph extends Item } if ($typeGraph === 'horizontal') { - $graph = $div_start.\hbar_graph( + $graph = $divStart.\hbar_graph( $moduleData, $width, $height, @@ -305,10 +305,10 @@ final class BarsGraph extends Item $config['homeurl'], $backGroundColor, $gridColor - ).$div_end; + ).$divEnd; } else { - $graph = $div_start.\vbar_graph( - $module_data, + $graph = $divStart.\vbar_graph( + $moduleData, $width, $height, $color, @@ -332,7 +332,7 @@ final class BarsGraph extends Item true, false, $gridColor - ).$div_end; + ).$divEnd; } // Restore connection.