Failed Conditions
Pull Request — master (#229)
by
unknown
03:02
created
src/Handler/UpdateAddressBookAddressHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\ShopApiPlugin\Handler;
6 6
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $address->setPostcode($command->postcode());
82 82
         $address->setPhoneNumber($command->phoneNumber());
83 83
 
84
-        if (null !== $command->provinceCode() &&  $command->provinceCode() !== $address->getProvinceCode()) {
84
+        if (null !== $command->provinceCode() && $command->provinceCode() !== $address->getProvinceCode()) {
85 85
             $province = $this->provinceRepository->findOneBy(['code' => $command->provinceCode()]);
86 86
             $this->assertProvinceExists($province);
87 87
             $address->setProvinceCode($province->getCode());
Please login to merge, or discard this patch.
src/Model/Address.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@
 block discarded – undo
89 89
         $provinceCode = null,
90 90
         $phoneNumber = null,
91 91
         $company = null
92
-    )
93
-    {
92
+    ) {
94 93
         $this->id = $id;
95 94
         $this->firstName = $firstName;
96 95
         $this->lastName = $lastName;
Please login to merge, or discard this patch.