@@ -307,7 +307,7 @@ |
||
| 307 | 307 | * @param int $order_id |
| 308 | 308 | * @param float $amount |
| 309 | 309 | * @param string $reason |
| 310 | - * @return bool|WP_Error True or false based on success, or a WP_Error object. |
|
| 310 | + * @return boolean True or false based on success, or a WP_Error object. |
|
| 311 | 311 | */ |
| 312 | 312 | public function process_refund( $order_id, $amount = null, $reason = '' ) { |
| 313 | 313 | return false; |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * Returns an array of payment token objects associated with the passed customer ID |
| 22 | 22 | * @since 2.6.0 |
| 23 | 23 | * @param int $customer_id Customer ID |
| 24 | - * @param string $gateway Optional Gateway ID for getting tokens for a specific gateway |
|
| 24 | + * @param string $gateway_id Optional Gateway ID for getting tokens for a specific gateway |
|
| 25 | 25 | * @return array Array of token objects |
| 26 | 26 | */ |
| 27 | 27 | public static function get_customer_tokens( $customer_id, $gateway_id = '' ) { |
@@ -161,8 +161,8 @@ |
||
| 161 | 161 | /** |
| 162 | 162 | * Add meta data. |
| 163 | 163 | * @since 2.7.0 |
| 164 | - * @param array $key Meta key |
|
| 165 | - * @param array $value Meta value |
|
| 164 | + * @param string $key Meta key |
|
| 165 | + * @param string $value Meta value |
|
| 166 | 166 | * @param array $unique Should this be a unique key? |
| 167 | 167 | */ |
| 168 | 168 | public function add_meta_data( $key, $value, $unique = false ) { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | /** |
| 64 | 64 | * Returns the payment token ID. |
| 65 | 65 | * @since 2.6.0 |
| 66 | - * @return ID Token ID |
|
| 66 | + * @return integer Token ID |
|
| 67 | 67 | */ |
| 68 | 68 | public function get_id() { |
| 69 | 69 | return absint( $this->_data['id'] ); |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | /** |
| 188 | 188 | * Update a payment token. |
| 189 | 189 | * @since 2.6.0 |
| 190 | - * @return True on success, false if validation failed and a payment token could not be updated |
|
| 190 | + * @return boolean on success, false if validation failed and a payment token could not be updated |
|
| 191 | 191 | */ |
| 192 | 192 | public function update() { |
| 193 | 193 | if ( false === $this->validate() ) { |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | /** |
| 224 | 224 | * Create a new payment token in the database. |
| 225 | 225 | * @since 2.6.0 |
| 226 | - * @return True on success, false if validation failed and a payment token could not be created |
|
| 226 | + * @return boolean on success, false if validation failed and a payment token could not be created |
|
| 227 | 227 | */ |
| 228 | 228 | public function create() { |
| 229 | 229 | if ( false === $this->validate() ) { |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | /** |
| 263 | 263 | * Saves a payment token to the database - does not require you to know if this is a new token or an update token. |
| 264 | 264 | * @since 2.6.0 |
| 265 | - * @return True on success, false if validation failed and a payment token could not be saved |
|
| 265 | + * @return boolean on success, false if validation failed and a payment token could not be saved |
|
| 266 | 266 | */ |
| 267 | 267 | public function save() { |
| 268 | 268 | if ( $this->get_id() > 0 ) { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @param string $id |
| 46 | 46 | * @param string $label |
| 47 | - * @param float $cost |
|
| 47 | + * @param integer $cost |
|
| 48 | 48 | * @param array $taxes |
| 49 | 49 | * @param string $method_id |
| 50 | 50 | */ |
@@ -87,8 +87,6 @@ discard block |
||
| 87 | 87 | /** |
| 88 | 88 | * Get all meta data for this rate. |
| 89 | 89 | * @since 2.6.0 |
| 90 | - * @param string $key |
|
| 91 | - * @param string $value |
|
| 92 | 90 | */ |
| 93 | 91 | public function get_meta_data() { |
| 94 | 92 | return $this->meta_data; |