Skip to content

Commit fd246ad

Browse files
committed
Merge pull request driesvints#9 from mpociot/analysis-8Qo4mq
Applied fixes from StyleCI
2 parents 409a556 + 3b1a4b4 commit fd246ad

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Mpociot/VatCalculator/Traits/BillableWithinTheEU.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ public function asIndividual()
7474
*/
7575
public function getTaxPercent()
7676
{
77-
return (VatCalculator::getTaxRateForCountry($this->userCountryCode, $this->userIsCompany) * 100);
77+
return VatCalculator::getTaxRateForCountry($this->userCountryCode, $this->userIsCompany) * 100;
7878
}
7979
}

tests/VatCalculatorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ public function testCalculatVatWithCountryPreviousSet()
178178
->with('vat_calculator.business_country_code')
179179
->andReturn(false);
180180

181-
182181
$vatCalculator = new VatCalculator($config);
183182
$vatCalculator->setCountryCode($countryCode);
184183

@@ -428,7 +427,7 @@ public function testCompanyInBusinessCountryGetsValidVATRate()
428427

429428
$config->shouldReceive('get')
430429
->once()
431-
->with('vat_calculator.business_country_code','')
430+
->with('vat_calculator.business_country_code', '')
432431
->andReturn($countryCode);
433432

434433
$vatCalculator = new VatCalculator($config);

0 commit comments

Comments
 (0)