@@ -196,7 +196,7 @@ |
||
| 196 | 196 | |
| 197 | 197 | protected function token(): ?string |
| 198 | 198 | { |
| 199 | - return $this->cache->remember('acquiropay_api_token_'.md5($this->url), 10, function () { |
|
| 199 | + return $this->cache->remember('acquiropay_api_token_'.md5($this->url), 10, function() { |
|
| 200 | 200 | $response = $this->http->post( |
| 201 | 201 | $this->url.'/login', |
| 202 | 202 | ['form_params' => ['username' => $this->username, 'password' => $this->password]] |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | protected function transformCollection(array $collection, string $class): array |
| 25 | 25 | { |
| 26 | - return array_map(function ($attributes) use ($class) { |
|
| 26 | + return array_map(function($attributes) use ($class) { |
|
| 27 | 27 | return new $class($attributes, $this); |
| 28 | 28 | }, $collection); |
| 29 | 29 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | $this->isActiveForMerchant = (bool) array_get($attributes, 'pivot.is_active'); |
| 44 | 44 | |
| 45 | - $this->parameters = array_map(function (array $parameterAttributes) { |
|
| 45 | + $this->parameters = array_map(function(array $parameterAttributes) { |
|
| 46 | 46 | return new ServiceParameter($parameterAttributes); |
| 47 | 47 | }, $attributes['parameters'] ?? []); |
| 48 | 48 | } |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | * @param int $expiryYear |
| 77 | 77 | * @param string $cvv |
| 78 | 78 | * @param string $cf |
| 79 | - * @param float|string $amount |
|
| 79 | + * @param double $amount |
|
| 80 | 80 | * @param array $parameters |
| 81 | 81 | * |
| 82 | 82 | * @return InitResponse |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | public static function getKey(string $label): int |
| 36 | 36 | { |
| 37 | - return (int)array_search($label, static::LABELS, true); |
|
| 37 | + return (int) array_search($label, static::LABELS, true); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | public static function translations(): Collection |