| @@ -177,7 +177,7 @@ | ||
| 177 | 177 | * @param float $total Amount due. | 
| 178 | 178 | * @param string $currency Accepted currency. | 
| 179 | 179 | * | 
| 180 | - * @return float|int | |
| 180 | + * @return double | |
| 181 | 181 | */ | 
| 182 | 182 |  	public function get_stripe_amount( $total, $currency = '' ) { | 
| 183 | 183 |  		if ( ! $currency ) { | 
| @@ -23,7 +23,6 @@ | ||
| 23 | 23 | |
| 24 | 24 | /** | 
| 25 | 25 | * Set secret API Key. | 
| 26 | - * @param string $key | |
| 27 | 26 | */ | 
| 28 | 27 |  	public static function set_secret_key( $secret_key ) { | 
| 29 | 28 | self::$secret_key = $secret_key; | 
| @@ -210,7 +210,6 @@ | ||
| 210 | 210 | /** | 
| 211 | 211 | * Get a customers saved cards using their Stripe ID. Cached. | 
| 212 | 212 | * | 
| 213 | - * @param string $customer_id | |
| 214 | 213 | * @return array | 
| 215 | 214 | */ | 
| 216 | 215 |  	public function get_cards() { | 
| @@ -17,7 +17,10 @@ | ||
| 17 | 17 | ?> | 
| 18 | 18 | <tr> | 
| 19 | 19 | <td><?php printf( __( '%s card ending in %s', 'woocommerce-gateway-stripe' ), $card->brand, $card->last4 ); ?> | 
| 20 | - <?php if ( $is_default_card ) echo '<br />' . __( '(Default)', 'woocommerce-gateway-stripe' ); ?> | |
| 20 | +            	<?php if ( $is_default_card ) { | |
| 21 | + echo '<br />' . __( '(Default)', 'woocommerce-gateway-stripe' ); | |
| 22 | +} | |
| 23 | +?> | |
| 21 | 24 | </td> | 
| 22 | 25 | <td><?php printf( __( 'Expires %s/%s', 'woocommerce-gateway-stripe' ), $card->exp_month, $card->exp_year ); ?></td> | 
| 23 | 26 | <td> | 
| @@ -144,6 +144,8 @@ discard block | ||
| 144 | 144 | |
| 145 | 145 | /** | 
| 146 | 146 | * Allow this class and other classes to add slug keyed notices (to avoid duplication) | 
| 147 | + * @param string $slug | |
| 148 | + * @param string $class | |
| 147 | 149 | */ | 
| 148 | 150 |  		public function add_admin_notice( $slug, $class, $message ) { | 
| 149 | 151 | $this->notices[ $slug ] = array( | 
| @@ -397,7 +399,7 @@ discard block | ||
| 397 | 399 | /** | 
| 398 | 400 | * List of currencies supported by Stripe that has no decimals. | 
| 399 | 401 | * | 
| 400 | - * @return array $currencies | |
| 402 | + * @return string[] $currencies | |
| 401 | 403 | */ | 
| 402 | 404 |  		public static function no_decimal_currencies() { | 
| 403 | 405 | return array( | 
| @@ -103,7 +103,6 @@ discard block | ||
| 103 | 103 | * process_subscription_payment function. | 
| 104 | 104 | * @param mixed $order | 
| 105 | 105 | * @param int $amount (default: 0) | 
| 106 | - * @param string $stripe_token (default: '') | |
| 107 | 106 | * @param bool initial_payment | 
| 108 | 107 | */ | 
| 109 | 108 |  	public function process_subscription_payment( $order = '', $amount = 0 ) { | 
| @@ -160,6 +159,8 @@ discard block | ||
| 160 | 159 | /** | 
| 161 | 160 | * Process the pre-order | 
| 162 | 161 | * @param int $order_id | 
| 162 | + * @param boolean $retry | |
| 163 | + * @param boolean $force_customer | |
| 163 | 164 | * @return array | 
| 164 | 165 | */ | 
| 165 | 166 |  	public function process_pre_order( $order_id, $retry, $force_customer ) { | 
| @@ -256,7 +257,7 @@ discard block | ||
| 256 | 257 | |
| 257 | 258 | /** | 
| 258 | 259 | * Don't transfer Stripe fee/ID meta to renewal orders. | 
| 259 | - * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription | |
| 260 | + * @param integer $renewal_order | |
| 260 | 261 | */ | 
| 261 | 262 |  	public function delete_renewal_meta( $renewal_order ) { | 
| 262 | 263 | delete_post_meta( ( $this->wc_pre_30 ? $renewal_order->id : $renewal_order->get_id() ), 'Stripe Fee' ); |