@@ -21,7 +21,7 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Returns the best matching zone for given address. |
| 23 | 23 | */ |
| 24 | - public function match(AddressInterface $address, ?string $scope = null): ?ZoneInterface; |
|
| 24 | + public function match(AddressInterface $address, ?string $scope = null) : ?ZoneInterface; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Returns all matching zones for given address. |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $this->zoneRepository = $zoneRepository; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function match(AddressInterface $address, ?string $scope = null): ?ZoneInterface |
|
| 41 | + public function match(AddressInterface $address, ?string $scope = null) : ?ZoneInterface |
|
| 42 | 42 | { |
| 43 | 43 | $zones = []; |
| 44 | 44 | |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | $codeCombination = 16 ** $expectedCodeLength * $this->ratio; |
| 66 | 66 | if ($codeCombination >= \PHP_INT_MAX) { |
| 67 | - return \PHP_INT_MAX - $generatedAmount; |
|
| 67 | + return \PHP_INT_MAX -$generatedAmount; |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | return (int) $codeCombination - $generatedAmount; |