Passed
Pull Request — master (#47)
by Kiran
04:02
created
includes/libraries/wp-session/class-wp-session.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,6 @@
 block discarded – undo
48 48
 	/**
49 49
 	 * Retrieve the current session instance.
50 50
 	 *
51
-	 * @param bool $session_id Session ID from which to populate data.
52 51
 	 *
53 52
 	 * @return bool|WP_Session
54 53
 	 */
Please login to merge, or discard this patch.
includes/libraries/wpinv-euvat/class-wpinv-euvat.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -407,6 +407,10 @@  discard block
 block discarded – undo
407 407
         exit;
408 408
     }
409 409
     
410
+    /**
411
+     * @param string $source_url
412
+     * @param string $destination_file
413
+     */
410 414
     public static function geoip2_download_file( $source_url, $destination_file ) {
411 415
         $success    = false;
412 416
         $message    = '';
@@ -1192,6 +1196,9 @@  discard block
 block discarded – undo
1192 1196
         return apply_filters( 'wpinv_response_euvatrates', $response, $group );
1193 1197
     }    
1194 1198
     
1199
+    /**
1200
+     * @param boolean $is_digital
1201
+     */
1195 1202
     public static function requires_vat( $requires_vat = false, $user_id = 0, $is_digital = null ) {
1196 1203
         global $wpi_item_id, $wpi_country;
1197 1204
         
@@ -1412,6 +1419,9 @@  discard block
 block discarded – undo
1412 1419
         return apply_filters( 'wpinv_item_is_taxable', $is_taxable, $item_id, $country , $state );
1413 1420
     }
1414 1421
     
1422
+    /**
1423
+     * @param string|null $state
1424
+     */
1415 1425
     public static function find_rate( $country, $state, $rate, $class ) {
1416 1426
         global $wpi_zero_tax;
1417 1427
 
Please login to merge, or discard this patch.
includes/wpinv-discount-functions.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -324,12 +324,18 @@  discard block
 block discarded – undo
324 324
     return apply_filters( 'wpinv_get_discount_code', $code, $code_id );
325 325
 }
326 326
 
327
+/**
328
+ * @return string
329
+ */
327 330
 function wpinv_get_discount_start_date( $code_id = null ) {
328 331
     $start_date = get_post_meta( $code_id, '_wpi_discount_start', true );
329 332
 
330 333
     return apply_filters( 'wpinv_get_discount_start_date', $start_date, $code_id );
331 334
 }
332 335
 
336
+/**
337
+ * @return string
338
+ */
333 339
 function wpinv_get_discount_expiration( $code_id = null ) {
334 340
     $expiration = get_post_meta( $code_id, '_wpi_discount_expiration', true );
335 341
 
@@ -652,6 +658,9 @@  discard block
 block discarded – undo
652 658
     return (bool) apply_filters( 'wpinv_is_discount_item_req_met', $ret, $code_id, $condition );
653 659
 }
654 660
 
661
+/**
662
+ * @param string $code
663
+ */
655 664
 function wpinv_is_discount_used( $code = null, $user = '', $code_id = 0 ) {
656 665
     global $wpi_checkout_id;
657 666
     
@@ -817,6 +826,9 @@  discard block
 block discarded – undo
817 826
 
818 827
 }
819 828
 
829
+/**
830
+ * @param double $amount
831
+ */
820 832
 function wpinv_format_discount_rate( $type, $amount ) {
821 833
     if ( $type == 'flat' ) {
822 834
         return wpinv_price( wpinv_format_amount( $amount ) );
@@ -861,6 +873,9 @@  discard block
 block discarded – undo
861 873
     return $discounts;
862 874
 }
863 875
 
876
+/**
877
+ * @return boolean
878
+ */
864 879
 function wpinv_unset_cart_discount( $code = '' ) {    
865 880
     $discounts = wpinv_get_cart_discounts();
866 881
 
@@ -1175,6 +1190,9 @@  discard block
 block discarded – undo
1175 1190
 }
1176 1191
 //add_action( 'init', 'wpinv_apply_preset_discount', 999 );
1177 1192
 
1193
+/**
1194
+ * @param integer $code
1195
+ */
1178 1196
 function wpinv_get_discount_label( $code, $echo = true ) {
1179 1197
     $label = wp_sprintf( __( 'Discount%1$s', 'invoicing' ), ( $code != '' && $code != 'none' ? ' (<code>' . $code . '</code>)': '' ) );
1180 1198
     $label = apply_filters( 'wpinv_get_discount_label', $label, $code );
Please login to merge, or discard this patch.
includes/wpinv-email-functions.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -624,6 +624,9 @@  discard block
 block discarded – undo
624 624
     return $sent;
625 625
 }
626 626
 
627
+/**
628
+ * @return string
629
+ */
627 630
 function wpinv_mail_get_from_address() {
628 631
     $from_address = apply_filters( 'wpinv_mail_from_address', wpinv_get_option( 'email_from' ) );
629 632
     return sanitize_email( $from_address );
@@ -1083,6 +1086,9 @@  discard block
 block discarded – undo
1083 1086
 }
1084 1087
 add_filter( 'wpinv_settings_sections_emails', 'wpinv_settings_sections_emails', 10, 1 );
1085 1088
 
1089
+/**
1090
+ * @param string $email_type
1091
+ */
1086 1092
 function wpinv_email_is_enabled( $email_type ) {
1087 1093
     $emails = wpinv_get_emails();
1088 1094
     $enabled = isset( $emails[$email_type] ) && wpinv_get_option( $email_type . '_active', 1 ) ? true : false;
Please login to merge, or discard this patch.
includes/wpinv-item-functions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -529,6 +529,9 @@
 block discarded – undo
529 529
     return apply_filters( 'wpinv_get_cart_item_price_name', $name, $item['id'], $price_id, $item );
530 530
 }
531 531
 
532
+/**
533
+ * @return string
534
+ */
532 535
 function wpinv_get_cart_item_name( $item = array() ) {
533 536
     $item_title = !empty( $item['name'] ) ? $item['name'] : get_the_title( $item['id'] );
534 537
 
Please login to merge, or discard this patch.
includes/wpinv-tax-functions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -194,6 +194,9 @@
 block discarded – undo
194 194
     return apply_filters( 'wpinv_is_tax_exclusive', $ret, $item_id );
195 195
 }
196 196
 
197
+/**
198
+ * @return integer
199
+ */
197 200
 function wpinv_currency_decimal_filter( $decimals = 2 ) {
198 201
     $currency = wpinv_get_currency();
199 202
 
Please login to merge, or discard this patch.
includes/wpinv-template-functions.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -136,6 +136,9 @@  discard block
 block discarded – undo
136 136
 	do_action( 'wpinv_after_template_part', $template_name, $template_path, $located, $args );
137 137
 }
138 138
 
139
+/**
140
+ * @param string $template_name
141
+ */
139 142
 function wpinv_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
140 143
 	ob_start();
141 144
 	wpinv_get_template( $template_name, $args, $template_path, $default_path );
@@ -168,6 +171,10 @@  discard block
 block discarded – undo
168 171
     return apply_filters( 'wpinv_locate_template', $template, $template_name, $template_path );
169 172
 }
170 173
 
174
+/**
175
+ * @param string $slug
176
+ * @param boolean $name
177
+ */
171 178
 function wpinv_get_template_part( $slug, $name = null, $load = true ) {
172 179
 	do_action( 'get_template_part_' . $slug, $slug, $name );
173 180
 
@@ -867,6 +874,9 @@  discard block
 block discarded – undo
867 874
     return apply_filters( 'wpinv_get_watermark', $output, $id );
868 875
 }
869 876
 
877
+/**
878
+ * @param integer $id
879
+ */
870 880
 function wpinv_get_watermark( $id ) {
871 881
     if ( !$id > 0 ) {
872 882
         return NULL;
Please login to merge, or discard this patch.
includes/wpinv-user-functions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -161,6 +161,9 @@
 block discarded – undo
161 161
     wp_redirect( $redirect_to );
162 162
 }
163 163
 
164
+/**
165
+ * @param integer $user_id
166
+ */
164 167
 function wpinv_login_user( $user_id ) {
165 168
     if ( is_user_logged_in() ) {
166 169
         return true;
Please login to merge, or discard this patch.
includes/admin/class-wpinv-recurring-admin.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * Load frontend styles
60 60
      *
61 61
      * @since  1.0.0
62
-     * @return bool
62
+     * @return boolean|null
63 63
      */
64 64
     public function enqueue_styles() {
65 65
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * Load frontend javascript files
69 69
      *
70 70
      * @since  1.0.0
71
-     * @return bool
71
+     * @return boolean|null
72 72
      */
73 73
     public function enqueue_scripts() {
74 74
     }
Please login to merge, or discard this patch.