Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ondraondra81 committed Jan 27, 2020
1 parent ae78098 commit 714e92e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Components/GPWebPayControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Pixidos\GPWebPay\Components;

use Closure;
use http\Exception\RuntimeException;
use Nette\Application\AbortException;
use Nette\Application\UI;
use Nette\Application\UI\InvalidLinkException;
Expand Down Expand Up @@ -56,6 +55,8 @@ class GPWebPayControl extends UI\Control
/**
* @param IOperation $operation
* @param IProvider $provider
* @noinspection PhpMissingParentConstructorInspection
* @noinspection MagicMethodsValidityInspection
*/
public function __construct(IOperation $operation, IProvider $provider)
{
Expand Down
3 changes: 2 additions & 1 deletion tests/Components/GPWebPayControlTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use GPWebPay\Tests\GPWebPayTestCase;
use Nette\Application\AbortException;
use Nette\Application\UI\ITemplateFactory;
use Pixidos\GPWebPay\Components\GPWebPayControl;
use Pixidos\GPWebPay\Data\IRequest;
use Tester\Assert;

/**
Expand Down Expand Up @@ -57,7 +58,7 @@ class GPWebPayControlTest extends GPWebPayTestCase
{
$control = $this->createControl();
$called = false;
$control->onCheckout[] = static function ($control, $response) use (&$called) {
$control->onCheckout[] = static function (GPWebPayControl $control, IRequest $request) use (&$called) {
$called = true;
};

Expand Down

0 comments on commit 714e92e

Please sign in to comment.