@@ -10,7 +10,7 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * @return TransactionCollection |
| 12 | 12 | */ |
| 13 | - public function getResults() |
|
| 13 | + public function getResults () |
|
| 14 | 14 | { |
| 15 | 15 | $entities = []; |
| 16 | 16 | foreach ($this->attributes->mayHave('results')->asArray() as $attributes) { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * @return RateCollection |
| 12 | 12 | */ |
| 13 | - public function getResults() |
|
| 13 | + public function getResults () |
|
| 14 | 14 | { |
| 15 | 15 | $entities = []; |
| 16 | 16 | foreach ($this->attributes->mayHave('results')->asArray() as $attributes) { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * @return RefundCollection |
| 12 | 12 | */ |
| 13 | - public function getResults() |
|
| 13 | + public function getResults () |
|
| 14 | 14 | { |
| 15 | 15 | $entities = []; |
| 16 | 16 | foreach ($this->attributes->mayHave('results')->asArray() as $attributes) { |
@@ -8,12 +8,12 @@ |
||
| 8 | 8 | private $request; |
| 9 | 9 | private $response; |
| 10 | 10 | |
| 11 | - /** |
|
| 12 | - * @param string $message |
|
| 13 | - * @param int $statusCode |
|
| 14 | - * @param array $request |
|
| 15 | - * @param array $response |
|
| 16 | - */ |
|
| 11 | + /** |
|
| 12 | + * @param string $message |
|
| 13 | + * @param int $statusCode |
|
| 14 | + * @param array $request |
|
| 15 | + * @param array $response |
|
| 16 | + */ |
|
| 17 | 17 | public function __construct($message, $statusCode, $request, $response) |
| 18 | 18 | { |
| 19 | 19 | parent::__construct($message); |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | * @param array $request |
| 15 | 15 | * @param array $response |
| 16 | 16 | */ |
| 17 | - public function __construct($message, $statusCode, $request, $response) |
|
| 17 | + public function __construct ($message, $statusCode, $request, $response) |
|
| 18 | 18 | { |
| 19 | 19 | parent::__construct($message); |
| 20 | 20 | $this->statusCode = $statusCode; |
@@ -22,17 +22,17 @@ discard block |
||
| 22 | 22 | $this->response = $response; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - public function getStatusCode() |
|
| 25 | + public function getStatusCode () |
|
| 26 | 26 | { |
| 27 | 27 | return $this->statusCode; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public function getRequest() |
|
| 30 | + public function getRequest () |
|
| 31 | 31 | { |
| 32 | 32 | return $this->request; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function getResponse() |
|
| 35 | + public function getResponse () |
|
| 36 | 36 | { |
| 37 | 37 | return $this->response; |
| 38 | 38 | } |
@@ -15,11 +15,11 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | private static $container = []; |
| 17 | 17 | |
| 18 | - private function __construct() |
|
| 18 | + private function __construct () |
|
| 19 | 19 | { |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - public static function getInstance() |
|
| 22 | + public static function getInstance () |
|
| 23 | 23 | { |
| 24 | 24 | if (self::$instance !== null) { |
| 25 | 25 | return self::$instance; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | return self::$instance; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - public function has($endPoint) |
|
| 32 | + public function has ($endPoint) |
|
| 33 | 33 | { |
| 34 | 34 | return array_key_exists($endPoint, self::$container); |
| 35 | 35 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param string $endPoint |
| 39 | 39 | * @return MockPlugin |
| 40 | 40 | */ |
| 41 | - public function getMockResponse($endPoint) |
|
| 41 | + public function getMockResponse ($endPoint) |
|
| 42 | 42 | { |
| 43 | 43 | $response = new Response(self::$container[$endPoint]['statusCode']); |
| 44 | 44 | $response->setBody(json_encode(self::$container[$endPoint]['response'])); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | return $mock; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - public function add($path, $statusCode, $response) |
|
| 51 | + public function add ($path, $statusCode, $response) |
|
| 52 | 52 | { |
| 53 | 53 | self::$container[$path] = [ |
| 54 | 54 | 'statusCode' => $statusCode, |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | return $this; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - public function clear() |
|
| 61 | + public function clear () |
|
| 62 | 62 | { |
| 63 | 63 | self::$container = []; |
| 64 | 64 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | * |
| 15 | 15 | * @return string |
| 16 | 16 | */ |
| 17 | - public function getMetadata() |
|
| 17 | + public function getMetadata () |
|
| 18 | 18 | { |
| 19 | 19 | return $this->attributes->mayHave('metadata')->asString(function ($metadata) { |
| 20 | 20 | return mb_strlen($metadata) <= 100; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @return string |
| 21 | 21 | * @throws InvalidAttributeException |
| 22 | 22 | */ |
| 23 | - public function getRate() |
|
| 23 | + public function getRate () |
|
| 24 | 24 | { |
| 25 | 25 | return $this->attributes->mustHave('rate')->asString(); |
| 26 | 26 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | /** |
| 8 | 8 | * @param Rate[] $entities |
| 9 | 9 | */ |
| 10 | - public function __construct(array $entities) |
|
| 10 | + public function __construct (array $entities) |
|
| 11 | 11 | { |
| 12 | 12 | parent::__construct($entities); |
| 13 | 13 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | /** |
| 8 | 8 | * @param Transaction[] $entities |
| 9 | 9 | */ |
| 10 | - public function __construct(array $entities) |
|
| 10 | + public function __construct (array $entities) |
|
| 11 | 11 | { |
| 12 | 12 | parent::__construct($entities); |
| 13 | 13 | } |