Completed
Pull Request — master (#43)
by
unknown
46s
created
src/Sylius/Component/Addressing/Matcher/ZoneMatcherInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Matcher/ZoneMatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sylius/Component/Promotion/Generator/PercentageGenerationPolicy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.