Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Dec 7, 2018
1 parent ee3ac96 commit c406c0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tools/Aggregator.php
Expand Up @@ -12,6 +12,7 @@

use hiqdev\php\billing\bill\Bill;
use hiqdev\php\billing\bill\BillInterface;
use hiqdev\php\billing\charge\AggregationException;
use hiqdev\php\billing\charge\ChargeInterface;
use hiqdev\php\billing\charge\GeneralizerInterface;
use hiqdev\php\units\QuantityInterface;
Expand Down Expand Up @@ -46,7 +47,7 @@ public function aggregateCharges(array $charges): array
} elseif ($charge instanceof ChargeInterface) {
$others = [$this->generalizer->createBill($charge)];
} else {
throw new \Exception('not a Charge given to Aggregator');
throw new AggregationException('Not a Charge given to Aggregator');
}

$bills = $this->aggregateBills($bills, $others);
Expand Down Expand Up @@ -118,7 +119,6 @@ protected function aggregateId(BillInterface $first, BillInterface $other)
/**
* @param BillInterface $first
* @param BillInterface $other
* @param ChargeInterface[] $charges
* @return Money
*/
protected function aggregateSum(BillInterface $first, BillInterface $other): Money
Expand All @@ -129,7 +129,6 @@ protected function aggregateSum(BillInterface $first, BillInterface $other): Mon
/**
* @param BillInterface $first
* @param BillInterface $other
* @param ChargeInterface[] $charges
* @return QuantityInterface
*/
protected function aggregateQuantity(BillInterface $first, BillInterface $other): QuantityInterface
Expand Down
1 change: 1 addition & 0 deletions src/tools/AggregatorInterface.php
Expand Up @@ -11,6 +11,7 @@
namespace hiqdev\php\billing\tools;

use hiqdev\php\billing\bill\Bill;
use hiqdev\php\billing\charge\Charge;

/**
* @author Andrii Vasyliev <sol@hiqdev.com>
Expand Down

0 comments on commit c406c0b

Please sign in to comment.