Skip to content

Commit

Permalink
Merge pull request #7 from pronamic/6-no-longer-use-files-from-plugin…
Browse files Browse the repository at this point in the history
…-directory-pronamic-idealimages

No longer use files from plugin directory `pronamic-ideal/images`.
  • Loading branch information
remcotolsma authored Jun 7, 2024
2 parents 31e388c + 88a5e6c commit 5ec40c0
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 45 deletions.
5 changes: 2 additions & 3 deletions src/AlipayPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class AlipayPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {

Check failure on line 41 in src/AlipayPaymentMethod.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Parameter $pm_instance of method Pronamic\WordPress\Pay\Extensions\EventEspresso\AlipayPaymentMethod::__construct() has invalid type Pronamic\WordPress\Pay\Extensions\EventEspresso\EE_Payment_Method.
$this->_gateway = new AlipayGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::ALIPAY );
$this->_default_button_url = plugins_url( 'images/alipay/icon-64x48.png', Plugin::$file );
$this->_gateway = new AlipayGateway();

Check failure on line 42 in src/AlipayPaymentMethod.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\AlipayPaymentMethod::$_gateway.
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::ALIPAY );

Check failure on line 43 in src/AlipayPaymentMethod.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\AlipayPaymentMethod::$_pretty_name.

parent::__construct( $pm_instance );

Check failure on line 45 in src/AlipayPaymentMethod.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Parameter #1 $pm_instance of method Pronamic\WordPress\Pay\Extensions\EventEspresso\PaymentMethod::__construct() expects EE_Payment_Method|null, Pronamic\WordPress\Pay\Extensions\EventEspresso\EE_Payment_Method|null given.
}
Expand Down
5 changes: 2 additions & 3 deletions src/BancontactPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class BancontactPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {

Check failure on line 41 in src/BancontactPaymentMethod.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Parameter $pm_instance of method Pronamic\WordPress\Pay\Extensions\EventEspresso\BancontactPaymentMethod::__construct() has invalid type Pronamic\WordPress\Pay\Extensions\EventEspresso\EE_Payment_Method.
$this->_gateway = new BancontactGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::BANCONTACT );
$this->_default_button_url = plugins_url( 'images/bancontact/icon-64x48.png', Plugin::$file );
$this->_gateway = new BancontactGateway();

Check failure on line 42 in src/BancontactPaymentMethod.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\BancontactPaymentMethod::$_gateway.
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::BANCONTACT );

Check failure on line 43 in src/BancontactPaymentMethod.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\BancontactPaymentMethod::$_pretty_name.

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/BankTransferPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class BankTransferPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new BankTransferGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::BANK_TRANSFER );
$this->_default_button_url = plugins_url( 'images/bank-transfer/icon-64x48.png', Plugin::$file );
$this->_gateway = new BankTransferGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::BANK_TRANSFER );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/BelfiusPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class BelfiusPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new BelfiusGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::BELFIUS );
$this->_default_button_url = plugins_url( 'images/belfius/icon-64x48.png', Plugin::$file );
$this->_gateway = new BelfiusGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::BELFIUS );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/BitcoinPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class BitcoinPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new BitcoinGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::BITCOIN );
$this->_default_button_url = plugins_url( 'images/bitcoin/icon-64x48.png', Plugin::$file );
$this->_gateway = new BitcoinGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::BITCOIN );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/CreditCardPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class CreditCardPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new CreditCardGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::CREDIT_CARD );
$this->_default_button_url = plugins_url( 'images/credit-card/icon-64x48.png', Plugin::$file );
$this->_gateway = new CreditCardGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::CREDIT_CARD );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/DirectDebitPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class DirectDebitPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new DirectDebitGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::DIRECT_DEBIT );
$this->_default_button_url = plugins_url( 'images/direct-debit/icon-64x48.png', Plugin::$file );
$this->_gateway = new DirectDebitGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::DIRECT_DEBIT );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/GiropayPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class GiropayPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new GiropayGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::GIROPAY );
$this->_default_button_url = plugins_url( 'images/giropay/icon-64x48.png', Plugin::$file );
$this->_gateway = new GiropayGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::GIROPAY );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/IDealPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class IDealPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new IDealGateway();
$this->_pretty_name = __( 'iDEAL', 'pronamic_ideal' );
$this->_default_button_url = plugins_url( 'images/ideal/icon-64x48.png', Plugin::$file );
$this->_gateway = new IDealGateway();
$this->_pretty_name = __( 'iDEAL', 'pronamic_ideal' );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/IDealQRPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class IDealQRPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new IDealQRGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::IDEALQR );
$this->_default_button_url = plugins_url( 'images/ideal-qr/icon-64x48.png', Plugin::$file );
$this->_gateway = new IDealQRGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::IDEALQR );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/KBCPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class KBCPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new KBCGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::KBC );
$this->_default_button_url = plugins_url( 'images/kbc/icon-64x48.png', Plugin::$file );
$this->_gateway = new KBCGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::KBC );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/PayPalPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class PayPalPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new PayPalGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::PAYPAL );
$this->_default_button_url = plugins_url( 'images/paypal/icon-64x48.png', Plugin::$file );
$this->_gateway = new PayPalGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::PAYPAL );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/PayconiqPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class PayconiqPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new PayconiqPaymentMethod();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::PAYCONIQ );
$this->_default_button_url = plugins_url( 'images/payconiq/icon-64x48.png', Plugin::$file );
$this->_gateway = new PayconiqPaymentMethod();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::PAYCONIQ );

parent::__construct( $pm_instance );
}
Expand Down
5 changes: 2 additions & 3 deletions src/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ class PaymentMethod extends EE_PMT_Base {
*/
public function __construct( $pm_instance = null ) {
if ( null === $this->payment_method ) {
$this->_gateway = new Gateway();
$this->_pretty_name = __( 'Pronamic', 'pronamic_ideal' );
$this->_default_button_url = plugins_url( 'images/credit-card/icon-64x48.png', Plugin::$file );
$this->_gateway = new Gateway();
$this->_pretty_name = __( 'Pronamic', 'pronamic_ideal' );
}

parent::__construct( $pm_instance );
Expand Down
5 changes: 2 additions & 3 deletions src/SofortPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class SofortPaymentMethod extends PaymentMethod {
* @param EE_Payment_Method $pm_instance Event Espresso payment method instance.
*/
public function __construct( $pm_instance = null ) {
$this->_gateway = new SofortGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::SOFORT );
$this->_default_button_url = plugins_url( 'images/sofort/icon-64x48.png', Plugin::$file );
$this->_gateway = new SofortGateway();
$this->_pretty_name = PaymentMethods::get_name( PaymentMethods::SOFORT );

parent::__construct( $pm_instance );
}
Expand Down

0 comments on commit 5ec40c0

Please sign in to comment.