@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | * |
540 | 540 | * @return int Size (in pixels) |
541 | 541 | */ |
542 | - public static function inchSizeToPixels($sizeInInch): int|float |
|
542 | + public static function inchSizeToPixels($sizeInInch): int | float |
|
543 | 543 | { |
544 | 544 | return $sizeInInch * 96; |
545 | 545 | } |
@@ -652,7 +652,7 @@ discard block |
||
652 | 652 | * |
653 | 653 | * @return ($returnAsPixels is true ? int : float) Column width |
654 | 654 | */ |
655 | - public static function getDefaultColumnWidthByFont(FontStyle $font, bool $returnAsPixels = false): float|int |
|
655 | + public static function getDefaultColumnWidthByFont(FontStyle $font, bool $returnAsPixels = false): float | int |
|
656 | 656 | { |
657 | 657 | if (isset(self::DEFAULT_COLUMN_WIDTHS[$font->getName()][$font->getSize()])) { |
658 | 658 | // Exact width can be determined |
@@ -117,7 +117,7 @@ |
||
117 | 117 | * |
118 | 118 | * @return false|string |
119 | 119 | */ |
120 | - public function stream_read($count): bool|string // @codingStandardsIgnoreLine |
|
120 | + public function stream_read($count): bool | string // @codingStandardsIgnoreLine |
|
121 | 121 | { |
122 | 122 | if ($this->stream_eof()) { |
123 | 123 | return false; |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | * |
313 | 313 | * @return false|float MS Excel serialized date/time value |
314 | 314 | */ |
315 | - public static function timestampToExcel($unixTimestamp): bool|float |
|
315 | + public static function timestampToExcel($unixTimestamp): bool | float |
|
316 | 316 | { |
317 | 317 | if (!is_numeric($unixTimestamp)) { |
318 | 318 | return false; |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | * |
477 | 477 | * @return false|float Excel date/time serial value |
478 | 478 | */ |
479 | - public static function stringToExcel($dateValue): bool|float |
|
479 | + public static function stringToExcel($dateValue): bool | float |
|
480 | 480 | { |
481 | 481 | if (strlen($dateValue) < 2) { |
482 | 482 | return false; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * |
65 | 65 | * @return float X-Value |
66 | 66 | */ |
67 | - public function getValueOfXForY($yValue): int|float |
|
67 | + public function getValueOfXForY($yValue): int | float |
|
68 | 68 | { |
69 | 69 | return ($yValue - $this->getIntersect()) / $this->getSlope(); |
70 | 70 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @return float Y-Value |
21 | 21 | */ |
22 | - public function getValueOfYForX($xValue): int|float |
|
22 | + public function getValueOfYForX($xValue): int | float |
|
23 | 23 | { |
24 | 24 | return $this->getIntersect() + $this->getSlope() * $xValue; |
25 | 25 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * |
32 | 32 | * @return float X-Value |
33 | 33 | */ |
34 | - public function getValueOfXForY($yValue): int|float |
|
34 | + public function getValueOfXForY($yValue): int | float |
|
35 | 35 | { |
36 | 36 | return ($yValue - $this->getIntersect()) / $this->getSlope(); |
37 | 37 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @return float|string (string if result is an error) |
35 | 35 | */ |
36 | - public static function evaluate($database, $field, $criteria): string|float |
|
36 | + public static function evaluate($database, $field, $criteria): string | float |
|
37 | 37 | { |
38 | 38 | $field = self::fieldExtract($database, $field); |
39 | 39 | if ($field === null) { |
@@ -110,7 +110,7 @@ |
||
110 | 110 | * |
111 | 111 | * @return false|SimpleXMLElement |
112 | 112 | */ |
113 | - public function trySimpleXMLLoadString(string $filename): SimpleXMLElement|bool |
|
113 | + public function trySimpleXMLLoadString(string $filename): SimpleXMLElement | bool |
|
114 | 114 | { |
115 | 115 | try { |
116 | 116 | $xml = simplexml_load_string( |
@@ -877,7 +877,7 @@ |
||
877 | 877 | * |
878 | 878 | * @param int $row |
879 | 879 | */ |
880 | - private function applyInlineStyle(Worksheet &$sheet, $row, string $column, array $attributeArray): void |
|
880 | + private function applyInlineStyle(Worksheet & $sheet, $row, string $column, array $attributeArray): void |
|
881 | 881 | { |
882 | 882 | if (!isset($attributeArray['style'])) { |
883 | 883 | return; |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * If this is a height, then size is measured in pixels () |
49 | 49 | * or in points () if $unit is null. |
50 | 50 | */ |
51 | - protected float|int $size; |
|
51 | + protected float | int $size; |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * @var null|string |