@@ -217,7 +217,7 @@ |
||
217 | 217 | $sorter = new Asc($comparator); |
218 | 218 | } |
219 | 219 | |
220 | - if (! $this->isAsc) { |
|
220 | + if (!$this->isAsc) { |
|
221 | 221 | return new Desc($sorter); |
222 | 222 | } |
223 | 223 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * @param mixed $first |
32 | 32 | * @param mixed $second |
33 | 33 | */ |
34 | - static function ($first, $second) use ($comparable): int { |
|
34 | + static function($first, $second) use ($comparable): int { |
|
35 | 35 | return $comparable->compare($first, $second); |
36 | 36 | } |
37 | 37 | ); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * @param mixed $first |
32 | 32 | * @param mixed $second |
33 | 33 | */ |
34 | - static function ($first, $second) use ($comparable): int { |
|
34 | + static function($first, $second) use ($comparable): int { |
|
35 | 35 | return $comparable->compare($first, $second); |
36 | 36 | } |
37 | 37 | ); |
@@ -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 | |
30 | 30 | if ($this->collator->getErrorCode() !== 0) { |
31 | 31 | throw IntlSortException::errorOnSort($this->collator->getErrorMessage()); |
@@ -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, class_implements($classname), true)) { |
|
28 | + if (!in_array(CollatorConstructor::class, class_implements($classname), true)) { |
|
29 | 29 | throw IntlSortException::doesNotImplementComparable($classname); |
30 | 30 | } |
31 | 31 |