Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Iulian Masar committed Feb 13, 2024
1 parent f6edd8b commit 628b1f3
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 16 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);
}
}
}
3 changes: 1 addition & 2 deletions MangoPay/CompanyNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ class CompanyNumber extends Libraries\EntityBase
* @var array
*/
public $ValidationRules;

}
}
2 changes: 1 addition & 1 deletion MangoPay/CompanyNumberDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class CompanyNumberDetails extends Libraries\EntityBase
* @var object
*/
public $CompanyNumber;
}
}
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);
}
}
}
3 changes: 2 additions & 1 deletion tests/Cases/UsersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@ public function test_user_natural_terms_and_conditions()
$this->assertNotNull($accepted->TermsAndConditionsAcceptedDate);
}

public function test_validate_the_format_of_user_data(){
public function test_validate_the_format_of_user_data()
{
$companyNumberDetails = new \MangoPay\CompanyNumberDetails();
$companyNumber = new \MangoPay\CompanyNumber();
$companyNumber->CompanyNumber = 'AB123456';
Expand Down

0 comments on commit 628b1f3

Please sign in to comment.