Completed
Push — master ( fe4649...9700bf )
by Stiofan
14s
created
includes/wpinv-email-functions.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -664,6 +664,9 @@  discard block
 block discarded – undo
664 664
     return $sent;
665 665
 }
666 666
 
667
+/**
668
+ * @return string
669
+ */
667 670
 function wpinv_mail_get_from_address() {
668 671
     $from_address = apply_filters( 'wpinv_mail_from_address', wpinv_get_option( 'email_from' ) );
669 672
     return sanitize_email( $from_address );
@@ -1123,6 +1126,9 @@  discard block
 block discarded – undo
1123 1126
 }
1124 1127
 add_filter( 'wpinv_settings_sections_emails', 'wpinv_settings_sections_emails', 10, 1 );
1125 1128
 
1129
+/**
1130
+ * @param string $email_type
1131
+ */
1126 1132
 function wpinv_email_is_enabled( $email_type ) {
1127 1133
     $emails = wpinv_get_emails();
1128 1134
     $enabled = isset( $emails[$email_type] ) && wpinv_get_option( 'email_'. $email_type . '_active', 0 ) ? true : false;
Please login to merge, or discard this patch.
includes/class-wpinv-shortcodes.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
         add_shortcode( 'wpinv_messages', __CLASS__ . '::messages' );
22 22
     }
23 23
 
24
+    /**
25
+     * @param string[] $function
26
+     */
24 27
     public static function shortcode_wrapper(
25 28
         $function,
26 29
         $atts    = array(),
Please login to merge, or discard this patch.
includes/wpinv-template-functions.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -140,6 +140,9 @@  discard block
 block discarded – undo
140 140
 	do_action( 'wpinv_after_template_part', $template_name, $template_path, $located, $args );
141 141
 }
142 142
 
143
+/**
144
+ * @param string $template_name
145
+ */
143 146
 function wpinv_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
144 147
 	ob_start();
145 148
 	wpinv_get_template( $template_name, $args, $template_path, $default_path );
@@ -172,6 +175,9 @@  discard block
 block discarded – undo
172 175
     return apply_filters( 'wpinv_locate_template', $template, $template_name, $template_path );
173 176
 }
174 177
 
178
+/**
179
+ * @param string $slug
180
+ */
175 181
 function wpinv_get_template_part( $slug, $name = null, $load = true ) {
176 182
 	do_action( 'get_template_part_' . $slug, $slug, $name );
177 183
 
@@ -871,6 +877,9 @@  discard block
 block discarded – undo
871 877
     return apply_filters( 'wpinv_get_watermark', $output, $id );
872 878
 }
873 879
 
880
+/**
881
+ * @param integer $id
882
+ */
874 883
 function wpinv_get_watermark( $id ) {
875 884
     if ( !$id > 0 ) {
876 885
         return NULL;
Please login to merge, or discard this patch.