@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace AcquiroPay\Services; |
| 6 | 6 | |
@@ -50,9 +50,9 @@ discard block |
||
| 50 | 50 | * @param array $parameters |
| 51 | 51 | * @return Country|null |
| 52 | 52 | */ |
| 53 | - public function getCountry(int $id, array $parameters = []): ?Country |
|
| 53 | + public function getCountry(int $id, array $parameters = []): ? Country |
|
| 54 | 54 | { |
| 55 | - $response = $this->makeRequest('GET', 'countries/' . $id, ['query' => $parameters]); |
|
| 55 | + $response = $this->makeRequest('GET', 'countries/'.$id, ['query' => $parameters]); |
|
| 56 | 56 | |
| 57 | 57 | return $this->transform(Country::class, $response); |
| 58 | 58 | } |
@@ -77,9 +77,9 @@ discard block |
||
| 77 | 77 | * @param array $parameters |
| 78 | 78 | * @return Currency|null |
| 79 | 79 | */ |
| 80 | - public function getCurrency(int $id, array $parameters = []): ?Currency |
|
| 80 | + public function getCurrency(int $id, array $parameters = []): ? Currency |
|
| 81 | 81 | { |
| 82 | - $response = $this->makeRequest('GET', 'currencies/' . $id, ['query' => $parameters]); |
|
| 82 | + $response = $this->makeRequest('GET', 'currencies/'.$id, ['query' => $parameters]); |
|
| 83 | 83 | |
| 84 | 84 | return $this->transform(Currency::class, $response); |
| 85 | 85 | } |
@@ -117,9 +117,9 @@ discard block |
||
| 117 | 117 | * @param array $parameters |
| 118 | 118 | * @return Merchant|null |
| 119 | 119 | */ |
| 120 | - public function getMerchant(int $id, array $parameters = []): ?Merchant |
|
| 120 | + public function getMerchant(int $id, array $parameters = []): ? Merchant |
|
| 121 | 121 | { |
| 122 | - $response = $this->makeRequest('GET', 'merchants/' . $id, ['query' => $parameters]); |
|
| 122 | + $response = $this->makeRequest('GET', 'merchants/'.$id, ['query' => $parameters]); |
|
| 123 | 123 | |
| 124 | 124 | return $this->transform(Merchant::class, $response); |
| 125 | 125 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | { |
| 137 | 137 | $response = $this->makeRequest( |
| 138 | 138 | 'GET', |
| 139 | - 'merchants/' . $merchant->getId() . '/sites', |
|
| 139 | + 'merchants/'.$merchant->getId().'/sites', |
|
| 140 | 140 | ['query' => $parameters] |
| 141 | 141 | ); |
| 142 | 142 | |
@@ -152,11 +152,11 @@ discard block |
||
| 152 | 152 | * |
| 153 | 153 | * @return Site|null |
| 154 | 154 | */ |
| 155 | - public function getSite(Merchant $merchant, int $id, array $parameters = []): ?Site |
|
| 155 | + public function getSite(Merchant $merchant, int $id, array $parameters = []): ? Site |
|
| 156 | 156 | { |
| 157 | 157 | $response = $this->makeRequest( |
| 158 | 158 | 'GET', |
| 159 | - 'merchants/' . $merchant->getId() . '/sites/' . $id, |
|
| 159 | + 'merchants/'.$merchant->getId().'/sites/'.$id, |
|
| 160 | 160 | ['query' => $parameters] |
| 161 | 161 | ); |
| 162 | 162 | |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * |
| 194 | 194 | * @return Product|null |
| 195 | 195 | */ |
| 196 | - public function getProduct(Merchant $merchant, Site $site, int $id, array $parameters = []): ?Product |
|
| 196 | + public function getProduct(Merchant $merchant, Site $site, int $id, array $parameters = []): ? Product |
|
| 197 | 197 | { |
| 198 | 198 | $response = $this->makeRequest( |
| 199 | 199 | 'GET', |