@@ -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(array $database, array|null|int|string $field, array $criteria): string|int |
|
33 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria): string | int |
|
34 | 34 | { |
35 | 35 | $field = self::fieldExtract($database, $field); |
36 | 36 | if ($field === null) { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * the column label in which you specify a condition for the |
32 | 32 | * column. |
33 | 33 | */ |
34 | - public static function evaluate(array $database, array|null|int|string $field, array $criteria, bool $returnError = true): float|string|null |
|
34 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria, bool $returnError = true): float | string | null |
|
35 | 35 | { |
36 | 36 | $field = self::fieldExtract($database, $field); |
37 | 37 | 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(array $database, array|null|int|string $field, array $criteria): string|float |
|
36 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria): string | float |
|
37 | 37 | { |
38 | 38 | $field = self::fieldExtract($database, $field); |
39 | 39 | if ($field === null) { |
@@ -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(array $database, array|null|int|string $field, array $criteria): null|float|int|string |
|
33 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria): null | float | int | string |
|
34 | 34 | { |
35 | 35 | $field = self::fieldExtract($database, $field); |
36 | 36 | if ($field === null) { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * the column label in which you specify a condition for the |
32 | 32 | * column. |
33 | 33 | */ |
34 | - public static function evaluate(array $database, array|null|int|string $field, array $criteria, bool $returnError = true): string|int |
|
34 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria, bool $returnError = true): string | int |
|
35 | 35 | { |
36 | 36 | $field = self::fieldExtract($database, $field); |
37 | 37 | if ($returnError && $field === null) { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * the column label in which you specify a condition for the |
32 | 32 | * column. |
33 | 33 | */ |
34 | - public static function evaluate(array $database, array|null|int|string $field, array $criteria, bool $returnError = true): null|float|string |
|
34 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria, bool $returnError = true): null | float | string |
|
35 | 35 | { |
36 | 36 | $field = self::fieldExtract($database, $field); |
37 | 37 | if ($field === null) { |
@@ -2116,7 +2116,7 @@ discard block |
||
2116 | 2116 | * @param float $scale_x The horizontal scale |
2117 | 2117 | * @param float $scale_y The vertical scale |
2118 | 2118 | */ |
2119 | - public function insertBitmap(int $row, int $col, GdImage|string $bitmap, int $x = 0, int $y = 0, float $scale_x = 1, float $scale_y = 1): void |
|
2119 | + public function insertBitmap(int $row, int $col, GdImage | string $bitmap, int $x = 0, int $y = 0, float $scale_x = 1, float $scale_y = 1): void |
|
2120 | 2120 | { |
2121 | 2121 | $bitmap_array = $bitmap instanceof GdImage |
2122 | 2122 | ? $this->processBitmapGd($bitmap) |
@@ -2258,7 +2258,7 @@ discard block |
||
2258 | 2258 | * @param int $rwB Row containing bottom right corner of object |
2259 | 2259 | * @param int $dyB Distance from bottom of cell |
2260 | 2260 | */ |
2261 | - private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void |
|
2261 | + private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void |
|
2262 | 2262 | { |
2263 | 2263 | $record = 0x005D; // Record identifier |
2264 | 2264 | $length = 0x003C; // Bytes to follow |
@@ -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 | protected ?string $unit = null; |
54 | 54 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * |
54 | 54 | * @return RichText|string Sanitized value |
55 | 55 | */ |
56 | - public static function checkString(null|RichText|string $textValue): RichText|string |
|
56 | + public static function checkString(null | RichText | string $textValue): RichText | string |
|
57 | 57 | { |
58 | 58 | if ($textValue instanceof RichText) { |
59 | 59 | // TODO: Sanitize Rich-Text string (max. character count is 32,767) |