@@ -32,7 +32,7 @@ |
||
32 | 32 | * @param JsonDeserializationVisitor $visitor |
33 | 33 | * @param string|array $data |
34 | 34 | * @param array $type |
35 | - * @return null|static |
|
35 | + * @return null|Carbon |
|
36 | 36 | */ |
37 | 37 | public function deserializeDateTimeFromJson(JsonDeserializationVisitor $visitor, $data, array $type) |
38 | 38 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | public static function getSerializer() |
19 | 19 | { |
20 | 20 | return SerializerBuilder::create() |
21 | - ->configureHandlers(function (HandlerRegistry $registry) { |
|
21 | + ->configureHandlers(function(HandlerRegistry $registry) { |
|
22 | 22 | $registry->registerSubscribingHandler(new DateTimeHandler()); |
23 | 23 | }) |
24 | 24 | ->addMetadataDir(__DIR__.'/../Serializer') |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * @var Payment[] |
25 | 25 | */ |
26 | - protected $results = []; |
|
26 | + protected $results = [ ]; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @return int |
@@ -35,11 +35,11 @@ |
||
35 | 35 | /** |
36 | 36 | * @var PaymentEvent[] |
37 | 37 | */ |
38 | - protected $events = []; |
|
38 | + protected $events = [ ]; |
|
39 | 39 | /** |
40 | 40 | * @var Refund[] |
41 | 41 | */ |
42 | - protected $refunds = []; |
|
42 | + protected $refunds = [ ]; |
|
43 | 43 | /** |
44 | 44 | * @var OrderDetails |
45 | 45 | */ |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | AnnotationRegistry::registerLoader('class_exists'); |
33 | 33 | |
34 | 34 | if ($client === null) { |
35 | - $client = new Client(['base_url' => $authorization->getEndpoint()]); |
|
35 | + $client = new Client([ 'base_url' => $authorization->getEndpoint() ]); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | if ($serializer === null) { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | AnnotationRegistry::registerLoader('class_exists'); |
58 | 58 | |
59 | 59 | if ($client === null) { |
60 | - $client = new Client(['base_url' => $authorization->getEndpoint()]); |
|
60 | + $client = new Client([ 'base_url' => $authorization->getEndpoint() ]); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | if ($serializer === null) { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | AnnotationRegistry::registerLoader('class_exists'); |
81 | 81 | |
82 | 82 | if ($client === null) { |
83 | - $client = new Client(['base_url' => $authorization->getEndpoint()]); |
|
83 | + $client = new Client([ 'base_url' => $authorization->getEndpoint() ]); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | if ($serializer === null) { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * I would of liked to call this list() but it's a reserved keyword in < php7 |
44 | 44 | */ |
45 | - public function listPayments(array $filters = []) |
|
45 | + public function listPayments(array $filters = [ ]) |
|
46 | 46 | { |
47 | 47 | $result = $this->getClient()->get( |
48 | 48 | 'payments', |