Apply Scrutinizer patches for spacing
This commit is contained in:
parent
20ccfa0d59
commit
a85f1bdbed
|
@ -1036,7 +1036,7 @@ class DateTime
|
|||
|
||||
$startDoW = self::DAYOFWEEK($startDate, 3);
|
||||
if (self::DAYOFWEEK($startDate, 3) >= 5) {
|
||||
$startDate += ($decrementing) ? -$startDoW + 4: 7 - $startDoW;
|
||||
$startDate += ($decrementing) ? -$startDoW + 4 : 7 - $startDoW;
|
||||
($decrementing) ? $endDays++ : $endDays--;
|
||||
}
|
||||
|
||||
|
@ -1046,7 +1046,7 @@ class DateTime
|
|||
// Adjust the calculated end date if it falls over a weekend
|
||||
$endDoW = self::DAYOFWEEK($endDate, 3);
|
||||
if ($endDoW >= 5) {
|
||||
$endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW;
|
||||
$endDate += ($decrementing) ? -$endDoW + 4 : 7 - $endDoW;
|
||||
}
|
||||
|
||||
// Test any extra holiday parameters
|
||||
|
|
|
@ -260,7 +260,7 @@ class CSV extends BaseReader implements IReader
|
|||
// Set our starting row based on whether we're in contiguous mode or not
|
||||
$currentRow = 1;
|
||||
if ($this->contiguous) {
|
||||
$currentRow = ($this->contiguousRow == -1) ? $sheet->getHighestRow(): $this->contiguousRow;
|
||||
$currentRow = ($this->contiguousRow == -1) ? $sheet->getHighestRow() : $this->contiguousRow;
|
||||
}
|
||||
|
||||
// Loop through each line of the file in turn
|
||||
|
|
|
@ -541,7 +541,7 @@ class Excel2007 extends BaseReader implements IReader
|
|||
}
|
||||
|
||||
if (!is_null($macros)) {
|
||||
$macrosCode = $this->getFromZipArchive($zip, 'xl/vbaProject.bin');//vbaProject.bin always in 'xl' dir and always named vbaProject.bin
|
||||
$macrosCode = $this->getFromZipArchive($zip, 'xl/vbaProject.bin'); //vbaProject.bin always in 'xl' dir and always named vbaProject.bin
|
||||
if ($macrosCode !== false) {
|
||||
$excel->setMacrosCode($macrosCode);
|
||||
$excel->setHasMacros(true);
|
||||
|
@ -1313,7 +1313,7 @@ class Excel2007 extends BaseReader implements IReader
|
|||
foreach (\PhpSpreadsheet\Cell::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) {
|
||||
$cell = $docSheet->getCell($cellReference);
|
||||
if (isset($linkRel['id'])) {
|
||||
$hyperlinkUrl = $hyperlinks[ (string) $linkRel['id'] ];
|
||||
$hyperlinkUrl = $hyperlinks[(string) $linkRel['id']];
|
||||
if (isset($hyperlink['location'])) {
|
||||
$hyperlinkUrl .= '#' . (string) $hyperlink['location'];
|
||||
}
|
||||
|
|
|
@ -437,7 +437,7 @@ class Gnumeric extends BaseReader implements IReader
|
|||
break;
|
||||
case '20': // Boolean
|
||||
$type = \PhpSpreadsheet\Cell\DataType::TYPE_BOOL;
|
||||
$cell = ($cell == 'TRUE') ? true: false;
|
||||
$cell = ($cell == 'TRUE') ? true : false;
|
||||
break;
|
||||
case '30': // Integer
|
||||
$cell = intval($cell);
|
||||
|
|
|
@ -169,8 +169,7 @@ class ReferenceHelper
|
|||
{
|
||||
$aBreaks = $pSheet->getBreaks();
|
||||
($pNumCols > 0 || $pNumRows > 0) ?
|
||||
uksort($aBreaks, ['self', 'cellReverseSort']) :
|
||||
uksort($aBreaks, ['self', 'cellSort']);
|
||||
uksort($aBreaks, ['self', 'cellReverseSort']) : uksort($aBreaks, ['self', 'cellSort']);
|
||||
|
||||
foreach ($aBreaks as $key => $value) {
|
||||
if (self::cellAddressInDeleteRange($key, $beforeRow, $pNumRows, $beforeColumnIndex, $pNumCols)) {
|
||||
|
@ -230,8 +229,7 @@ class ReferenceHelper
|
|||
{
|
||||
$aHyperlinkCollection = $pSheet->getHyperlinkCollection();
|
||||
($pNumCols > 0 || $pNumRows > 0) ?
|
||||
uksort($aHyperlinkCollection, ['self', 'cellReverseSort']) :
|
||||
uksort($aHyperlinkCollection, ['self', 'cellSort']);
|
||||
uksort($aHyperlinkCollection, ['self', 'cellReverseSort']) : uksort($aHyperlinkCollection, ['self', 'cellSort']);
|
||||
|
||||
foreach ($aHyperlinkCollection as $key => $value) {
|
||||
$newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows);
|
||||
|
@ -256,8 +254,7 @@ class ReferenceHelper
|
|||
{
|
||||
$aDataValidationCollection = $pSheet->getDataValidationCollection();
|
||||
($pNumCols > 0 || $pNumRows > 0) ?
|
||||
uksort($aDataValidationCollection, ['self', 'cellReverseSort']) :
|
||||
uksort($aDataValidationCollection, ['self', 'cellSort']);
|
||||
uksort($aDataValidationCollection, ['self', 'cellReverseSort']) : uksort($aDataValidationCollection, ['self', 'cellSort']);
|
||||
|
||||
foreach ($aDataValidationCollection as $key => $value) {
|
||||
$newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows);
|
||||
|
@ -303,8 +300,7 @@ class ReferenceHelper
|
|||
{
|
||||
$aProtectedCells = $pSheet->getProtectedCells();
|
||||
($pNumCols > 0 || $pNumRows > 0) ?
|
||||
uksort($aProtectedCells, ['self', 'cellReverseSort']) :
|
||||
uksort($aProtectedCells, ['self', 'cellSort']);
|
||||
uksort($aProtectedCells, ['self', 'cellReverseSort']) : uksort($aProtectedCells, ['self', 'cellSort']);
|
||||
foreach ($aProtectedCells as $key => $value) {
|
||||
$newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows);
|
||||
if ($key != $newReference) {
|
||||
|
|
|
@ -63,11 +63,11 @@ class Root extends \PhpSpreadsheet\Shared\OLE\PPS
|
|||
// Initial Setting for saving
|
||||
$this->_BIG_BLOCK_SIZE = pow(
|
||||
2,
|
||||
(isset($this->_BIG_BLOCK_SIZE))? self::adjust2($this->_BIG_BLOCK_SIZE) : 9
|
||||
(isset($this->_BIG_BLOCK_SIZE)) ? self::adjust2($this->_BIG_BLOCK_SIZE) : 9
|
||||
);
|
||||
$this->_SMALL_BLOCK_SIZE = pow(
|
||||
2,
|
||||
(isset($this->_SMALL_BLOCK_SIZE))? self::adjust2($this->_SMALL_BLOCK_SIZE) : 6
|
||||
(isset($this->_SMALL_BLOCK_SIZE)) ? self::adjust2($this->_SMALL_BLOCK_SIZE) : 6
|
||||
);
|
||||
|
||||
if (is_resource($filename)) {
|
||||
|
@ -130,21 +130,21 @@ class Root extends \PhpSpreadsheet\Shared\OLE\PPS
|
|||
$raList[$i]->Size = $raList[$i]->getDataLen();
|
||||
if ($raList[$i]->Size < \PhpSpreadsheet\Shared\OLE::OLE_DATA_SIZE_SMALL) {
|
||||
$iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
|
||||
+ (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0);
|
||||
+ (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE) ? 1 : 0);
|
||||
} else {
|
||||
$iBBcnt += (floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) +
|
||||
(($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0));
|
||||
(($raList[$i]->Size % $this->_BIG_BLOCK_SIZE) ? 1 : 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
$iSmallLen = $iSBcnt * $this->_SMALL_BLOCK_SIZE;
|
||||
$iSlCnt = floor($this->_BIG_BLOCK_SIZE / \PhpSpreadsheet\Shared\OLE::OLE_LONG_INT_SIZE);
|
||||
$iSBDcnt = floor($iSBcnt / $iSlCnt) + (($iSBcnt % $iSlCnt)? 1:0);
|
||||
$iSBDcnt = floor($iSBcnt / $iSlCnt) + (($iSBcnt % $iSlCnt) ? 1 : 0);
|
||||
$iBBcnt += (floor($iSmallLen / $this->_BIG_BLOCK_SIZE) +
|
||||
(($iSmallLen % $this->_BIG_BLOCK_SIZE)? 1: 0));
|
||||
(($iSmallLen % $this->_BIG_BLOCK_SIZE) ? 1 : 0));
|
||||
$iCnt = count($raList);
|
||||
$iBdCnt = $this->_BIG_BLOCK_SIZE / \PhpSpreadsheet\Shared\OLE::OLE_PPS_SIZE;
|
||||
$iPPScnt = (floor($iCnt / $iBdCnt) + (($iCnt % $iBdCnt)? 1: 0));
|
||||
$iPPScnt = (floor($iCnt / $iBdCnt) + (($iCnt % $iBdCnt) ? 1 : 0));
|
||||
|
||||
return [$iSBDcnt, $iBBcnt, $iPPScnt];
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ class Root extends \PhpSpreadsheet\Shared\OLE\PPS
|
|||
{
|
||||
$iWk = log($i2) / log(2);
|
||||
|
||||
return ($iWk > floor($iWk))? floor($iWk) + 1:$iWk;
|
||||
return ($iWk > floor($iWk)) ? floor($iWk) + 1 : $iWk;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -181,16 +181,16 @@ class Root extends \PhpSpreadsheet\Shared\OLE\PPS
|
|||
$iBdExL = 0;
|
||||
$iAll = $iBBcnt + $iPPScnt + $iSBDcnt;
|
||||
$iAllW = $iAll;
|
||||
$iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0);
|
||||
$iBdCnt = floor(($iAll + $iBdCntW) / $iBlCnt) + ((($iAllW + $iBdCntW) % $iBlCnt)? 1: 0);
|
||||
$iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt) ? 1 : 0);
|
||||
$iBdCnt = floor(($iAll + $iBdCntW) / $iBlCnt) + ((($iAllW + $iBdCntW) % $iBlCnt) ? 1 : 0);
|
||||
|
||||
// Calculate BD count
|
||||
if ($iBdCnt > $i1stBdL) {
|
||||
while (1) {
|
||||
++$iBdExL;
|
||||
++$iAllW;
|
||||
$iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0);
|
||||
$iBdCnt = floor(($iAllW + $iBdCntW) / $iBlCnt) + ((($iAllW + $iBdCntW) % $iBlCnt)? 1: 0);
|
||||
$iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt) ? 1 : 0);
|
||||
$iBdCnt = floor(($iAllW + $iBdCntW) / $iBlCnt) + ((($iAllW + $iBdCntW) % $iBlCnt) ? 1 : 0);
|
||||
if ($iBdCnt <= ($iBdExL * $iBlCnt + $i1stBdL)) {
|
||||
break;
|
||||
}
|
||||
|
@ -278,7 +278,7 @@ class Root extends \PhpSpreadsheet\Shared\OLE\PPS
|
|||
$raList[$i]->startBlock = $iStBlk;
|
||||
$iStBlk +=
|
||||
(floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) +
|
||||
(($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0));
|
||||
(($raList[$i]->Size % $this->_BIG_BLOCK_SIZE) ? 1 : 0));
|
||||
}
|
||||
// Close file for each PPS, and unlink it
|
||||
//if (isset($raList[$i]->_PPS_FILE)) {
|
||||
|
@ -310,7 +310,7 @@ class Root extends \PhpSpreadsheet\Shared\OLE\PPS
|
|||
}
|
||||
if ($raList[$i]->Size < \PhpSpreadsheet\Shared\OLE::OLE_DATA_SIZE_SMALL) {
|
||||
$iSmbCnt = floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
|
||||
+ (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0);
|
||||
+ (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE) ? 1 : 0);
|
||||
// Add to SBD
|
||||
$jB = $iSmbCnt - 1;
|
||||
for ($j = 0; $j < $jB; ++$j) {
|
||||
|
@ -384,15 +384,15 @@ class Root extends \PhpSpreadsheet\Shared\OLE\PPS
|
|||
$iBdExL = 0;
|
||||
$iAll = $iBsize + $iPpsCnt + $iSbdSize;
|
||||
$iAllW = $iAll;
|
||||
$iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0);
|
||||
$iBdCnt = floor(($iAll + $iBdCntW) / $iBbCnt) + ((($iAllW + $iBdCntW) % $iBbCnt)? 1: 0);
|
||||
$iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt) ? 1 : 0);
|
||||
$iBdCnt = floor(($iAll + $iBdCntW) / $iBbCnt) + ((($iAllW + $iBdCntW) % $iBbCnt) ? 1 : 0);
|
||||
// Calculate BD count
|
||||
if ($iBdCnt > $i1stBdL) {
|
||||
while (1) {
|
||||
++$iBdExL;
|
||||
++$iAllW;
|
||||
$iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0);
|
||||
$iBdCnt = floor(($iAllW + $iBdCntW) / $iBbCnt) + ((($iAllW + $iBdCntW) % $iBbCnt)? 1: 0);
|
||||
$iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt) ? 1 : 0);
|
||||
$iBdCnt = floor(($iAllW + $iBdCntW) / $iBbCnt) + ((($iAllW + $iBdCntW) % $iBbCnt) ? 1 : 0);
|
||||
if ($iBdCnt <= ($iBdExL * $iBbCnt + $i1stBdL)) {
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -4980,7 +4980,7 @@ function PclZipUtilPathReduction($p_dir)
|
|||
if ($v_skip > 0) {
|
||||
--$v_skip;
|
||||
} else {
|
||||
$v_result = $v_list[$i] . ($i != (sizeof($v_list) - 1)?'/' . $v_result:'');
|
||||
$v_result = $v_list[$i] . ($i != (sizeof($v_list) - 1) ? '/' . $v_result : '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2962,7 +2962,7 @@ class Worksheet implements IComparable
|
|||
if ($this->getCodeName() == $pValue) {
|
||||
return $this;
|
||||
}
|
||||
$pValue = str_replace(' ', '_', $pValue);//Excel does this automatically without flinching, we are doing the same
|
||||
$pValue = str_replace(' ', '_', $pValue); //Excel does this automatically without flinching, we are doing the same
|
||||
// Syntax check
|
||||
// throw an exception if not valid
|
||||
self::checkSheetCodeName($pValue);
|
||||
|
@ -2991,7 +2991,7 @@ class Worksheet implements IComparable
|
|||
}
|
||||
}
|
||||
|
||||
$pValue = $pValue . '_' . $i;// ok, we have a valid name
|
||||
$pValue = $pValue . '_' . $i; // ok, we have a valid name
|
||||
//codeName is'nt used in formula : no need to call for an update
|
||||
//return $this->setTitle($altTitle, $updateFormulaCellReferences);
|
||||
}
|
||||
|
|
|
@ -137,8 +137,7 @@ class BaseDrawing implements \PhpSpreadsheet\IComparable
|
|||
$this->rotation = 0;
|
||||
$this->shadow = new Drawing\Shadow();
|
||||
|
||||
// Set image index
|
||||
++self::$imageCounter;
|
||||
// Set image index++self::$imageCounter;
|
||||
$this->imageIndex = self::$imageCounter;
|
||||
}
|
||||
|
||||
|
|
|
@ -237,7 +237,7 @@ class Excel2007 extends BaseWriter implements IWriter
|
|||
$macrosCode = $this->spreadSheet->getMacrosCode();
|
||||
if (!is_null($macrosCode)) {
|
||||
// we have the code ?
|
||||
$objZip->addFromString('xl/vbaProject.bin', $macrosCode);//allways in 'xl', allways named vbaProject.bin
|
||||
$objZip->addFromString('xl/vbaProject.bin', $macrosCode); //allways in 'xl', allways named vbaProject.bin
|
||||
if ($this->spreadSheet->hasMacrosCertificate()) {
|
||||
//signed macros ?
|
||||
// Yes : add the certificate file and the related rels file
|
||||
|
@ -252,7 +252,7 @@ class Excel2007 extends BaseWriter implements IWriter
|
|||
$objZip->addFromString($tmpRibbonTarget, $this->spreadSheet->getRibbonXMLData('data'));
|
||||
if ($this->spreadSheet->hasRibbonBinObjects()) {
|
||||
$tmpRootPath = dirname($tmpRibbonTarget) . '/';
|
||||
$ribbonBinObjects = $this->spreadSheet->getRibbonBinObjects('data');//the files to write
|
||||
$ribbonBinObjects = $this->spreadSheet->getRibbonBinObjects('data'); //the files to write
|
||||
foreach ($ribbonBinObjects as $aPath => $aContent) {
|
||||
$objZip->addFromString($tmpRootPath . $aPath, $aContent);
|
||||
}
|
||||
|
|
|
@ -157,7 +157,7 @@ class ContentTypes extends WriterPart
|
|||
// we need to write "Extension" but not already write for media content
|
||||
$tabRibbonTypes = array_diff($spreadsheet->getRibbonBinObjects('types'), array_keys($aMediaContentTypes));
|
||||
foreach ($tabRibbonTypes as $aRibbonType) {
|
||||
$mimeType = 'image/.' . $aRibbonType;//we wrote $mimeType like customUI Editor
|
||||
$mimeType = 'image/.' . $aRibbonType; //we wrote $mimeType like customUI Editor
|
||||
$this->writeDefaultContentType($objWriter, $aRibbonType, $mimeType);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -166,7 +166,7 @@ class Rels extends WriterPart
|
|||
'http://schemas.microsoft.com/office/2006/relationships/vbaProject',
|
||||
'vbaProject.bin'
|
||||
);
|
||||
++$i;//increment i if needed for an another relation
|
||||
++$i; //increment i if needed for an another relation
|
||||
}
|
||||
|
||||
$objWriter->endElement();
|
||||
|
|
|
@ -621,7 +621,7 @@ class Style extends WriterPart
|
|||
/** @var \PhpSpreadsheet\Style $style */
|
||||
foreach ($aStyles as $style) {
|
||||
if (!array_key_exists($style->getFill()->getHashCode(), $aFills)) {
|
||||
$aFills[ $style->getFill()->getHashCode() ] = $style->getFill();
|
||||
$aFills[$style->getFill()->getHashCode()] = $style->getFill();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -644,7 +644,7 @@ class Style extends WriterPart
|
|||
/** @var \PhpSpreadsheet\Style $style */
|
||||
foreach ($aStyles as $style) {
|
||||
if (!array_key_exists($style->getFont()->getHashCode(), $aFonts)) {
|
||||
$aFonts[ $style->getFont()->getHashCode() ] = $style->getFont();
|
||||
$aFonts[$style->getFont()->getHashCode()] = $style->getFont();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -667,7 +667,7 @@ class Style extends WriterPart
|
|||
/** @var \PhpSpreadsheet\Style $style */
|
||||
foreach ($aStyles as $style) {
|
||||
if (!array_key_exists($style->getBorders()->getHashCode(), $aBorders)) {
|
||||
$aBorders[ $style->getBorders()->getHashCode() ] = $style->getBorders();
|
||||
$aBorders[$style->getBorders()->getHashCode()] = $style->getBorders();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -690,7 +690,7 @@ class Style extends WriterPart
|
|||
/** @var \PhpSpreadsheet\Style $style */
|
||||
foreach ($aStyles as $style) {
|
||||
if ($style->getNumberFormat()->getBuiltInFormatCode() === false && !array_key_exists($style->getNumberFormat()->getHashCode(), $aNumFmts)) {
|
||||
$aNumFmts[ $style->getNumberFormat()->getHashCode() ] = $style->getNumberFormat();
|
||||
$aNumFmts[$style->getNumberFormat()->getHashCode()] = $style->getNumberFormat();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -707,7 +707,7 @@ class Worksheet extends WriterPart
|
|||
// printOptions
|
||||
$objWriter->startElement('printOptions');
|
||||
|
||||
$objWriter->writeAttribute('gridLines', ($pSheet->getPrintGridlines() ? 'true': 'false'));
|
||||
$objWriter->writeAttribute('gridLines', ($pSheet->getPrintGridlines() ? 'true' : 'false'));
|
||||
$objWriter->writeAttribute('gridLinesSet', 'true');
|
||||
|
||||
if ($pSheet->getPageSetup()->getHorizontalCentered()) {
|
||||
|
@ -800,7 +800,7 @@ class Worksheet extends WriterPart
|
|||
// Top 10 Filter Rule
|
||||
$objWriter->writeAttribute('val', $rule->getValue());
|
||||
$objWriter->writeAttribute('percent', (($rule->getOperator() === \PhpSpreadsheet\Worksheet\AutoFilter\Column\Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT) ? '1' : '0'));
|
||||
$objWriter->writeAttribute('top', (($rule->getGrouping() === \PhpSpreadsheet\Worksheet\AutoFilter\Column\Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) ? '1': '0'));
|
||||
$objWriter->writeAttribute('top', (($rule->getGrouping() === \PhpSpreadsheet\Worksheet\AutoFilter\Column\Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) ? '1' : '0'));
|
||||
} else {
|
||||
// Filter, DateGroupItem or CustomFilter
|
||||
$objWriter->startElement($rule->getRuleType());
|
||||
|
@ -1079,8 +1079,7 @@ class Worksheet extends WriterPart
|
|||
break;
|
||||
case 'f': // Formula
|
||||
$calculatedValue = ($this->getParentWriter()->getPreCalculateFormulas()) ?
|
||||
$pCell->getCalculatedValue() :
|
||||
$cellValue;
|
||||
$pCell->getCalculatedValue() : $cellValue;
|
||||
if (is_string($calculatedValue)) {
|
||||
$objWriter->writeAttribute('t', 'str');
|
||||
}
|
||||
|
|
|
@ -1158,7 +1158,7 @@ class Worksheet extends BIFFwriter
|
|||
$dir_short_len .
|
||||
$dir_short .
|
||||
$unknown3 .
|
||||
$stream_len;/*.
|
||||
$stream_len; /*.
|
||||
$dir_long_len .
|
||||
$unknown4 .
|
||||
$dir_long .
|
||||
|
|
|
@ -167,16 +167,16 @@ class Xf
|
|||
}
|
||||
|
||||
// Flags to indicate if attributes have been set.
|
||||
$atr_num = ($this->numberFormatIndex != 0)?1:0;
|
||||
$atr_fnt = ($this->fontIndex != 0)?1:0;
|
||||
$atr_num = ($this->numberFormatIndex != 0) ? 1 : 0;
|
||||
$atr_fnt = ($this->fontIndex != 0) ? 1 : 0;
|
||||
$atr_alc = ((int) $this->_style->getAlignment()->getWrapText()) ? 1 : 0;
|
||||
$atr_bdr = (self::mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) ||
|
||||
self::mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) ||
|
||||
self::mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()) ||
|
||||
self::mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()))?1:0;
|
||||
self::mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle())) ? 1 : 0;
|
||||
$atr_pat = (($this->foregroundColor != 0x40) ||
|
||||
($this->backgroundColor != 0x41) ||
|
||||
self::mapFillType($this->_style->getFill()->getFillType()))?1:0;
|
||||
self::mapFillType($this->_style->getFill()->getFillType())) ? 1 : 0;
|
||||
$atr_prot = self::mapLocked($this->_style->getProtection()->getLocked())
|
||||
| self::mapHidden($this->_style->getProtection()->getHidden());
|
||||
|
||||
|
|
|
@ -1580,7 +1580,7 @@ class HTML extends BaseWriter implements IWriter
|
|||
|
||||
if (!in_array($baseCell, $adjustedBaseCells)) {
|
||||
// subtract rowspan by 1
|
||||
--$this->isBaseCell[$sheetIndex][ $baseCell[0] ][ $baseCell[1] ]['rowspan'];
|
||||
--$this->isBaseCell[$sheetIndex][$baseCell[0]][$baseCell[1]]['rowspan'];
|
||||
$adjustedBaseCells[] = $baseCell;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue