Failed Conditions
Push — develop ( eb5e5d...72ceb5 )
by Reüel
08:15
created

src/Gateways/PayPalGateway.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * PayPal gateway
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2021 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay\Extensions\MemberPress
9
 */
10
11
namespace Pronamic\WordPress\Pay\Extensions\MemberPress\Gateways;
12
13
use Pronamic\WordPress\Pay\Core\PaymentMethods;
14
15
/**
16
 * WordPress pay MemberPress PayPal gateway
17
 *
18
 * @author  Reüel van der Steege
19
 * @version 2.0.1
20
 * @since   1.0.5
21
 */
22
class PayPalGateway extends Gateway {
23
	/**
24
	 * Payment method.
25
	 *
26
	 * @var string
27
	 */
28
	protected $payment_method = PaymentMethods::PAYPAL;
29
30
	/**
31
	 * Get alias class name of this gateway.
32
	 *
33
	 * @return string
34
	 */
35
	public function get_alias() {
36
		return 'MeprPronamicPayPalGateway';
37
	}
38
39
	/**
40
	 * Get icon function, please note that this is not a MemberPress function.
41
	 *
42
	 * @since 1.0.2
43
	 * @return string
44
	 */
45
	protected function get_icon() {
46
		return PaymentMethods::get_icon_url( PaymentMethods::PAYPAL );
0 ignored issues
show
The method get_icon_url() does not exist on Pronamic\WordPress\Pay\Core\PaymentMethods. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

46
		return PaymentMethods::/** @scrutinizer ignore-call */ get_icon_url( PaymentMethods::PAYPAL );

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
47
	}
48
}
49