Skip to content

Commit

Permalink
Merge pull request #9 from mpociot/analysis-8Qo4mq
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
mpociot committed Jan 12, 2016
2 parents 409a556 + 3b1a4b4 commit fd246ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Mpociot/VatCalculator/Traits/BillableWithinTheEU.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ public function asIndividual()
*/
public function getTaxPercent()
{
return (VatCalculator::getTaxRateForCountry($this->userCountryCode, $this->userIsCompany) * 100);
return VatCalculator::getTaxRateForCountry($this->userCountryCode, $this->userIsCompany) * 100;
}
}
3 changes: 1 addition & 2 deletions tests/VatCalculatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ public function testCalculatVatWithCountryPreviousSet()
->with('vat_calculator.business_country_code')
->andReturn(false);


$vatCalculator = new VatCalculator($config);
$vatCalculator->setCountryCode($countryCode);

Expand Down Expand Up @@ -428,7 +427,7 @@ public function testCompanyInBusinessCountryGetsValidVATRate()

$config->shouldReceive('get')
->once()
->with('vat_calculator.business_country_code','')
->with('vat_calculator.business_country_code', '')
->andReturn($countryCode);

$vatCalculator = new VatCalculator($config);
Expand Down

0 comments on commit fd246ad

Please sign in to comment.