Fix PhanPluginRedundantAssignment
This commit is contained in:
parent
81fde8ffc3
commit
0302e4f2b5
1 changed files with 5 additions and 9 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
/* Copyright (c) 2003-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (c) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -1288,7 +1289,6 @@ class DolGraph
|
|||
$this->stringtoshow .= '],
|
||||
datasets: [';
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
while ($i < $nblot) { // Loop on each series
|
||||
$color = 'rgb(' . $this->datacolor[$i][0] . ', ' . $this->datacolor[$i][1] . ', ' . $this->datacolor[$i][2] . ')';
|
||||
|
||||
|
|
@ -1310,11 +1310,7 @@ class DolGraph
|
|||
$type = 'bar';
|
||||
$xaxis = '';
|
||||
|
||||
if (!isset($this->type[$firstlot]) || $this->type[$firstlot] == 'bars') {
|
||||
$type = 'bar';
|
||||
}
|
||||
if (isset($this->type[$firstlot]) && $this->type[$firstlot] == 'horizontalbars') {
|
||||
$type = 'bar';
|
||||
$xaxis = "indexAxis: 'y', ";
|
||||
}
|
||||
if (isset($this->type[$firstlot]) && ($this->type[$firstlot] == 'lines' || $this->type[$firstlot] == 'linesnopoint')) {
|
||||
|
|
@ -1348,7 +1344,7 @@ class DolGraph
|
|||
$this->stringtoshow .= 'tooltip: { mode: \'nearest\',
|
||||
callbacks: {';
|
||||
if (is_array($this->tooltipsTitles)) {
|
||||
$this->stringtoshow .='
|
||||
$this->stringtoshow .= '
|
||||
title: function(tooltipItem, data) {
|
||||
var tooltipsTitle ='.json_encode($this->tooltipsTitles).'
|
||||
return tooltipsTitle[tooltipItem[0].datasetIndex];
|
||||
|
|
@ -1360,7 +1356,7 @@ class DolGraph
|
|||
return tooltipslabels[tooltipItem.datasetIndex]
|
||||
}';
|
||||
}
|
||||
$this->stringtoshow .='}},';
|
||||
$this->stringtoshow .= '}},';
|
||||
}
|
||||
$this->stringtoshow .= "}, \n";
|
||||
|
||||
|
|
@ -1388,7 +1384,7 @@ class DolGraph
|
|||
$this->stringtoshow .= 'tooltips: { mode: \'nearest\',
|
||||
callbacks: {';
|
||||
if (is_array($this->tooltipsTitles)) {
|
||||
$this->stringtoshow .='
|
||||
$this->stringtoshow .= '
|
||||
title: function(tooltipItem, data) {
|
||||
var tooltipsTitle ='.json_encode($this->tooltipsTitles).'
|
||||
return tooltipsTitle[tooltipItem[0].datasetIndex];
|
||||
|
|
@ -1400,7 +1396,7 @@ class DolGraph
|
|||
return tooltipslabels[tooltipItem.datasetIndex]
|
||||
}';
|
||||
}
|
||||
$this->stringtoshow .='}},';
|
||||
$this->stringtoshow .= '}},';
|
||||
}
|
||||
$this->stringtoshow .= '};';
|
||||
$this->stringtoshow .= '
|
||||
|
|
|
|||
Loading…
Reference in a new issue