Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Sep 16, 2017
1 parent 42fa8d1 commit 49c2514
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/License.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ abstract protected function subtracted();
final public function add($quantity = 1)
{
if (!is_int($quantity) || $quantity <= 0) {
throw new LicenseExeception("Quantity must be a positive integer.");
throw new LicenseException("Quantity must be a positive integer.");
}

$this->adding($quantity);
Expand All @@ -162,11 +162,11 @@ final public function add($quantity = 1)
final public function sub($quantity = 1)
{
if (!is_int($quantity) || $quantity <= 0) {
throw new LicenseExeception("Quantity must be a positive integer.");
throw new LicenseException("Quantity must be a positive integer.");
}

if ($this->model->quantity - $quantity < 0) {
throw new LicenseExeception("You cannot remove more licenses than you have available.");
throw new LicenseException("You cannot remove more licenses than you have available.");
}

$this->subtracting($quantity);
Expand All @@ -188,7 +188,7 @@ final public function sub($quantity = 1)
final public function set($quantity)
{
if (!is_int($quantity) || $quantity <= 0) {
throw new LicenseExeception("Quantity must be a positive integer.");
throw new LicenseException("Quantity must be a positive integer.");
}

$difference = $quantity - $this->maximum();
Expand Down

0 comments on commit 49c2514

Please sign in to comment.