Fix code style
This commit is contained in:
parent
157b6e75e4
commit
5ec0e333dd
|
@ -4786,6 +4786,7 @@ class Calculation
|
|||
|
||||
return $value;
|
||||
}, $tokens);
|
||||
|
||||
return '[ ' . implode(' | ', $tokensStr) . ' ]';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ abstract class IOFactory
|
|||
|
||||
// Instantiate writer
|
||||
$className = self::$writers[$writerType];
|
||||
|
||||
return new $className($spreadsheet);
|
||||
}
|
||||
|
||||
|
@ -72,6 +73,7 @@ abstract class IOFactory
|
|||
|
||||
// Instantiate reader
|
||||
$className = self::$readers[$readerType];
|
||||
|
||||
return new $className();
|
||||
}
|
||||
|
||||
|
|
|
@ -285,6 +285,7 @@ class Xml extends BaseReader
|
|||
{
|
||||
$pixels = ($widthUnits / 256) * 7;
|
||||
$offsetWidthUnits = $widthUnits % 256;
|
||||
|
||||
return $pixels + round($offsetWidthUnits / (256 / 7));
|
||||
}
|
||||
|
||||
|
|
|
@ -2912,6 +2912,7 @@ class Worksheet implements IComparable
|
|||
$rangeSet = $rangeBoundaries[0][0] . $rangeBoundaries[0][1] . ':' . $rangeBoundaries[1][0] . $rangeBoundaries[1][1];
|
||||
}
|
||||
unset($rangeSet);
|
||||
|
||||
return implode(' ', $rangeBlocks);
|
||||
}
|
||||
|
||||
|
|
|
@ -1058,6 +1058,7 @@ class Html extends BaseWriter
|
|||
{
|
||||
// Create CSS - add !important to non-none border styles for merged cells
|
||||
$borderStyle = $this->mapBorderStyle($pStyle->getBorderStyle());
|
||||
|
||||
return $borderStyle . ' #' . $pStyle->getColor()->getRGB() . (($borderStyle == 'none') ? '' : ' !important');
|
||||
}
|
||||
|
||||
|
|
|
@ -1161,12 +1161,14 @@ class Parser
|
|||
// catch "-" Term
|
||||
$this->advance();
|
||||
$result2 = $this->expression();
|
||||
|
||||
return $this->createTree('ptgUminus', $result2, '');
|
||||
// If it's a positive value
|
||||
} elseif ($this->currentToken == '+') {
|
||||
// catch "+" Term
|
||||
$this->advance();
|
||||
$result2 = $this->expression();
|
||||
|
||||
return $this->createTree('ptgUplus', $result2, '');
|
||||
}
|
||||
$result = $this->term();
|
||||
|
|
Loading…
Reference in New Issue