Remove chart diagnostics from echoes

This commit is contained in:
Mark Baker 2012-07-21 11:57:02 +01:00
parent 679f95773e
commit 19dfbfe418
1 changed files with 8 additions and 8 deletions

View File

@ -278,11 +278,11 @@ class PHPExcel_Chart_DataSeriesValues
} }
public function refresh(PHPExcel_Worksheet $worksheet) { public function refresh(PHPExcel_Worksheet $worksheet) {
echo '$this->_dataSource:',PHP_EOL; // echo '$this->_dataSource:',PHP_EOL;
var_dump($this->_dataSource); // var_dump($this->_dataSource);
if ($this->_dataSource !== NULL) { if ($this->_dataSource !== NULL) {
echo '$this->_dataValues:',PHP_EOL; // echo '$this->_dataValues:',PHP_EOL;
var_dump($this->_dataValues); // var_dump($this->_dataValues);
$calcEngine = PHPExcel_Calculation::getInstance(); $calcEngine = PHPExcel_Calculation::getInstance();
$newDataValues = PHPExcel_Calculation::_unwrapResult( $newDataValues = PHPExcel_Calculation::_unwrapResult(
@ -293,13 +293,13 @@ class PHPExcel_Chart_DataSeriesValues
) )
); );
echo '$newDataValues:',PHP_EOL; // echo '$newDataValues:',PHP_EOL;
var_dump($newDataValues); // var_dump($newDataValues);
$this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($newDataValues); $this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($newDataValues);
$this->_dataValues = array_values(array_shift($newDataValues)); $this->_dataValues = array_values(array_shift($newDataValues));
// $this->_dataValues = array_filter($this->_dataValues,array($this,'_stripNulls')); // $this->_dataValues = array_filter($this->_dataValues,array($this,'_stripNulls'));
echo '$this->_dataValues:',PHP_EOL; // echo '$this->_dataValues:',PHP_EOL;
var_dump($this->_dataValues); // var_dump($this->_dataValues);
} }
} }