Skip to content

Commit

Permalink
Removed unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
L3RAZ committed May 3, 2024
1 parent bdb972f commit 067b1df
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
7 changes: 4 additions & 3 deletions src/Context/PrestaShopContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@

namespace PrestaShop\Module\PrestashopCheckout\Context;

use \Link;
use Link;
use Context;
/**
* Class PrestaShopContext used to get information from PrestaShop Context
*/
class PrestaShopContext
{
/**
* @var \Context
* @var Context
*/
private $context;

public function __construct()
{
$this->context = \Context::getContext();
$this->context = Context::getContext();
}

/**
Expand Down
3 changes: 0 additions & 3 deletions src/Dispatcher/OrderDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

namespace PrestaShop\Module\PrestashopCheckout\Dispatcher;

use Module;
use PrestaShop\Module\PrestashopCheckout\Event\EventDispatcherInterface;
use PrestaShop\Module\PrestashopCheckout\Event\SymfonyEventDispatcherAdapter;
use PrestaShop\Module\PrestashopCheckout\Exception\PsCheckoutException;
use PrestaShop\Module\PrestashopCheckout\PayPal\Order\Event\PayPalOrderApprovalReversedEvent;
use PrestaShop\Module\PrestashopCheckout\PayPal\Order\Event\PayPalOrderApprovedEvent;
Expand All @@ -38,7 +36,6 @@
use PrestaShop\Module\PrestashopCheckout\PayPal\PaymentToken\Event\PaymentTokenDeletedEvent;
use PrestaShop\Module\PrestashopCheckout\PayPal\PaymentToken\Event\PaymentTokenDeletionInitiatedEvent;
use PrestaShop\Module\PrestashopCheckout\PayPal\PayPalConfiguration;
use Ps_checkout;
use Psr\Log\LoggerInterface;

class OrderDispatcher implements DispatcherInterface
Expand Down
2 changes: 0 additions & 2 deletions src/Provider/PaymentMethodLogoProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

namespace PrestaShop\Module\PrestashopCheckout\Provider;

use Ps_checkout;

class PaymentMethodLogoProvider
{
/**
Expand Down
4 changes: 2 additions & 2 deletions src/Provider/PaymentOptionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public function __construct(Ps_checkout $module, FundingSourceProvider $fundingS
$this->context = Context::getContext();
}


/**
* @param int $customerId
*
Expand All @@ -65,7 +64,8 @@ public function __construct(Ps_checkout $module, FundingSourceProvider $fundingS
* @throws SmartyException
* @throws PsCheckoutException
*/
public function getPaymentOptions($customerId) {
public function getPaymentOptions($customerId)
{
$paymentOptions = [];

$vaultingEnabled = $this->payPalConfiguration->isVaultingEnabled() && $this->context->customer->isLogged();
Expand Down
1 change: 0 additions & 1 deletion src/Repository/PsAccountRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
namespace PrestaShop\Module\PrestashopCheckout\Repository;

use Exception;
use PrestaShop\Module\PrestashopCheckout\Entity\PsAccount;
use PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts;

/**
Expand Down
1 change: 0 additions & 1 deletion tests/Unit/Serializer/ObjectSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
use PrestaShop\Module\PrestashopCheckout\PayPal\Order\DTO\LinkDescription;
use PrestaShop\Module\PrestashopCheckout\PayPal\Order\DTO\PaymentSourceResponse;
use PrestaShop\Module\PrestashopCheckout\Serializer\ObjectSerializer;

use Symfony\Component\Serializer\Encoder\JsonEncoder;

class ObjectSerializerTest extends TestCase
Expand Down

0 comments on commit 067b1df

Please sign in to comment.