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;
}, $tokens);
return '[ ' . implode(' | ', $tokensStr) . ' ]';
}
}

View File

@ -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();
}

View File

@ -285,6 +285,7 @@ class Xml extends BaseReader
{
$pixels = ($widthUnits / 256) * 7;
$offsetWidthUnits = $widthUnits % 256;
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];
}
unset($rangeSet);
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
$borderStyle = $this->mapBorderStyle($pStyle->getBorderStyle());
return $borderStyle . ' #' . $pStyle->getColor()->getRGB() . (($borderStyle == 'none') ? '' : ' !important');
}

View File

@ -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();