@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | /** @return float|string */ |
21 | - public function execute(float $probability): string|int|float |
|
21 | + public function execute(float $probability): string | int | float |
|
22 | 22 | { |
23 | 23 | $xLo = 100; |
24 | 24 | $xHi = 0; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * the column label in which you specify a condition for the |
31 | 31 | * column. |
32 | 32 | */ |
33 | - public static function evaluate($database, $field, $criteria): string|float |
|
33 | + public static function evaluate($database, $field, $criteria): string | float |
|
34 | 34 | { |
35 | 35 | $field = self::fieldExtract($database, $field); |
36 | 36 | if ($field === null) { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * |
33 | 33 | * @return float|string |
34 | 34 | */ |
35 | - public static function evaluate($database, $field, $criteria): string|int|float |
|
35 | + public static function evaluate($database, $field, $criteria): string | int | float |
|
36 | 36 | { |
37 | 37 | $field = self::fieldExtract($database, $field); |
38 | 38 | if ($field === null) { |
@@ -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) { |
@@ -705,7 +705,7 @@ |
||
705 | 705 | } |
706 | 706 | } |
707 | 707 | |
708 | - private function processDrawing(WorksheetDrawing $drawing): string|null|false |
|
708 | + private function processDrawing(WorksheetDrawing $drawing): string | null | false |
|
709 | 709 | { |
710 | 710 | $data = null; |
711 | 711 | $filename = $drawing->getPath(); |
@@ -3473,7 +3473,7 @@ |
||
3473 | 3473 | * |
3474 | 3474 | * @return ($range is non-empty-string ? ($returnRange is true ? array{0: string, 1: string} : string) : ($returnRange is true ? array{0: null, 1: null} : null)) |
3475 | 3475 | */ |
3476 | - public static function extractSheetTitle($range, $returnRange = false): array|null|string |
|
3476 | + public static function extractSheetTitle($range, $returnRange = false): array | null | string |
|
3477 | 3477 | { |
3478 | 3478 | if (empty($range)) { |
3479 | 3479 | return $returnRange ? [null, null] : null; |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * |
54 | 54 | * @return RichText|string Sanitized value |
55 | 55 | */ |
56 | - public static function checkString($textValue): RichText|string|array |
|
56 | + public static function checkString($textValue): RichText | string | array |
|
57 | 57 | { |
58 | 58 | if ($textValue instanceof RichText) { |
59 | 59 | // TODO: Sanitize Rich-Text string (max. character count is 32,767) |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * |
16 | 16 | * @return int Value in EMU |
17 | 17 | */ |
18 | - public static function pixelsToEMU($pixelValue): int|float |
|
18 | + public static function pixelsToEMU($pixelValue): int | float |
|
19 | 19 | { |
20 | 20 | return $pixelValue * 9525; |
21 | 21 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * |
47 | 47 | * @return float|int Value in cell dimension |
48 | 48 | */ |
49 | - public static function pixelsToCellDimension($pixelValue, \PhpOffice\PhpSpreadsheet\Style\Font $defaultFont): int|float |
|
49 | + public static function pixelsToCellDimension($pixelValue, \PhpOffice\PhpSpreadsheet\Style\Font $defaultFont): int | float |
|
50 | 50 | { |
51 | 51 | // Font name and size |
52 | 52 | $name = $defaultFont->getName(); |
@@ -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 |