Fix code style

This commit is contained in:
Adrien Crivelli 2019-11-17 17:44:02 +01:00
parent 157b6e75e4
commit 5ec0e333dd
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
6 changed files with 8 additions and 0 deletions

View File

@ -4786,6 +4786,7 @@ class Calculation
return $value; return $value;
}, $tokens); }, $tokens);
return '[ ' . implode(' | ', $tokensStr) . ' ]'; return '[ ' . implode(' | ', $tokensStr) . ' ]';
} }
} }

View File

@ -52,6 +52,7 @@ abstract class IOFactory
// Instantiate writer // Instantiate writer
$className = self::$writers[$writerType]; $className = self::$writers[$writerType];
return new $className($spreadsheet); return new $className($spreadsheet);
} }
@ -72,6 +73,7 @@ abstract class IOFactory
// Instantiate reader // Instantiate reader
$className = self::$readers[$readerType]; $className = self::$readers[$readerType];
return new $className(); return new $className();
} }

View File

@ -285,6 +285,7 @@ class Xml extends BaseReader
{ {
$pixels = ($widthUnits / 256) * 7; $pixels = ($widthUnits / 256) * 7;
$offsetWidthUnits = $widthUnits % 256; $offsetWidthUnits = $widthUnits % 256;
return $pixels + round($offsetWidthUnits / (256 / 7)); return $pixels + round($offsetWidthUnits / (256 / 7));
} }

View File

@ -2912,6 +2912,7 @@ class Worksheet implements IComparable
$rangeSet = $rangeBoundaries[0][0] . $rangeBoundaries[0][1] . ':' . $rangeBoundaries[1][0] . $rangeBoundaries[1][1]; $rangeSet = $rangeBoundaries[0][0] . $rangeBoundaries[0][1] . ':' . $rangeBoundaries[1][0] . $rangeBoundaries[1][1];
} }
unset($rangeSet); unset($rangeSet);
return implode(' ', $rangeBlocks); return implode(' ', $rangeBlocks);
} }

View File

@ -1058,6 +1058,7 @@ class Html extends BaseWriter
{ {
// Create CSS - add !important to non-none border styles for merged cells // Create CSS - add !important to non-none border styles for merged cells
$borderStyle = $this->mapBorderStyle($pStyle->getBorderStyle()); $borderStyle = $this->mapBorderStyle($pStyle->getBorderStyle());
return $borderStyle . ' #' . $pStyle->getColor()->getRGB() . (($borderStyle == 'none') ? '' : ' !important'); return $borderStyle . ' #' . $pStyle->getColor()->getRGB() . (($borderStyle == 'none') ? '' : ' !important');
} }

View File

@ -1161,12 +1161,14 @@ class Parser
// catch "-" Term // catch "-" Term
$this->advance(); $this->advance();
$result2 = $this->expression(); $result2 = $this->expression();
return $this->createTree('ptgUminus', $result2, ''); return $this->createTree('ptgUminus', $result2, '');
// If it's a positive value // If it's a positive value
} elseif ($this->currentToken == '+') { } elseif ($this->currentToken == '+') {
// catch "+" Term // catch "+" Term
$this->advance(); $this->advance();
$result2 = $this->expression(); $result2 = $this->expression();
return $this->createTree('ptgUplus', $result2, ''); return $this->createTree('ptgUplus', $result2, '');
} }
$result = $this->term(); $result = $this->term();