@@ -62,14 +62,14 @@ |
||
62 | 62 | return array_key_exists($key, $this->cache); |
63 | 63 | } |
64 | 64 | |
65 | - public function set(string $key, mixed $value, null|int|DateInterval $ttl = null): bool |
|
65 | + public function set(string $key, mixed $value, null | int | DateInterval $ttl = null): bool |
|
66 | 66 | { |
67 | 67 | $this->cache[$key] = $value; |
68 | 68 | |
69 | 69 | return true; |
70 | 70 | } |
71 | 71 | |
72 | - public function setMultiple(iterable $values, null|int|DateInterval $ttl = null): bool |
|
72 | + public function setMultiple(iterable $values, null | int | DateInterval $ttl = null): bool |
|
73 | 73 | { |
74 | 74 | foreach ($values as $key => $value) { |
75 | 75 | $this->set($key, $value); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * @dataProvider providerHEX2DEC |
32 | 32 | */ |
33 | - public function testDirectCallToHEX2DEC(mixed $expectedResult, bool|float|int|string $value): void |
|
33 | + public function testDirectCallToHEX2DEC(mixed $expectedResult, bool | float | int | string $value): void |
|
34 | 34 | { |
35 | 35 | $result = ConvertHex::toDecimal($value); |
36 | 36 | self::assertSame($expectedResult, $result); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * @dataProvider providerHEX2DECOds |
114 | 114 | */ |
115 | - public function testHEX2DECOds(mixed $expectedResult, bool|float|int|string $value): void |
|
115 | + public function testHEX2DECOds(mixed $expectedResult, bool | float | int | string $value): void |
|
116 | 116 | { |
117 | 117 | Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); |
118 | 118 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | /** |
49 | 49 | * @dataProvider providerCONVERTUOM |
50 | 50 | */ |
51 | - public function testDirectCallToCONVERTUOM(float|int|string $expectedResult, float|int|string $value, string $from, string $to): void |
|
51 | + public function testDirectCallToCONVERTUOM(float | int | string $expectedResult, float | int | string $value, string $from, string $to): void |
|
52 | 52 | { |
53 | 53 | $result = ConvertUOM::convert($value, $from, $to); |
54 | 54 | self::assertEqualsWithDelta($expectedResult, $result, self::UOM_PRECISION); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @dataProvider providerIMAGINARY |
26 | 26 | */ |
27 | - public function testDirectCallToIMAGINARY(float|int|string $expectedResult, float|int|string $arg): void |
|
27 | + public function testDirectCallToIMAGINARY(float | int | string $expectedResult, float | int | string $arg): void |
|
28 | 28 | { |
29 | 29 | $result = Complex::IMAGINARY((string) $arg); |
30 | 30 | self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * @dataProvider providerDELTA |
18 | 18 | */ |
19 | - public function testDirectCallToDELTA(mixed $expectedResult, bool|float|int|string $arg1, null|bool|float|int|string $arg2 = null): void |
|
19 | + public function testDirectCallToDELTA(mixed $expectedResult, bool | float | int | string $arg1, null | bool | float | int | string $arg2 = null): void |
|
20 | 20 | { |
21 | 21 | $result = ($arg2 === null) ? Compare::delta($arg1) : Compare::delta($arg1, $arg2); |
22 | 22 | self::assertSame($expectedResult, $result); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * @dataProvider providerGESTEP |
18 | 18 | */ |
19 | - public function testDirectCallToGESTEP(int|string $expectedResult, bool|float|int|string $arg1, null|bool|float|int|string $arg2 = null): void |
|
19 | + public function testDirectCallToGESTEP(int | string $expectedResult, bool | float | int | string $arg1, null | bool | float | int | string $arg2 = null): void |
|
20 | 20 | { |
21 | 21 | $result = ($arg2 === null) ? Compare::geStep($arg1) : Compare::geStep($arg1, $arg2); |
22 | 22 | self::assertSame($expectedResult, $result); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * @dataProvider providerHEX2OCT |
32 | 32 | */ |
33 | - public function testDirectCallToHEX2OCT(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
33 | + public function testDirectCallToHEX2OCT(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
34 | 34 | { |
35 | 35 | $result = ($digits === null) ? ConvertHex::toOctal($value) : ConvertHex::toOctal($value, $digits); |
36 | 36 | self::assertSame($expectedResult, $result); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * @dataProvider providerHEX2OCTOds |
114 | 114 | */ |
115 | - public function testHEX2OCTOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
115 | + public function testHEX2OCTOds(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
116 | 116 | { |
117 | 117 | Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); |
118 | 118 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * @dataProvider providerBIN2OCT |
32 | 32 | */ |
33 | - public function testDirectCallToBIN2OCT(mixed $expectedResult, bool|float|int|string $value, null|float|int|string $digits = null): void |
|
33 | + public function testDirectCallToBIN2OCT(mixed $expectedResult, bool | float | int | string $value, null | float | int | string $digits = null): void |
|
34 | 34 | { |
35 | 35 | $result = ($digits === null) ? ConvertBinary::toOctal($value) : ConvertBinary::toOctal($value, $digits); |
36 | 36 | self::assertSame($expectedResult, $result); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * @dataProvider providerBIN2OCTOds |
114 | 114 | */ |
115 | - public function testBIN2OCTOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
115 | + public function testBIN2OCTOds(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
116 | 116 | { |
117 | 117 | Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); |
118 | 118 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | /** |
30 | 30 | * @dataProvider providerDEC2OCT |
31 | 31 | */ |
32 | - public function testDirectCallToDEC2OCT(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
32 | + public function testDirectCallToDEC2OCT(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
33 | 33 | { |
34 | 34 | $result = ($digits === null) ? ConvertDecimal::toOctal($value) : ConvertDecimal::toOctal($value, $digits); |
35 | 35 | self::assertSame($expectedResult, $result); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * @dataProvider providerDEC2OCTOds |
113 | 113 | */ |
114 | - public function testDEC2OCTOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
114 | + public function testDEC2OCTOds(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
115 | 115 | { |
116 | 116 | Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); |
117 | 117 |