Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer use files from plugin directory pronamic-ideal/images. #7

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/AlipayPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@
*
* @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 @@ -38,10 +38,9 @@
*
* @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
Loading