@@ -92,7 +92,7 @@ |
||
92 | 92 | * Is payment method required to start transaction? |
93 | 93 | * |
94 | 94 | * @see Core_Gateway::payment_method_is_required() |
95 | - * @return true |
|
95 | + * @return boolean |
|
96 | 96 | */ |
97 | 97 | public function payment_method_is_required() { |
98 | 98 | return true; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * From ID. |
48 | 48 | * |
49 | - * @param string|int $id ID. |
|
49 | + * @param integer $id ID. |
|
50 | 50 | * @return self |
51 | 51 | */ |
52 | 52 | public static function from_id( $id ) { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | \JsonSchema\Constraints\Constraint::CHECK_MODE_EXCEPTIONS |
54 | 54 | ); |
55 | 55 | |
56 | - /* phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase */ |
|
56 | + /* phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase */ |
|
57 | 57 | return new self( $object->requestTimestamp ); |
58 | 58 | } |
59 | 59 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | \JsonSchema\Constraints\Constraint::CHECK_MODE_EXCEPTIONS |
61 | 61 | ); |
62 | 62 | |
63 | - /* phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase */ |
|
63 | + /* phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase */ |
|
64 | 64 | return new self( $object->code, $object->message, $object->detailedMessage ); |
65 | 65 | } |
66 | 66 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @param string $file File with HTTP response. |
50 | 50 | */ |
51 | 51 | public function mock_http_response( $url, $file ) { |
52 | - $this->mock_http_responses[ $url ] = $file; |
|
52 | + $this->mock_http_responses[$url] = $file; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -62,13 +62,13 @@ discard block |
||
62 | 62 | * @return array<string, mixed> |
63 | 63 | */ |
64 | 64 | public function pre_http_request( $preempt, $r, $url ) { |
65 | - if ( ! isset( $this->mock_http_responses[ $url ] ) ) { |
|
65 | + if ( ! isset( $this->mock_http_responses[$url] ) ) { |
|
66 | 66 | return $preempt; |
67 | 67 | } |
68 | 68 | |
69 | - $file = $this->mock_http_responses[ $url ]; |
|
69 | + $file = $this->mock_http_responses[$url]; |
|
70 | 70 | |
71 | - unset( $this->mock_http_responses[ $url ] ); |
|
71 | + unset( $this->mock_http_responses[$url] ); |
|
72 | 72 | |
73 | 73 | $response = \file_get_contents( $file, true ); |
74 | 74 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | array( ResultCode::WAITING, PaymentStatus::OPEN ), |
55 | 55 | array( ResultCode::PENDING, PaymentStatus::OPEN ), |
56 | 56 | array( ResultCode::TIMEOUT, PaymentStatus::EXPIRED ), |
57 | - array( -1000, null ), |
|
57 | + array( - 1000, null ), |
|
58 | 58 | ); |
59 | 59 | } |
60 | 60 | } |