e107_handlers/chart_class.php
Assigning array{title:'Company Performance',hAxis:array{title:'Year',titleTextStyle:array{color:'#333'}},vAxis:array{minValue:0}}
to property but \e_chart->options
is array<string>|array<string>|array{scaleFontSize:14,annotateDisplay:true,bezierCurve:true,inGraphDataShow:false}</string></string>
Open
Open
$this->options = array(
- Exclude checks
Returning type string
but render()
is declared to return null
Open
Open
return '<canvas class="e-graph e-chart" id="'.$id.'" height="'.$height.'" width="'.$width.'" >HTML5 Canvas not supported.</canvas>';
- Exclude checks
Default value for int
$width
can't be string
Open
Open
public function render($id, $width='100%',$height=300)
- Exclude checks
array to string
comparison Open
Open
if($data == 'demo')
- Exclude checks
Returning type string
but render()
is declared to return null
Open
Open
return "<div class='e-graph e-chart' id='".$id."' style='width: ".$width."; height: ".$height."px;'></div>";
- Exclude checks
Returning type '\x3cdiv class=\'alert alert-info alert-block\'\x3eNo chart data provided\x3c/div\x3e'
but render()
is declared to return null
Open
Open
return "<div class='alert alert-info alert-block'>No chart data provided</div>";
- Exclude checks
Assigning array<string>|array<string>|array<string>|array<string>|array<string>|array<string users>|array<string>,titleFontSize:14,titleTextStyle:array{color:'#ccc'},gridlines:array{color:'transparent'},textStyle:array{color:'#ccc'}}>|array<string></string></string></string></string></string></string></string></string>
to property but \e_chart->options
is array<string>|array<string>|array{scaleFontSize:14,annotateDisplay:true,bezierCurve:true,inGraphDataShow:false}</string></string>
Open
Open
$this->options = $data;
- Exclude checks
array to string
comparison Open
Open
if($this->provider == 'google' && $data == 'demo')
- Exclude checks
Assigning array{title:'Company Performance',hAxis:array{title:'Year',titleTextStyle:array{color:'#333'}},vAxis:array{minValue:0}}
to property but \e_chart->options
is array{scaleFontSize:14,annotateDisplay:true,bezierCurve:true,inGraphDataShow:false}
Open
Open
$this->options = array(
- Exclude checks
Assigning array{title:'Company Performance',hAxis:array{title:'Year',titleTextStyle:array{color:'#333'}},vAxis:array{minValue:0}}
to property but \e_chart->options
is array<string>|array{scaleFontSize:14,annotateDisplay:true,bezierCurve:true,inGraphDataShow:false}</string>
Open
Open
$this->options = array(
- Exclude checks