Skip to content

Commit

Permalink
run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
iulian03 committed Dec 6, 2023
1 parent 83a784e commit 4f29586
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
15 changes: 9 additions & 6 deletions MangoPay/ApiInstantConversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ class ApiInstantConversion extends Libraries\ApiBase
* @param string $creditedCurrency The buy currency – the currency of the wallet to be credited.
* @return \MangoPay\ConversionRate object returned from API
*/
public function GetConversionRate($debitedCurrency, $creditedCurrency){
return $this->GetObject('get_conversion_rate', '\MangoPay\ConversionRate', $debitedCurrency, $creditedCurrency);
}
public function GetConversionRate($debitedCurrency, $creditedCurrency)
{
return $this->GetObject('get_conversion_rate', '\MangoPay\ConversionRate', $debitedCurrency, $creditedCurrency);
}

/**
* This endpoint allows the platform to move funds between two
* wallets of different currencies instantaneously.
* @return \MangoPay\InstantConversion object returned from API
*/
public function CreateInstantConversion($instantConversion){
public function CreateInstantConversion($instantConversion)
{
return $this->CreateObject('create_instant_conversion', $instantConversion, '\MangoPay\InstantConversion');
}

Expand All @@ -34,7 +36,8 @@ public function CreateInstantConversion($instantConversion){
* @param string $id The unique identifier of the conversion.
* @return \MangoPay\InstantConversion object returned from API
*/
public function GetInstantConversion($id){
public function GetInstantConversion($id)
{
return $this->GetObject('get_instant_conversion', '\MangoPay\InstantConversion', $id);
}
}
}
2 changes: 1 addition & 1 deletion MangoPay/ConversionRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ class ConversionRate extends Libraries\EntityBase
* @var string
*/
public $MarketRate;
}
}
2 changes: 1 addition & 1 deletion MangoPay/InstantConversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ class InstantConversion extends Libraries\EntityBase
* @var int
*/
public $ExecutionDate;
}
}
2 changes: 1 addition & 1 deletion MangoPay/PayInPaymentDetailsGiropay.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class PayInPaymentDetailsGiropay extends Libraries\Dto implements PayInPaymentDe
* @var string
*/
public $StatementDescriptor;
}
}
2 changes: 1 addition & 1 deletion MangoPay/PayInPaymentDetailsIdeal.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ class PayInPaymentDetailsIdeal extends Libraries\Dto implements PayInPaymentDeta
* @var string
*/
public $StatementDescriptor;
}
}
5 changes: 3 additions & 2 deletions tests/Cases/InstantConversionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public function test_getInstantConversion()
$this->assertSame(TransactionType::Conversion, $returnedInstantConversion->Type);
}

private function createInstantConversion() {
private function createInstantConversion()
{
$john = $this->getJohn();
$creditedWallet = new \MangoPay\Wallet();
$creditedWallet->Owners = [$john->Id];
Expand Down Expand Up @@ -69,4 +70,4 @@ private function createInstantConversion() {

return $this->_api->InstantConversion->CreateInstantConversion($instantConversion);
}
}
}

0 comments on commit 4f29586

Please sign in to comment.