Skip to content

Commit

Permalink
PIPRES-354: Missing ps_version conditions (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandan2 authored and JevgenijVisockij committed Jan 16, 2024
1 parent 08ce784 commit a2a7b76
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Handler/Certificate/ApplePayDirectCertificateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
use Mollie\Handler\Certificate\Exception\ApplePayDirectCertificateCreation;
use Mollie\Utility\FileUtility;

if (!defined('_PS_VERSION_')) {
exit;
}

class ApplePayDirectCertificateHandler implements CertificateHandlerInterface
{
const FILE_NAME = 'ApplePayDirectCertificateHandler';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

namespace Mollie\Handler\Certificate\Exception;

if (!defined('_PS_VERSION_')) {
exit;
}

class ApplePayDirectCertificateCreation extends CertificationException
{
}
4 changes: 4 additions & 0 deletions src/Handler/Exception/OrderExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
use Exception;
use Mollie\Exception\OrderCreationException;

if (!defined('_PS_VERSION_')) {
exit;
}

class OrderExceptionHandler implements ExceptionHandlerInterface
{
/**
Expand Down
4 changes: 4 additions & 0 deletions src/Handler/RetryHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

namespace Mollie\Handler;

if (!defined('_PS_VERSION_')) {
exit;
}

interface RetryHandlerInterface
{
public function retry($function, array $options = [], $moreOptions = []);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

namespace Mollie\Handler\Settings;

if (!defined('_PS_VERSION_')) {
exit;
}

interface PaymentMethodPositionHandlerInterface
{
/**
Expand Down
4 changes: 4 additions & 0 deletions src/Handler/Shipment/ShipmentSenderHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
use Order;
use OrderState;

if (!defined('_PS_VERSION_')) {
exit;
}

interface ShipmentSenderHandlerInterface
{
/**
Expand Down
4 changes: 4 additions & 0 deletions src/Install/DatabaseTableUninstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

use Db;

if (!defined('_PS_VERSION_')) {
exit;
}

final class DatabaseTableUninstaller implements UninstallerInterface
{
public function uninstall(): bool
Expand Down
4 changes: 4 additions & 0 deletions src/Logger/PrestaLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
use Mollie\Config\Config;
use Mollie\Exception\NotImplementedException;

if (!defined('_PS_VERSION_')) {
exit;
}

class PrestaLogger implements PrestaLoggerInterface
{
// TODO refactor whole logger logic and implement leftover methods
Expand Down
4 changes: 4 additions & 0 deletions src/Provider/CustomLogoProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

use MolPaymentMethod;

if (!defined('_PS_VERSION_')) {
exit;
}

interface CustomLogoProviderInterface
{
/**
Expand Down
4 changes: 4 additions & 0 deletions src/Provider/EnvironmentVersionProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

namespace Mollie\Provider;

if (!defined('_PS_VERSION_')) {
exit;
}

interface EnvironmentVersionProviderInterface
{
/**
Expand Down
4 changes: 4 additions & 0 deletions src/Provider/OrderTotal/OrderTotalProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

namespace Mollie\Provider\OrderTotal;

if (!defined('_PS_VERSION_')) {
exit;
}

interface OrderTotalProviderInterface
{
public function getOrderTotal(): float;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

namespace Mollie\Provider\Shipment;

if (!defined('_PS_VERSION_')) {
exit;
}

interface AutomaticShipmentSenderStatusesProviderInterface
{
/**
Expand Down
4 changes: 4 additions & 0 deletions src/Provider/UpdateMessageProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
use SimpleXMLElement;
use Tools;

if (!defined('_PS_VERSION_')) {
exit;
}

class UpdateMessageProvider implements UpdateMessageProviderInterface
{
const FILE_NAME = 'UpdateMessageProvider';
Expand Down
4 changes: 4 additions & 0 deletions src/Provider/UpdateMessageProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

namespace Mollie\Provider;

if (!defined('_PS_VERSION_')) {
exit;
}

interface UpdateMessageProviderInterface
{
/**
Expand Down

0 comments on commit a2a7b76

Please sign in to comment.