@@ -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 |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | * @param string $id |
269 | 269 | * @param string $search_for_id |
270 | 270 | * |
271 | - * @return mixed |
|
271 | + * @return string |
|
272 | 272 | */ |
273 | 273 | public static function shortcode_button( $id = '', $search_for_id = '' ) { |
274 | 274 | ob_start(); |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * Makes SD work with the siteOrigin page builder. |
299 | 299 | * |
300 | 300 | * @since 1.0.6 |
301 | - * @return mixed |
|
301 | + * @return string |
|
302 | 302 | */ |
303 | 303 | public static function siteorigin_js() { |
304 | 304 | ob_start(); |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | /** |
858 | 858 | * Gets some CSS for the widgets screen. |
859 | 859 | * |
860 | - * @return mixed |
|
860 | + * @return string |
|
861 | 861 | */ |
862 | 862 | public function widget_css() { |
863 | 863 | ob_start(); |
@@ -897,7 +897,7 @@ discard block |
||
897 | 897 | /** |
898 | 898 | * Gets some JS for the widgets screen. |
899 | 899 | * |
900 | - * @return mixed |
|
900 | + * @return string |
|
901 | 901 | */ |
902 | 902 | public function widget_js() { |
903 | 903 | ob_start(); |
@@ -1347,7 +1347,7 @@ discard block |
||
1347 | 1347 | * |
1348 | 1348 | * @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. |
1349 | 1349 | * @since 1.0.9 Save numbers as numbers and not strings. |
1350 | - * @return mixed |
|
1350 | + * @return string |
|
1351 | 1351 | */ |
1352 | 1352 | public function block() { |
1353 | 1353 | ob_start(); |