Passed
Pull Request — master (#236)
by Patrik
03:27
created
vendor/composer/ClassLoader.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -367,6 +367,10 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
includes/class-wpinv-addons.php 1 patch
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -73,10 +73,6 @@
 block discarded – undo
73 73
 	/**
74 74
 	 * Outputs a button.
75 75
 	 *ccc
76
-	 * @param string $url
77
-	 * @param string $text
78
-	 * @param string $theme
79
-	 * @param string $plugin
80 76
 	 */
81 77
 	public function output_button( $addon ) {
82 78
 		$current_tab     = empty( $_GET['tab'] ) ? 'addons' : sanitize_title( $_GET['tab'] );
Please login to merge, or discard this patch.
includes/libraries/class-ayecode-addons.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
         /**
52 52
          * Get section for the addons screen.
53 53
          *
54
-         * @param  string $section_id
55 54
          *
55
+         * @param string $tab_id
56 56
          * @return object|bool
57 57
          */
58 58
         public function get_tab($tab_id)
Please login to merge, or discard this patch.
includes/class-wpinv-session-handler.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,6 +130,10 @@  discard block
 block discarded – undo
130 130
 		}
131 131
 	}
132 132
 
133
+	/**
134
+	 * @param string $name
135
+	 * @param string $value
136
+	 */
133 137
 	public function setcookie($name, $value, $expire = 0, $secure = false, $httponly = false){
134 138
         if ( ! headers_sent() ) {
135 139
             setcookie( $name, $value, $expire, COOKIEPATH ? COOKIEPATH : '/', COOKIE_DOMAIN, $secure, apply_filters( 'wpinv_cookie_httponly', $httponly, $name, $value, $expire, $secure ) );
@@ -274,7 +278,7 @@  discard block
 block discarded – undo
274 278
 	 * When a user is logged out, ensure they have a unique nonce by using the customer/session ID.
275 279
 	 *
276 280
 	 * @param int $uid User ID.
277
-	 * @return string
281
+	 * @return integer
278 282
 	 */
279 283
 	public function nonce_user_logged_out( $uid ) {
280 284
 		return $this->has_session() && $this->_customer_id ? $this->_customer_id : $uid;
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
@@ -321,12 +321,18 @@  discard block
 block discarded – undo
321 321
     return apply_filters( 'wpinv_get_discount_code', $code, $code_id );
322 322
 }
323 323
 
324
+/**
325
+ * @return string
326
+ */
324 327
 function wpinv_get_discount_start_date( $code_id = null ) {
325 328
     $start_date = get_post_meta( $code_id, '_wpi_discount_start', true );
326 329
 
327 330
     return apply_filters( 'wpinv_get_discount_start_date', $start_date, $code_id );
328 331
 }
329 332
 
333
+/**
334
+ * @return string
335
+ */
330 336
 function wpinv_get_discount_expiration( $code_id = null ) {
331 337
     $expiration = get_post_meta( $code_id, '_wpi_discount_expiration', true );
332 338
 
@@ -649,6 +655,9 @@  discard block
 block discarded – undo
649 655
     return (bool) apply_filters( 'wpinv_is_discount_item_req_met', $ret, $code_id, $condition );
650 656
 }
651 657
 
658
+/**
659
+ * @param string $code
660
+ */
652 661
 function wpinv_is_discount_used( $code = null, $user = '', $code_id = 0 ) {
653 662
     global $wpi_checkout_id;
654 663
     
@@ -816,6 +825,9 @@  discard block
 block discarded – undo
816 825
 
817 826
 }
818 827
 
828
+/**
829
+ * @param double $amount
830
+ */
819 831
 function wpinv_format_discount_rate( $type, $amount ) {
820 832
     if ( $type == 'flat' ) {
821 833
         return wpinv_price( wpinv_format_amount( $amount ) );
@@ -860,6 +872,9 @@  discard block
 block discarded – undo
860 872
     return $discounts;
861 873
 }
862 874
 
875
+/**
876
+ * @return boolean
877
+ */
863 878
 function wpinv_unset_cart_discount( $code = '' ) {    
864 879
     $discounts = wpinv_get_cart_discounts();
865 880
 
@@ -1140,6 +1155,9 @@  discard block
 block discarded – undo
1140 1155
     return (bool) apply_filters( 'wpinv_multiple_discounts_allowed', $ret );
1141 1156
 }
1142 1157
 
1158
+/**
1159
+ * @param integer $code
1160
+ */
1143 1161
 function wpinv_get_discount_label( $code, $echo = true ) {
1144 1162
     $label = wp_sprintf( __( 'Discount%1$s', 'invoicing' ), ( $code != '' && $code != 'none' ? ' (<code>' . $code . '</code>)': '' ) );
1145 1163
     $label = apply_filters( 'wpinv_get_discount_label', $label, $code );
Please login to merge, or discard this patch.
vendor/ayecode/wp-super-duper/wp-super-duper.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 		 * @param string $id
394 394
 		 * @param string $search_for_id
395 395
 		 *
396
-		 * @return mixed
396
+		 * @return string
397 397
 		 */
398 398
 		public static function shortcode_button( $id = '', $search_for_id = '' ) {
399 399
 			ob_start();
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
 		 * Makes SD work with the siteOrigin page builder.
424 424
 		 *
425 425
 		 * @since 1.0.6
426
-		 * @return mixed
426
+		 * @return string
427 427
 		 */
428 428
 		public static function siteorigin_js() {
429 429
 			ob_start();
@@ -998,7 +998,7 @@  discard block
 block discarded – undo
998 998
 		/**
999 999
 		 * Gets some CSS for the widgets screen.
1000 1000
 		 *
1001
-		 * @return mixed
1001
+		 * @return string
1002 1002
 		 */
1003 1003
 		public function widget_css() {
1004 1004
 			ob_start();
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
 		/**
1053 1053
 		 * Gets some JS for the widgets screen.
1054 1054
 		 *
1055
-		 * @return mixed
1055
+		 * @return string
1056 1056
 		 */
1057 1057
 		public function widget_js() {
1058 1058
 			ob_start();
@@ -1592,7 +1592,7 @@  discard block
 block discarded – undo
1592 1592
 		 * @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.
1593 1593
 		 * @since 1.0.9 Save numbers as numbers and not strings.
1594 1594
 		 * @since 1.1.0 Font Awesome classes can be used for icons.
1595
-		 * @return mixed
1595
+		 * @return string
1596 1596
 		 */
1597 1597
 		public function block() {
1598 1598
 			ob_start();
Please login to merge, or discard this patch.