Completed
Push — master ( 8cb6bf...057aa1 )
by
unknown
13:40
created
includes/librairies/catalog/products.class.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -794,6 +794,9 @@  discard block
 block discarded – undo
794 794
         return do_shortcode($string);
795 795
     }
796 796
 
797
+    /**
798
+     * @param integer $page_number
799
+     */
797 800
     public static function wpshop_get_product_by_criteria($criteria = null, $cid = 0, $pid = 0, $display_type, $order = 'ASC', $page_number, $products_per_page = 0, $nb_of_product_limit = 0, $grid_element_nb_per_line = WPSHOP_DISPLAY_GRID_ELEMENT_NUMBER_PER_LINE, $display_pagination = true)
798 801
     {
799 802
         global $wpdb;
@@ -1149,7 +1152,7 @@  discard block
 block discarded – undo
1149 1152
     /**
1150 1153
      * Add a product into the db. This function is used for the EDI
1151 1154
      * @param $name Name of the product
1152
-     * @param $description Description of the product
1155
+     * @param string $description Description of the product
1153 1156
      * @param $attrs List of the attributes and values of the product
1154 1157
      * @return boolean
1155 1158
      */
@@ -1464,10 +1467,10 @@  discard block
 block discarded – undo
1464 1467
     /**
1465 1468
      *    Define output for product
1466 1469
      *
1467
-     *    @param mixed $initialContent The initial product content defined into wordpress basic admin interface
1470
+     *    @param string $initialContent The initial product content defined into wordpress basic admin interface
1468 1471
      *    @param integer $product_id The product identifier we want to get and output attribute for
1469 1472
      *
1470
-     *    @return mixed $content The content to add or to modify the product output in frontend
1473
+     *    @return string $content The content to add or to modify the product output in frontend
1471 1474
      */
1472 1475
     public static function product_complete_sheet_output($initialContent, $product_id)
1473 1476
     {
@@ -2496,7 +2499,7 @@  discard block
 block discarded – undo
2496 2499
 
2497 2500
     /**
2498 2501
      * Retrieve and display the variation for a given product
2499
-     * @param integer $product_id The product identifier to get variation for
2502
+     * @param integer $post_id The product identifier to get variation for
2500 2503
      */
2501 2504
     public static function wpshop_variation($post_id = '', $from_admin = false, $order_id = '', $qty = 1)
2502 2505
     {
@@ -3294,6 +3297,9 @@  discard block
 block discarded – undo
3294 3297
         echo $output;
3295 3298
     }
3296 3299
 
3300
+    /**
3301
+     * @param boolean $has_variation
3302
+     */
3297 3303
     public function wps_get_summary_variations_product($product_id, $the_product, $has_variation)
3298 3304
     {
3299 3305
         global $wpdb, $wpshop_payment;
Please login to merge, or discard this patch.
includes/modules/wps_orders/controller/wps_orders_ctr.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 		/**
125 125
 		 *	Build an array with the different items to add to an order
126 126
 		 *
127
-		 *	@param array $products The item list to add to the order
127
+		 *	@param array $product The item list to add to the order
128 128
 		 *
129 129
 		 *	@return array $item_list The item to add to order
130 130
 		 */
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 	 *
419 419
 	 * @method wps_token_order_customer
420 420
 	 * @param  int $order_id OrderID.
421
-	 * @return mixed sha1 or false.
421
+	 * @return false|string sha1 or false.
422 422
 	 */
423 423
 	public static function wps_token_order_customer( $order_id, $date = null ) {
424 424
 		$date = isset( $date ) ? $date : date( 'Ym' );
Please login to merge, or discard this patch.
includes/modules/wps_download_file/controller/wps_download_file_ctr.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -7,6 +7,10 @@
 block discarded – undo
7 7
 	}
8 8
 
9 9
 	// Function to find download link by
10
+
11
+	/**
12
+	 * @param integer $oid
13
+	 */
10 14
 	public static function get_product_download_link( $oid, $item ) {
11 15
 		$parent_def = array();
12 16
 		$item_id = $item['item_id'];
Please login to merge, or discard this patch.