@@ -39,7 +39,7 @@ |
||
| 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; |
@@ -54,7 +54,7 @@ discard block |
||
| 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 |
||
| 72 | 72 | |
| 73 | 73 | public function toArray(): array |
| 74 | 74 | { |
| 75 | - return [ ]; |
|
| 75 | + return []; |
|
| 76 | 76 | } |
| 77 | 77 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -45,7 +45,7 @@ |
||
| 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 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | new Serializer\Naming\IdenticalPropertyNamingStrategy() |
| 31 | 31 | ) |
| 32 | 32 | ) |
| 33 | - ->setSerializationContextFactory(function () { |
|
| 33 | + ->setSerializationContextFactory(function() { |
|
| 34 | 34 | return SerializationContext::create() |
| 35 | 35 | ->setSerializeNull(true); |
| 36 | 36 | }) |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | public function findCountryById(int $id): ?Country |
| 53 | 53 | { |
| 54 | - $collection = $this->getCountries()->filter(function (Country $country) use ($id) { |
|
| 54 | + $collection = $this->getCountries()->filter(function(Country $country) use ($id) { |
|
| 55 | 55 | return $country->getId() === $id; |
| 56 | 56 | }); |
| 57 | 57 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $name = mb_strtoupper($name, 'UTF-8'); |
| 74 | 74 | |
| 75 | - $collection = $this->countries->filter(function (Country $country) use ($name) { |
|
| 75 | + $collection = $this->countries->filter(function(Country $country) use ($name) { |
|
| 76 | 76 | return $country->getName() === $name; |
| 77 | 77 | }); |
| 78 | 78 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | public function findCountryByIsoAlpha2(string $isoAlpha2): ?Country |
| 92 | 92 | { |
| 93 | - $collection = $this->getCountries()->filter(function (Country $country) use ($isoAlpha2) { |
|
| 93 | + $collection = $this->getCountries()->filter(function(Country $country) use ($isoAlpha2) { |
|
| 94 | 94 | return $country->getIsoAlpha2() === $isoAlpha2; |
| 95 | 95 | }); |
| 96 | 96 | |
@@ -45,7 +45,7 @@ |
||
| 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; |
@@ -278,7 +278,7 @@ |
||
| 278 | 278 | "service" => $this->service->toArray(), // ok |
| 279 | 279 | "content" => $this->content->toArray(), // ok |
| 280 | 280 | "payment" => $this->payment->toArray(), // ok |
| 281 | - "sender" => $this->sender->toArray(), // ok |
|
| 281 | + "sender" => $this->sender->toArray(), // ok |
|
| 282 | 282 | /* "sender" => [ |
| 283 | 283 | "phone1" => [ |
| 284 | 284 | "number" => "0888323020" |