@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | private Configuration $configuration; |
29 | 29 | |
30 | - public function __construct(string $locale, Factory|null $comparatorFactory = null) |
|
30 | + public function __construct(string $locale, Factory | null $comparatorFactory = null) |
|
31 | 31 | { |
32 | 32 | $this->collator = new Collator($locale); |
33 | 33 | $this->configuration = new Configuration(); |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $sorter = new Asc($comparator); |
237 | 237 | } |
238 | 238 | |
239 | - if (! $this->isAsc) { |
|
239 | + if (!$this->isAsc) { |
|
240 | 240 | return new Desc($sorter); |
241 | 241 | } |
242 | 242 |
@@ -10,16 +10,16 @@ |
||
10 | 10 | public const NULL_VALUES_LAST = 2; |
11 | 11 | |
12 | 12 | /** @phpstan-var self::NULL_VALUES_*|null */ |
13 | - private int|null $nullableSort = null; |
|
13 | + private int | null $nullableSort = null; |
|
14 | 14 | |
15 | 15 | /** @phpstan-param self::NULL_VALUES_*|null $value */ |
16 | - public function setNullableSort(int|null $value): void |
|
16 | + public function setNullableSort(int | null $value): void |
|
17 | 17 | { |
18 | 18 | $this->nullableSort = $value; |
19 | 19 | } |
20 | 20 | |
21 | 21 | /** @phpstan-return self::NULL_VALUES_*|null */ |
22 | - public function getNullableSort(): int|null |
|
22 | + public function getNullableSort(): int | null |
|
23 | 23 | { |
24 | 24 | return $this->nullableSort; |
25 | 25 | } |
@@ -21,14 +21,14 @@ |
||
21 | 21 | /** @psalm-param class-string<CollatorConstructor> $classname */ |
22 | 22 | public function __construct(string $classname) |
23 | 23 | { |
24 | - if (! class_exists($classname)) { |
|
24 | + if (!class_exists($classname)) { |
|
25 | 25 | throw IntlSortException::classDoesNotExist($classname); |
26 | 26 | } |
27 | 27 | |
28 | 28 | /** @var array<string> $interfaces */ |
29 | 29 | $interfaces = class_implements($classname); |
30 | 30 | |
31 | - if (! in_array(CollatorConstructor::class, $interfaces, true)) { |
|
31 | + if (!in_array(CollatorConstructor::class, $interfaces, true)) { |
|
32 | 32 | throw IntlSortException::doesNotImplementComparable($classname); |
33 | 33 | } |
34 | 34 |