Fix code style
This commit is contained in:
parent
157b6e75e4
commit
5ec0e333dd
|
@ -4786,6 +4786,7 @@ class Calculation
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
}, $tokens);
|
}, $tokens);
|
||||||
|
|
||||||
return '[ ' . implode(' | ', $tokensStr) . ' ]';
|
return '[ ' . implode(' | ', $tokensStr) . ' ]';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue