Completed
Push — master ( 3dfe72...9a232d )
by Dwain
05:21
created
includes/class-sensei-wc.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
      * @since   1.2.0
995 995
      * @since  1.9.0 move to class Sensei_WC
996 996
      *
997
-     * @param   WC_Order $order
997
+     * @param   integer $order
998 998
      *
999 999
      * @return  void
1000 1000
      */
@@ -1212,6 +1212,7 @@  discard block
 block discarded – undo
1212 1212
      * @since   1.2.0
1213 1213
      * @since   1.9.0 Move function to the Sensei_WC class
1214 1214
      * @param   integer| WC_Order $order_id order ID
1215
+     * @param integer $order_id
1215 1216
      * @return  void
1216 1217
      */
1217 1218
     public static function cancel_order ( $order_id ) {
@@ -1402,7 +1403,7 @@  discard block
 block discarded – undo
1402 1403
      *
1403 1404
      * @param  boolean $guest_checkout Current guest checkout setting
1404 1405
      *
1405
-     * @return boolean                 Modified guest checkout setting
1406
+     * @return string|boolean                 Modified guest checkout setting
1406 1407
      */
1407 1408
     public static function disable_guest_checkout( $guest_checkout ) {
1408 1409
 
@@ -1639,7 +1640,7 @@  discard block
 block discarded – undo
1639 1640
      * Get all the valid subscription types.
1640 1641
      *
1641 1642
      * @since 1.9.0
1642
-     * @return array
1643
+     * @return string[]
1643 1644
      */
1644 1645
     public static function get_subscription_types(){
1645 1646
 
@@ -1658,7 +1659,7 @@  discard block
 block discarded – undo
1658 1659
      * @since 1.9.0
1659 1660
      *
1660 1661
      * @param $user_id
1661
-     * @param $product_id
1662
+     * @param string $product_id
1662 1663
      * @param $course_id
1663 1664
      *
1664 1665
      * @return bool
@@ -1725,7 +1726,7 @@  discard block
 block discarded – undo
1725 1726
 	 * Get all the orders for a specific user and product combination
1726 1727
 	 *
1727 1728
 	 * @param int $user_id
1728
-	 * @param $product_id
1729
+	 * @param integer $product_id
1729 1730
 	 *
1730 1731
 	 * @return array $orders
1731 1732
 	 */
Please login to merge, or discard this patch.
includes/class-sensei.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
      *
825 825
      * @since 1.4.5
826 826
      * @access public
827
-     * @param mixed $image_size
827
+     * @param string $image_size
828 828
      * @return string
829 829
      */
830 830
     public function get_image_size( $image_size ) {
@@ -1069,7 +1069,7 @@  discard block
 block discarded – undo
1069 1069
      * @param   integer $wc_product_id Product ID or Variation ID
1070 1070
      * @param   string  $product_type  '' or 'variation'
1071 1071
      *
1072
-     * @return   WC_Product $wc_product_object
1072
+     * @return   integer $wc_product_object
1073 1073
      */
1074 1074
     public function sensei_get_woocommerce_product_object ( $wc_product_id = 0, $product_type = '' ) {
1075 1075
 
@@ -1093,7 +1093,7 @@  discard block
 block discarded – undo
1093 1093
      * Disable guest checkout if a course product is in the cart
1094 1094
      * @deprecated since 1.9.0
1095 1095
      * @param  boolean $guest_checkout Current guest checkout setting
1096
-     * @return boolean                 Modified guest checkout setting
1096
+     * @return string|boolean                 Modified guest checkout setting
1097 1097
      */
1098 1098
     public function disable_guest_checkout( $guest_checkout ) {
1099 1099
 
Please login to merge, or discard this patch.