Minor tweaks

This commit is contained in:
MarkBaker 2015-12-06 16:04:32 +00:00
parent 65310d164c
commit 6f43f0429b
4 changed files with 13 additions and 12 deletions

View File

@ -141,7 +141,7 @@ class PHPExcel
/**
* The workbook has macros ?
*
* @return true if workbook has macros, false if not
* @return boolean true if workbook has macros, false if not
*/
public function hasMacros()
{
@ -312,7 +312,7 @@ class PHPExcel
/**
* This workbook have a custom UI ?
*
* @return true|false
* @return boolean true|false
*/
public function hasRibbon()
{
@ -322,7 +322,7 @@ class PHPExcel
/**
* This workbook have additionnal object for the ribbon ?
*
* @return true|false
* @return boolean true|false
*/
public function hasRibbonBinObjects()
{
@ -621,7 +621,7 @@ class PHPExcel
* Get index for sheet
*
* @param PHPExcel_Worksheet $pSheet
* @return Sheet index
* @return int Sheet index
* @throws PHPExcel_Exception
*/
public function getIndex(PHPExcel_Worksheet $pSheet)
@ -640,7 +640,7 @@ class PHPExcel
*
* @param string $sheetName Sheet name to modify index for
* @param int $newIndex New index for the sheet
* @return New sheet index
* @return int New sheet index
* @throws PHPExcel_Exception
*/
public function setIndexByName($sheetName, $newIndex)
@ -782,7 +782,7 @@ class PHPExcel
* Add named range
*
* @param PHPExcel_NamedRange $namedRange
* @return PHPExcel
* @return boolean
*/
public function addNamedRange(PHPExcel_NamedRange $namedRange)
{
@ -908,7 +908,7 @@ class PHPExcel
* Get cellXf by hash code
*
* @param string $pValue
* @return PHPExcel_Style|false
* @return PHPExcel_Style|boolean False if no match found
*/
public function getCellXfByHashCode($pValue = '')
{
@ -1022,7 +1022,7 @@ class PHPExcel
* Get cellStyleXf by hash code
*
* @param string $pValue
* @return PHPExcel_Style|false
* @return PHPExcel_Style|boolean False if no match found
*/
public function getCellStyleXfByHashCode($pValue = '')
{
@ -1095,6 +1095,7 @@ class PHPExcel
// remove cellXfs without references and create mapping so we can update xfIndex
// for all cells and columns
$countNeededCellXfs = 0;
$map = array();
foreach ($this->cellXfCollection as $index => $cellXf) {
if ($countReferencesCellXf[$index] > 0 || $index == 0) { // we must never remove the first cellXf
++$countNeededCellXfs;

View File

@ -210,10 +210,10 @@ class PHPExcel_Calculation
/**
* Epsilon Precision used for comparisons in calculations
*
* @var integer
* @var float
*
*/
private $delta = 0.0000000000001;
private $delta = 0.1e-12;
/**

View File

@ -492,7 +492,7 @@ class PHPExcel_Reader_HTML extends PHPExcel_Reader_Abstract implements PHPExcel_
// Create a new DOM object
$dom = new domDocument;
// Reload the HTML file into the DOM object
$loaded = $dom->loadHTML($this->securityScanFile($pFilename));
$loaded = $dom->loadHTML(mb_convert_encoding($this->securityScanFile($pFilename), 'HTML-ENTITIES', 'UTF-8'));
if ($loaded === false) {
throw new PHPExcel_Reader_Exception('Failed to load ', $pFilename, ' as a DOM Document');
}

View File

@ -259,7 +259,7 @@ class PHPExcel_Writer_Excel2007_Worksheet extends PHPExcel_Writer_Excel2007_Writ
$pane = '';
$topLeftCell = $pSheet->getFreezePane();
if (($topLeftCell != '') && ($topLeftCell != 'A1')) {
$activeCell = $topLeftCell;
$activeCell = empty($activeCell) ? $topLeftCell : $activeCell;
// Calculate freeze coordinates
$xSplit = $ySplit = 0;