Skip to content

Commit

Permalink
Use statements first.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Aug 22, 2023
1 parent 48c927b commit f1589e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions views/page-mandate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

namespace Pronamic\WordPress\Pay\Gateways\Mollie;

use Pronamic\WordPress\Mollie\Client;

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

use Pronamic\WordPress\Mollie\Client;

/**
* Valid global.
*
Expand Down
6 changes: 3 additions & 3 deletions views/page-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

namespace Pronamic\WordPress\Pay\Gateways\Mollie;

use Pronamic\WordPress\Mollie\Client;
use Pronamic\WordPress\Pay\Admin\AdminPaymentPostType;

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

use Pronamic\WordPress\Mollie\Client;
use Pronamic\WordPress\Pay\Admin\AdminPaymentPostType;

// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce is not necessary because this parameter does not trigger an action
$mollie_payment_id = \array_key_exists( 'id', $_GET ) ? \sanitize_text_field( \wp_unslash( $_GET['id'] ) ) : '';

Expand Down

0 comments on commit f1589e9

Please sign in to comment.