@@ -37,7 +37,6 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * @param User $userDto |
|
41 | 40 | * @return User|PartFireException |
42 | 41 | */ |
43 | 42 | public function create(Transfer $transferDto) |
@@ -32,7 +32,7 @@ |
||
32 | 32 | Logger $logger, |
33 | 33 | TransferTranslator $transferTranslator |
34 | 34 | ) { |
35 | - parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger); |
|
35 | + parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger); |
|
36 | 36 | $this->transferTranslator = $transferTranslator; |
37 | 37 | } |
38 | 38 |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | protected $KYCLevel; |
34 | 34 | |
35 | 35 | /** |
36 | - * @return mixed |
|
36 | + * @return string |
|
37 | 37 | */ |
38 | 38 | public function getPersonType() |
39 | 39 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
44 | - * @param mixed $personType |
|
44 | + * @param string $personType |
|
45 | 45 | */ |
46 | 46 | public function setPersonType($personType) |
47 | 47 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * @param mixed $firstName |
|
60 | + * @param string $firstName |
|
61 | 61 | */ |
62 | 62 | public function setFirstName($firstName) |
63 | 63 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * @param mixed $lastName |
|
76 | + * @param string $lastName |
|
77 | 77 | */ |
78 | 78 | public function setLastName($lastName) |
79 | 79 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
84 | - * @return mixed |
|
84 | + * @return \DateTime |
|
85 | 85 | */ |
86 | 86 | public function getBirthday() |
87 | 87 | { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | - * @param mixed $birthday |
|
92 | + * @param \DateTime $birthday |
|
93 | 93 | */ |
94 | 94 | public function setBirthday(\DateTime $birthday) |
95 | 95 | { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
108 | - * @param mixed $nationality |
|
108 | + * @param string $nationality |
|
109 | 109 | */ |
110 | 110 | public function setNationality($nationality) |
111 | 111 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
124 | - * @param mixed $countryOfResidence |
|
124 | + * @param string $countryOfResidence |
|
125 | 125 | */ |
126 | 126 | public function setCountryOfResidence($countryOfResidence) |
127 | 127 | { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | |
139 | 139 | /** |
140 | - * @param mixed $email |
|
140 | + * @param string $email |
|
141 | 141 | */ |
142 | 142 | public function setEmail($email) |
143 | 143 | { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
156 | - * @param mixed $id |
|
156 | + * @param string $id |
|
157 | 157 | */ |
158 | 158 | public function setId($id) |
159 | 159 | { |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * @param mixed $KYCLevel |
|
172 | + * @param string $KYCLevel |
|
173 | 173 | */ |
174 | 174 | public function setKYCLevel($KYCLevel) |
175 | 175 | { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | } |
178 | 178 | |
179 | 179 | /** |
180 | - * @param $timestamp |
|
180 | + * @param integer $timestamp |
|
181 | 181 | */ |
182 | 182 | public function setBirthdayUnixTimestamp($timestamp) |
183 | 183 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | - * @return mixed |
|
188 | + * @return integer |
|
189 | 189 | */ |
190 | 190 | public function getBirthdayUnixTimestamp() |
191 | 191 | { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @param mixed $owenerId |
|
36 | + * @param mixed $owenerIds |
|
37 | 37 | */ |
38 | 38 | public function setOwenerIds(array $owenerIds) |
39 | 39 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | - * @param mixed $id |
|
57 | + * @param string $id |
|
58 | 58 | */ |
59 | 59 | public function setId($id) |
60 | 60 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param mixed $currency |
|
73 | + * @param string $currency |
|
74 | 74 | */ |
75 | 75 | public function setCurrency($currency) |
76 | 76 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
89 | - * @param mixed $description |
|
89 | + * @param string $description |
|
90 | 90 | */ |
91 | 91 | public function setDescription($description) |
92 | 92 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
105 | - * @param mixed $tag |
|
105 | + * @param string $tag |
|
106 | 106 | */ |
107 | 107 | public function setTag($tag) |
108 | 108 | { |
@@ -25,7 +25,6 @@ |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
28 | - * @param UserDto $user |
|
29 | 28 | * @return mixed |
30 | 29 | */ |
31 | 30 | public function create(WalletDto $walletDto) |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $configuration = new Configuration(); |
23 | 23 | $config = $this->processConfiguration($configuration, $configs); |
24 | 24 | |
25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
26 | 26 | $loader->load('services.yml'); |
27 | 27 | } |
28 | 28 | } |
@@ -50,17 +50,21 @@ |
||
50 | 50 | $transfer->setDebitedWalledId($mangoPayTransfer->DebitedWalletId); |
51 | 51 | $transfer->setCreditedWalledId($mangoPayTransfer->CreditedWalletId); |
52 | 52 | |
53 | - if (isset($mangoPayTransfer->Fees->Currency)) |
|
54 | - $transfer->setFeeCurrency($mangoPayTransfer->Fees->Currency); |
|
53 | + if (isset($mangoPayTransfer->Fees->Currency)) { |
|
54 | + $transfer->setFeeCurrency($mangoPayTransfer->Fees->Currency); |
|
55 | + } |
|
55 | 56 | |
56 | - if (isset($mangoPayTransfer->Fees->Amount)) |
|
57 | - $transfer->setFeeAmount($mangoPayTransfer->Fees->Amount); |
|
57 | + if (isset($mangoPayTransfer->Fees->Amount)) { |
|
58 | + $transfer->setFeeAmount($mangoPayTransfer->Fees->Amount); |
|
59 | + } |
|
58 | 60 | |
59 | - if (isset($mangoPayTransfer->DebitedFunds->Currency)) |
|
60 | - $transfer->setDebitedCurrency($mangoPayTransfer->DebitedFunds->Currency); |
|
61 | + if (isset($mangoPayTransfer->DebitedFunds->Currency)) { |
|
62 | + $transfer->setDebitedCurrency($mangoPayTransfer->DebitedFunds->Currency); |
|
63 | + } |
|
61 | 64 | |
62 | - if (isset($mangoPayTransfer->DebitedFunds->Amount)) |
|
63 | - $transfer->setDebitedAmount($mangoPayTransfer->DebitedFunds->Amount); |
|
65 | + if (isset($mangoPayTransfer->DebitedFunds->Amount)) { |
|
66 | + $transfer->setDebitedAmount($mangoPayTransfer->DebitedFunds->Amount); |
|
67 | + } |
|
64 | 68 | |
65 | 69 | return $transfer; |
66 | 70 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $this->mangoPayApi->Config->ClientId = $clientId; |
33 | 33 | $this->mangoPayApi->Config->ClientPassword = $clientPassword; |
34 | 34 | $this->mangoPayApi->Config->BaseUrl = $baseUrl; |
35 | - $this->mangoPayApi->Config->TemporaryFolder = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'mangopay-'.$clientId; |
|
35 | + $this->mangoPayApi->Config->TemporaryFolder = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'mangopay-' . $clientId; |
|
36 | 36 | $this->mangoPayApi->setLogger($logger); |
37 | 37 | $this->logger = $logger; |
38 | 38 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | KycDocumentTranslator $kycDocumentTranslator |
32 | 32 | ) { |
33 | 33 | $this->kycDocumentTranslator = $kycDocumentTranslator; |
34 | - parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger); |
|
34 | + parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | public function create(KycDocument $kycDocumentDto, $shouldSubmit = false) |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | } |
45 | 45 | $mangoKycDocument = $this->mangoPayApi->Users->CreateKycDocument($UserId, $mangoKycDocument); |
46 | 46 | |
47 | - } catch(MangoPay\Libraries\ResponseException $e) { |
|
47 | + } catch (MangoPay\Libraries\ResponseException $e) { |
|
48 | 48 | $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]); |
49 | 49 | return new PartFireException($e->getMessage(), $e->getCode()); |
50 | - } catch(MangoPay\Libraries\Exception $e) { |
|
50 | + } catch (MangoPay\Libraries\Exception $e) { |
|
51 | 51 | $this->logger->addError($e->getMessage()); |
52 | 52 | return new PartFireException($e->getMessage(), $e->getCode()); |
53 | 53 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | KycDocumentPageTranslator $kycDocumentPageTranslator |
32 | 32 | ) { |
33 | 33 | $this->kycDocumentPageTranslator = $kycDocumentPageTranslator; |
34 | - parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger); |
|
34 | + parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | public function create(KycDocumentPage $kycDocumentPage) |
@@ -40,10 +40,10 @@ discard block |
||
40 | 40 | try { |
41 | 41 | $this->mangoPayApi->Users->CreateKycPageFromFile($kycDocumentPage->getKycDocumentId(), $kycDocumentPage->getOwnerId(), $mangoKycDocumentPage); |
42 | 42 | |
43 | - } catch(MangoPay\Libraries\ResponseException $e) { |
|
43 | + } catch (MangoPay\Libraries\ResponseException $e) { |
|
44 | 44 | $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]); |
45 | 45 | return new PartFireException($e->getMessage(), $e->getCode()); |
46 | - } catch(MangoPay\Libraries\Exception $e) { |
|
46 | + } catch (MangoPay\Libraries\Exception $e) { |
|
47 | 47 | $this->logger->addError($e->getMessage()); |
48 | 48 | return new PartFireException($e->getMessage(), $e->getCode()); |
49 | 49 | } |