Skip to content

Commit

Permalink
QA: codestyle typos
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Dec 12, 2019
1 parent 73d25f3 commit fda139a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Entity/Payment.php
Expand Up @@ -4,6 +4,7 @@

use Contributte\Comgate\Entity\Codes\CountryCode;
use Contributte\Comgate\Entity\Codes\PaymentMethodCode;
use Contributte\Comgate\Exceptions\Logical\InvalidArgumentException;

class Payment extends AbstractEntity
{
Expand Down Expand Up @@ -80,7 +81,7 @@ public static function of(
): self
{
if ($price !== round($price, 2)) {
throw new \InvalidArgumentException("The price must be a maximum of two valid decimal numbers.");
throw new InvalidArgumentException('The price must be a maximum of two valid decimal numbers.');
}

$p = new static();
Expand Down
10 changes: 10 additions & 0 deletions src/Exceptions/Logical/InvalidArgumentException.php
@@ -0,0 +1,10 @@
<?php declare(strict_types = 1);

namespace Contributte\Comgate\Exceptions\Logical;

use Contributte\Comgate\Exceptions\LogicException;

class InvalidArgumentException extends LogicException
{

}

0 comments on commit fda139a

Please sign in to comment.