@@ -21,11 +21,11 @@ |
||
| 21 | 21 | */ |
| 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 | - if (! in_array(CollatorConstructor::class, (array) class_implements($classname), true)) { |
|
| 28 | + if (!in_array(CollatorConstructor::class, (array) class_implements($classname), true)) { |
|
| 29 | 29 | throw IntlSortException::doesNotImplementComparable($classname); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function compare($value, $comparativeValue): int |
| 26 | 26 | { |
| 27 | 27 | try { |
| 28 | - $compared = $this->collator->compare((string)$value, (string)$comparativeValue); |
|
| 28 | + $compared = $this->collator->compare((string) $value, (string) $comparativeValue); |
|
| 29 | 29 | assert(is_int($compared)); |
| 30 | 30 | |
| 31 | 31 | if ($this->collator->getErrorCode() !== 0) { |