@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | * Retrieves the transaction ID from the subscription |
| 371 | 371 | * |
| 372 | 372 | * @since 1.0.0 |
| 373 | - * @return bool |
|
| 373 | + * @return string |
|
| 374 | 374 | */ |
| 375 | 375 | public function get_transaction_id() { |
| 376 | 376 | |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | * Stores the transaction ID for the subscription purchase |
| 393 | 393 | * |
| 394 | 394 | * @since 1.0.0.4 |
| 395 | - * @return bool |
|
| 395 | + * @return boolean|null |
|
| 396 | 396 | */ |
| 397 | 397 | public function set_transaction_id( $txn_id = '' ) { |
| 398 | 398 | $this->update( array( 'transaction_id' => $txn_id ) ); |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | * Renews a subscription |
| 404 | 404 | * |
| 405 | 405 | * @since 1.0.0 |
| 406 | - * @return bool |
|
| 406 | + * @return boolean|null |
|
| 407 | 407 | */ |
| 408 | 408 | public function renew() { |
| 409 | 409 | |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | * |
| 493 | 493 | * @since 1.0.0 |
| 494 | 494 | * @param $check_expiration bool True if expiration date should be checked with merchant processor before expiring |
| 495 | - * @return void |
|
| 495 | + * @return false|null |
|
| 496 | 496 | */ |
| 497 | 497 | public function expire( $check_expiration = false ) { |
| 498 | 498 | |
@@ -744,7 +744,7 @@ discard block |
||
| 744 | 744 | * Retrieves the subscription status |
| 745 | 745 | * |
| 746 | 746 | * @since 1.0.0 |
| 747 | - * @return int |
|
| 747 | + * @return string |
|
| 748 | 748 | */ |
| 749 | 749 | public function get_status() { |
| 750 | 750 | |
@@ -648,6 +648,9 @@ |
||
| 648 | 648 | } |
| 649 | 649 | add_filter( 'wpinv_enabled_payment_gateways', 'wpinv_check_authorizenet_currency_support', 10, 1 ); |
| 650 | 650 | |
| 651 | +/** |
|
| 652 | + * @param WPInv_Invoice $invoice |
|
| 653 | + */ |
|
| 651 | 654 | function wpinv_authorizenet_link_transaction_id( $transaction_id, $invoice_id, $invoice ) { |
| 652 | 655 | if ( $transaction_id == $invoice_id ) { |
| 653 | 656 | $link = $transaction_id; |
@@ -757,6 +757,9 @@ |
||
| 757 | 757 | } |
| 758 | 758 | add_filter( 'wpinv_payment_get_transaction_id-paypal', 'wpinv_paypal_get_transaction_id', 10, 1 ); |
| 759 | 759 | |
| 760 | +/** |
|
| 761 | + * @param WPInv_Invoice $invoice |
|
| 762 | + */ |
|
| 760 | 763 | function wpinv_paypal_link_transaction_id( $transaction_id, $invoice_id, $invoice ) { |
| 761 | 764 | if ( $transaction_id == $invoice_id ) { |
| 762 | 765 | $transaction_link = $transaction_id; |
@@ -194,6 +194,9 @@ |
||
| 194 | 194 | return apply_filters( 'wpinv_is_tax_exclusive', $ret, $item_id ); |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | +/** |
|
| 198 | + * @return integer|null |
|
| 199 | + */ |
|
| 197 | 200 | function wpinv_currency_decimal_filter( $decimals = 2 ) { |
| 198 | 201 | $currency = wpinv_get_currency(); |
| 199 | 202 | |
@@ -28,6 +28,9 @@ |
||
| 28 | 28 | 'WP_Super_Duper' => __DIR__ . '/..' . '/ayecode/wp-super-duper/wp-super-duper.php', |
| 29 | 29 | ); |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @return callable |
|
| 33 | + */ |
|
| 31 | 34 | public static function getInitializer(ClassLoader $loader) |
| 32 | 35 | { |
| 33 | 36 | return \Closure::bind(function () use ($loader) { |
@@ -367,6 +367,10 @@ |
||
| 367 | 367 | return $file; |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | + /** |
|
| 371 | + * @param string $class |
|
| 372 | + * @param string $ext |
|
| 373 | + */ |
|
| 370 | 374 | private function findFileWithExtension($class, $ext) |
| 371 | 375 | { |
| 372 | 376 | // PSR-4 lookup |
@@ -795,7 +795,7 @@ |
||
| 795 | 795 | * Output the JS for building the dynamic Guntenberg block. |
| 796 | 796 | * |
| 797 | 797 | * @since 1.0.4 Added block_wrap property which will set the block wrapping output element ie: div, span, p or empty for no wrap. |
| 798 | - * @return mixed |
|
| 798 | + * @return string |
|
| 799 | 799 | */ |
| 800 | 800 | public function block() { |
| 801 | 801 | ob_start(); |