Completed
Pull Request — master (#1348)
by
unknown
07:54
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   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
      *
833 833
      * @since 1.4.5
834 834
      * @access public
835
-     * @param mixed $image_size
835
+     * @param string $image_size
836 836
      * @return string
837 837
      */
838 838
     public function get_image_size( $image_size ) {
@@ -1077,7 +1077,7 @@  discard block
 block discarded – undo
1077 1077
      * @param   integer $wc_product_id Product ID or Variation ID
1078 1078
      * @param   string  $product_type  '' or 'variation'
1079 1079
      *
1080
-     * @return   WC_Product $wc_product_object
1080
+     * @return   integer $wc_product_object
1081 1081
      */
1082 1082
     public function sensei_get_woocommerce_product_object ( $wc_product_id = 0, $product_type = '' ) {
1083 1083
 
@@ -1101,7 +1101,7 @@  discard block
 block discarded – undo
1101 1101
      * Disable guest checkout if a course product is in the cart
1102 1102
      * @deprecated since 1.9.0
1103 1103
      * @param  boolean $guest_checkout Current guest checkout setting
1104
-     * @return boolean                 Modified guest checkout setting
1104
+     * @return string|boolean                 Modified guest checkout setting
1105 1105
      */
1106 1106
     public function disable_guest_checkout( $guest_checkout ) {
1107 1107
 
@@ -1158,6 +1158,7 @@  discard block
 block discarded – undo
1158 1158
          * Returns the "Configure" plugin action link to go directly to the plugin
1159 1159
          * settings page (if any)
1160 1160
          *
1161
+         * @param string $plugin_id
1161 1162
          * @return string plugin configure link
1162 1163
          */
1163 1164
         public function get_settings_link( $plugin_id = null ) {
Please login to merge, or discard this patch.