Visual Console Refactor: minor changes

Former-commit-id: 43125220be6ea9cc76ea5b5261fd13c3fcd36d29
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-09 12:24:53 +02:00
parent cb75ec02f9
commit eabe8ef00a
1 changed files with 11 additions and 11 deletions

View File

@ -258,18 +258,18 @@ final class BarsGraph extends Item
switch ($data['label_position']) { switch ($data['label_position']) {
case 'left': case 'left':
$div_start = '<div style="float:left;height:15px;">'; $divStart = '<div style="float:left;height:15px;">';
$div_end = '</div>'; $divEnd = '</div>';
break; break;
case 'right': case 'right':
$div_start = '<div style="float:right;height:15px;">'; $divStart = '<div style="float:right;height:15px;">';
$div_end = '</div>'; $divEnd = '</div>';
break; break;
default: default:
$div_start = ''; $divStart = '';
$div_end = ''; $divEnd = '';
break; break;
} }
@ -282,7 +282,7 @@ final class BarsGraph extends Item
} }
if ($typeGraph === 'horizontal') { if ($typeGraph === 'horizontal') {
$graph = $div_start.\hbar_graph( $graph = $divStart.\hbar_graph(
$moduleData, $moduleData,
$width, $width,
$height, $height,
@ -305,10 +305,10 @@ final class BarsGraph extends Item
$config['homeurl'], $config['homeurl'],
$backGroundColor, $backGroundColor,
$gridColor $gridColor
).$div_end; ).$divEnd;
} else { } else {
$graph = $div_start.\vbar_graph( $graph = $divStart.\vbar_graph(
$module_data, $moduleData,
$width, $width,
$height, $height,
$color, $color,
@ -332,7 +332,7 @@ final class BarsGraph extends Item
true, true,
false, false,
$gridColor $gridColor
).$div_end; ).$divEnd;
} }
// Restore connection. // Restore connection.