Completed
Pull Request — master (#1270)
by
unknown
05:01
created
includes/class-sensei-settings.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
60 60
     /**
61 61
      * @since 1.9.0
62 62
      *
63
-     * @param $setting
64
-     * @param $new_value
63
+     * @param string $setting
64
+     * @param integer $new_value
65 65
      */
66 66
     public function set( $setting, $new_value ){
67 67
 
Please login to merge, or discard this patch.
includes/class-sensei-grading.php 1 patch
Doc Comments   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 * Constructor
22 22
 	 * @since  1.3.0
23 23
      *
24
-     * @param $file
24
+     * @param string $file
25 25
 	 */
26 26
 	public function __construct ( $file ) {
27 27
 		$this->name = __( 'Grading', 'woothemes-sensei' );
@@ -328,6 +328,7 @@  discard block
 block discarded – undo
328 328
 	/**
329 329
 	 * Return array of valid statuses for either Course or Lesson
330 330
 	 * @since  1.7.0
331
+	 * @param string $type
331 332
 	 * @return array
332 333
 	 */
333 334
 	public function get_stati( $type ) {
@@ -527,7 +528,7 @@  discard block
 block discarded – undo
527 528
      * the grades as the Grader selected theme and saves the total grade and
528 529
      * individual question grades.
529 530
      *
530
-     * @return bool
531
+     * @return false|null
531 532
      */
532 533
     public function admin_process_grading_submission() {
533 534
 
@@ -904,8 +905,8 @@  discard block
 block discarded – undo
904 905
      * Grading logic specifically for the gap fill questions
905 906
      *
906 907
      * @since 1.9.0
907
-     * @param $question_id
908
-     * @param $user_answer
908
+     * @param integer $question_id
909
+     * @param string $user_answer
909 910
      *
910 911
      * @return bool | int false or the grade given to the user answer
911 912
      */
@@ -1009,7 +1010,7 @@  discard block
 block discarded – undo
1009 1010
      * Add together all the graded lesson grades
1010 1011
      *
1011 1012
      * @since 1.9.0
1012
-     * @return double $sum_of_all_grades
1013
+     * @return integer $sum_of_all_grades
1013 1014
      */
1014 1015
     public static function get_graded_lessons_sum(){
1015 1016
 
@@ -1032,7 +1033,7 @@  discard block
 block discarded – undo
1032 1033
      *
1033 1034
      * @since 1.9.0
1034 1035
      * @param $user_id
1035
-     * @return double
1036
+     * @return integer
1036 1037
      */
1037 1038
     public static function get_user_graded_lessons_sum( $user_id ){
1038 1039
         global $wpdb;
@@ -1055,7 +1056,7 @@  discard block
 block discarded – undo
1055 1056
      * @since 1.9.0
1056 1057
      *
1057 1058
      * @param int lesson_id
1058
-     * @return double
1059
+     * @return integer
1059 1060
      */
1060 1061
     public static function get_lessons_users_grades_sum( $lesson_id ){
1061 1062
 
@@ -1080,7 +1081,7 @@  discard block
 block discarded – undo
1080 1081
      * @since 1.9.0
1081 1082
      *
1082 1083
      * @param int $course_id
1083
-     * @return double
1084
+     * @return integer
1084 1085
      */
1085 1086
     public static function get_course_users_grades_sum( $course_id ){
1086 1087
 
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
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
      *
817 817
      * @since 1.4.5
818 818
      * @access public
819
-     * @param mixed $image_size
819
+     * @param string $image_size
820 820
      * @return string
821 821
      */
822 822
     public function get_image_size( $image_size ) {
@@ -1042,7 +1042,7 @@  discard block
 block discarded – undo
1042 1042
      * @since  1.0.0
1043 1043
      * @param  int 			$course_id  (default: 0)
1044 1044
      * @param  array/Object $order_user (default: array()) Specific user's data.
1045
-     * @return bool|int
1045
+     * @return boolean|string
1046 1046
      */
1047 1047
     public function woocommerce_course_update ( $course_id = 0, $order_user = array()  ) {
1048 1048
 
@@ -1085,7 +1085,7 @@  discard block
 block discarded – undo
1085 1085
      * Disable guest checkout if a course product is in the cart
1086 1086
      * @deprecated since 1.9.0
1087 1087
      * @param  boolean $guest_checkout Current guest checkout setting
1088
-     * @return boolean                 Modified guest checkout setting
1088
+     * @return string|boolean                 Modified guest checkout setting
1089 1089
      */
1090 1090
     public function disable_guest_checkout( $guest_checkout ) {
1091 1091
 
Please login to merge, or discard this patch.
includes/class-sensei-wc.php 1 patch
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
      * @param  int $user_id
837 837
      * @param  int $product_id
838 838
      *
839
-     * @return bool
839
+     * @return boolean|null
840 840
      */
841 841
     public static function has_customer_bought_product ( $user_id, $product_id ){
842 842
 
@@ -941,7 +941,7 @@  discard block
 block discarded – undo
941 941
      * @since   1.2.0
942 942
      * @since  1.9.0 move to class Sensei_WC
943 943
      *
944
-     * @param   WC_Order $order
944
+     * @param   integer $order
945 945
      *
946 946
      * @return  void
947 947
      */
@@ -1152,6 +1152,7 @@  discard block
 block discarded – undo
1152 1152
      * @since   1.2.0
1153 1153
      * @since   1.9.0 Move function to the Sensei_WC class
1154 1154
      * @param   integer| WC_Order $order_id order ID
1155
+     * @param integer $order_id
1155 1156
      * @return  void
1156 1157
      */
1157 1158
     public static function cancel_order ( $order_id ) {
@@ -1261,7 +1262,7 @@  discard block
 block discarded – undo
1261 1262
      * @param  int 			$course_id  (default: 0)
1262 1263
      * @param  array/Object $order_user (default: array()) Specific user's data.
1263 1264
      *
1264
-     * @return bool|int
1265
+     * @return boolean|string
1265 1266
      */
1266 1267
     public static function course_update ( $course_id = 0, $order_user = array()  ) {
1267 1268
 
@@ -1334,7 +1335,7 @@  discard block
 block discarded – undo
1334 1335
      *
1335 1336
      * @param  boolean $guest_checkout Current guest checkout setting
1336 1337
      *
1337
-     * @return boolean                 Modified guest checkout setting
1338
+     * @return string|boolean                 Modified guest checkout setting
1338 1339
      */
1339 1340
     public static function disable_guest_checkout( $guest_checkout ) {
1340 1341
 
@@ -1508,7 +1509,7 @@  discard block
 block discarded – undo
1508 1509
      * Get all the valid subscription types.
1509 1510
      *
1510 1511
      * @since 1.9.0
1511
-     * @return array
1512
+     * @return string[]
1512 1513
      */
1513 1514
     public static function get_subscription_types(){
1514 1515
 
@@ -1526,8 +1527,8 @@  discard block
 block discarded – undo
1526 1527
      *
1527 1528
      * @since 1.9.0
1528 1529
      *
1529
-     * @param $user_id
1530
-     * @param $product_id
1530
+     * @param integer $user_id
1531
+     * @param string $product_id
1531 1532
      * @param $course_id
1532 1533
      *
1533 1534
      * @return bool
Please login to merge, or discard this patch.