Passed
Push — main ( 5b7f1c...98c11d )
by Vasil
03:17
created
src/Shipment/ShipmentService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -179,15 +179,15 @@
 block discarded – undo
179 179
         ];
180 180
 
181 181
         if (null !== $this->pickupDate) {
182
-            $data[Speedy::PICKUP_DATE]  = $this->getPickupDate();
182
+            $data[Speedy::PICKUP_DATE] = $this->getPickupDate();
183 183
         }
184 184
 
185 185
         if (null !== $this->additionalServices) {
186
-            $data[Speedy::ADDITIONAL_SERVICES]  = $this->getAdditionalServices();
186
+            $data[Speedy::ADDITIONAL_SERVICES] = $this->getAdditionalServices();
187 187
         }
188 188
 
189 189
         if (null !== $this->deferredDays) {
190
-            $data[Speedy::DEFERRED_DAYS]  = $this->getDeferredDays();
190
+            $data[Speedy::DEFERRED_DAYS] = $this->getDeferredDays();
191 191
         }
192 192
 
193 193
         return $data;
Please login to merge, or discard this patch.
src/Model/Site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -326,6 +326,6 @@
 block discarded – undo
326 326
      */
327 327
     public function toArray(): array
328 328
     {
329
-        return [ ];
329
+        return [];
330 330
     }
331 331
 }
Please login to merge, or discard this patch.
src/Shipment/Payer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     public function setValue(string $value): void
47 47
     {
48
-        if (! in_array($value, self::OPTIONS, true)) {
48
+        if (!in_array($value, self::OPTIONS, true)) {
49 49
             throw new \InvalidArgumentException();
50 50
         }
51 51
         $this->value = $value;
Please login to merge, or discard this patch.
src/Model/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     private function setValue(string $value): void
41 41
     {
42
-        if (! \filter_var($value, FILTER_VALIDATE_EMAIL)) {
42
+        if (!\filter_var($value, FILTER_VALIDATE_EMAIL)) {
43 43
             throw new \InvalidArgumentException();
44 44
         }
45 45
         $this->value = $value;
Please login to merge, or discard this patch.
src/Model/CountryCode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function setCode(int $code): self
56 56
     {
57
-        if (! in_array($code, self::CODES)) {
57
+        if (!in_array($code, self::CODES)) {
58 58
             throw new \InvalidArgumentException();
59 59
         }
60 60
         $this->code = $code;
@@ -72,6 +72,6 @@  discard block
 block discarded – undo
72 72
 
73 73
     public function toArray(): array
74 74
     {
75
-        return [ ];
75
+        return [];
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
src/Model/Payment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function setCourierServicePayer(string $courierServicePayer): void
81 81
     {
82
-        if (! $this->isValidPayer($courierServicePayer)) {
82
+        if (!$this->isValidPayer($courierServicePayer)) {
83 83
             throw new InvalidArgumentException();
84 84
         }
85 85
         $this->courierServicePayer = $courierServicePayer;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function setDeclaredValuePayer(string $declaredValuePayer): void
100 100
     {
101
-        if (! $this->isValidPayer($declaredValuePayer)) {
101
+        if (!$this->isValidPayer($declaredValuePayer)) {
102 102
             throw new InvalidArgumentException();
103 103
         }
104 104
         $this->declaredValuePayer = $declaredValuePayer;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function setPackagePayer(string $packagePayer): void
119 119
     {
120
-        if (! $this->isValidPayer($packagePayer)) {
120
+        if (!$this->isValidPayer($packagePayer)) {
121 121
             throw new InvalidArgumentException();
122 122
         }
123 123
         $this->packagePayer = $packagePayer;
Please login to merge, or discard this patch.
src/Service/Client/GetContractClientsRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     {
46 46
         $array = [];
47 47
 
48
-        if (! is_null($this->clientSystemId)) {
48
+        if (!is_null($this->clientSystemId)) {
49 49
             $array['clientSystemId'] = $this->clientSystemId;
50 50
         }
51 51
 
Please login to merge, or discard this patch.
src/Service/Location/Country/FindCountryResponse.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function findCountryById(int $id): ?Country
42 42
     {
43
-        $collection = $this->getCountries()->filter(function (Country $country) use ($id) {
43
+        $collection = $this->getCountries()->filter(function(Country $country) use ($id) {
44 44
             return $country->getId() === $id;
45 45
         });
46 46
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public function findCountryArrayByName(string $name): ?Country
58 58
     {
59 59
         $countries = (array)$this->countries;
60
-        $array = array_filter($countries, function (Country $country) use ($name) {
60
+        $array = array_filter($countries, function(Country $country) use ($name) {
61 61
             return (0 === strcasecmp(mb_strtoupper($name, 'UTF-8'), $country->getName()));
62 62
         });
63 63
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $name = mb_strtoupper($name, 'UTF-8');
79 79
 
80
-        $collection = $this->countries->filter(function (Country $country) use ($name) {
80
+        $collection = $this->countries->filter(function(Country $country) use ($name) {
81 81
             return $country->getName() === $name;
82 82
         });
83 83
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function findCountryByIsoAlpha2(string $isoAlpha2): ?Country
97 97
     {
98
-        $collection = $this->getCountries()->filter(function (Country $country) use ($isoAlpha2) {
98
+        $collection = $this->getCountries()->filter(function(Country $country) use ($isoAlpha2) {
99 99
             return $country->getIsoAlpha2() === $isoAlpha2;
100 100
         });
101 101
 
Please login to merge, or discard this patch.
src/Service/Location/Office/AddressHydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 {
28 28
     public function hydrate($data, $object)
29 29
     {
30
-        if (! $object instanceof Address) {
30
+        if (!$object instanceof Address) {
31 31
             return $object;
32 32
         }
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function extract($object): array
38 38
     {
39
-        if (! $object instanceof Address) {
39
+        if (!$object instanceof Address) {
40 40
             return [];
41 41
         }
42 42
 
Please login to merge, or discard this patch.