@@ -27,7 +27,7 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 36 | 36 | |
| 37 | 37 | public function extract($object): array  | 
                                                        
| 38 | 38 |      { | 
                                                        
| 39 | -        if (! $object instanceof Address) { | 
                                                        |
| 39 | +        if (!$object instanceof Address) { | 
                                                        |
| 40 | 40 | return array();  | 
                                                        
| 41 | 41 | }  | 
                                                        
| 42 | 42 | |
@@ -40,7 +40,7 @@ discard block  | 
                                                    ||
| 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,8 +57,8 @@ discard block  | 
                                                    ||
| 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) { | 
                                                        |
| 61 | - return (0 === strcasecmp(mb_strtoupper($name, 'UTF-8'), $country->getName() ));  | 
                                                        |
| 60 | +        $array = array_filter($countries, function(Country $country) use ($name) { | 
                                                        |
| 61 | + return (0 === strcasecmp(mb_strtoupper($name, 'UTF-8'), $country->getName()));  | 
                                                        |
| 62 | 62 | });  | 
                                                        
| 63 | 63 | |
| 64 | 64 |          if (empty($array)) { | 
                                                        
@@ -78,7 +78,7 @@ discard block  | 
                                                    ||
| 78 | 78 |      { | 
                                                        
| 79 | 79 | $name = mb_strtoupper($name, 'UTF-8');  | 
                                                        
| 80 | 80 | |
| 81 | -        $collection = $this->countries->filter(function (Country $country) use ($name) { | 
                                                        |
| 81 | +        $collection = $this->countries->filter(function(Country $country) use ($name) { | 
                                                        |
| 82 | 82 | return $country->getName() === $name;  | 
                                                        
| 83 | 83 | });  | 
                                                        
| 84 | 84 | |
@@ -96,7 +96,7 @@ discard block  | 
                                                    ||
| 96 | 96 | */  | 
                                                        
| 97 | 97 | public function findCountryByIsoAlpha2(string $isoAlpha2): ?Country  | 
                                                        
| 98 | 98 |      { | 
                                                        
| 99 | -        $collection =  $this->getCountries()->filter(function (Country $country) use ($isoAlpha2) { | 
                                                        |
| 99 | +        $collection = $this->getCountries()->filter(function(Country $country) use ($isoAlpha2) { | 
                                                        |
| 100 | 100 | return $country->getIsoAlpha2() === $isoAlpha2;  | 
                                                        
| 101 | 101 | });  | 
                                                        
| 102 | 102 | |
@@ -18,6 +18,6 @@  | 
                                                    ||
| 18 | 18 | public float $totalWeight,  | 
                                                        
| 19 | 19 | public bool $documents,  | 
                                                        
| 20 | 20 | public bool $palletized,  | 
                                                        
| 21 | -    ){ | 
                                                        |
| 21 | +    ) { | 
                                                        |
| 22 | 22 | }  | 
                                                        
| 23 | 23 | }  | 
                                                        
@@ -31,7 +31,7 @@  | 
                                                    ||
| 31 | 31 | $data[self::PASSWORD] = $this->getPassword();  | 
                                                        
| 32 | 32 | $data[self::LANGUAGE] = $this->getLanguage();  | 
                                                        
| 33 | 33 | |
| 34 | - $curl = curl_init(self::API_URL.$uri);  | 
                                                        |
| 34 | + $curl = curl_init(self::API_URL . $uri);  | 
                                                        |
| 35 | 35 | |
| 36 | 36 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);  | 
                                                        
| 37 | 37 | |
@@ -524,30 +524,30 @@  | 
                                                    ||
| 524 | 524 | ];  | 
                                                        
| 525 | 525 | |
| 526 | 526 |          if (null !== $this->countryId) { | 
                                                        
| 527 | - $data[Speedy::COUNTRY_ID] = $this->getCountryId();  | 
                                                        |
| 527 | + $data[Speedy::COUNTRY_ID] = $this->getCountryId();  | 
                                                        |
| 528 | 528 | }  | 
                                                        
| 529 | 529 | |
| 530 | 530 |          if (null !== $this->countryId) { | 
                                                        
| 531 | - $data[Speedy::STATE_ID] = $this->getStateId();  | 
                                                        |
| 531 | + $data[Speedy::STATE_ID] = $this->getStateId();  | 
                                                        |
| 532 | 532 | }  | 
                                                        
| 533 | 533 | |
| 534 | 534 |          if (null !== $this->siteType) { | 
                                                        
| 535 | - $data[Speedy::SITE_TYPE] = $this->getSiteType();  | 
                                                        |
| 535 | + $data[Speedy::SITE_TYPE] = $this->getSiteType();  | 
                                                        |
| 536 | 536 | }  | 
                                                        
| 537 | 537 | |
| 538 | 538 |          if (null !== $this->siteName) { | 
                                                        
| 539 | - $data[Speedy::SITE_NAME] = $this->getSiteName();  | 
                                                        |
| 539 | + $data[Speedy::SITE_NAME] = $this->getSiteName();  | 
                                                        |
| 540 | 540 | }  | 
                                                        
| 541 | 541 | |
| 542 | 542 |          if (null !== $this->postCode) { | 
                                                        
| 543 | - $data[Speedy::POST_CODE] = $this->getPostCode();  | 
                                                        |
| 543 | + $data[Speedy::POST_CODE] = $this->getPostCode();  | 
                                                        |
| 544 | 544 | }  | 
                                                        
| 545 | 545 | |
| 546 | 546 |          if (null !== $this->streetId) { | 
                                                        
| 547 | - $data[Speedy::STREET_ID] = $this->getStreetId();  | 
                                                        |
| 547 | + $data[Speedy::STREET_ID] = $this->getStreetId();  | 
                                                        |
| 548 | 548 | }  | 
                                                        
| 549 | 549 |          if (null !== $this->streetType) { | 
                                                        
| 550 | - $data[Speedy::STREET_TYPE] = $this->getStreetType();  | 
                                                        |
| 550 | + $data[Speedy::STREET_TYPE] = $this->getStreetType();  | 
                                                        |
| 551 | 551 | }  | 
                                                        
| 552 | 552 | |
| 553 | 553 |          if (null !== $this->streetName) { | 
                                                        
@@ -179,15 +179,15 @@  | 
                                                    ||
| 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;  | 
                                                        
@@ -184,7 +184,7 @@  | 
                                                    ||
| 184 | 184 | $data[Speedy::DECLARED_VALUE_PAYER] = $this->getDeclaredValuePayer();  | 
                                                        
| 185 | 185 | }  | 
                                                        
| 186 | 186 | |
| 187 | -        if (null !== $this->packagePayer ) { | 
                                                        |
| 187 | +        if (null !== $this->packagePayer) { | 
                                                        |
| 188 | 188 | $data[Speedy::PACKAGE_PAYER] = $this->getPackagePayer();  | 
                                                        
| 189 | 189 | }  | 
                                                        
| 190 | 190 | |
@@ -326,6 +326,6 @@  | 
                                                    ||
| 326 | 326 | */  | 
                                                        
| 327 | 327 | public function toArray(): array  | 
                                                        
| 328 | 328 |      { | 
                                                        
| 329 | - return [ ];  | 
                                                        |
| 329 | + return [];  | 
                                                        |
| 330 | 330 | }  | 
                                                        
| 331 | 331 | }  | 
                                                        
@@ -81,7 +81,7 @@  | 
                                                    ||
| 81 | 81 | /**  | 
                                                        
| 82 | 82 | * @return string|null  | 
                                                        
| 83 | 83 | */  | 
                                                        
| 84 | - public function getClientName():?string  | 
                                                        |
| 84 | + public function getClientName(): ?string  | 
                                                        |
| 85 | 85 |      { | 
                                                        
| 86 | 86 | return $this->clientName;  | 
                                                        
| 87 | 87 | }  |