Completed
Push — master ( 78b9e3...efb4fd )
by Dwain
04:49
created
includes/template-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
 	 * sensei_check_if_product_is_in_cart function.
144 144
 	 *
145 145
 	 * @deprecated since 1.9.0
146
-	 * @param int $wc_post_id (default: 0)
146
+	 * @param int $wc_product_id (default: 0)
147 147
 	 * @return bool
148 148
 	 */
149 149
 	function sensei_check_if_product_is_in_cart( $wc_product_id = 0 ) {
Please login to merge, or discard this patch.
includes/admin/class-sensei-learner-management.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@
 block discarded – undo
21 21
 	/**
22 22
 	 * Constructor
23 23
 	 * @since  1.6.0
24
+	 * @param string $file
24 25
 	 * @return  void
25 26
 	 */
26 27
 	public function __construct ( $file ) {
Please login to merge, or discard this patch.
includes/class-sensei-modules.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
     private $order_page_slug;
22 22
     public $taxonomy;
23 23
 
24
+    /**
25
+     * @param string $file
26
+     */
24 27
     public function __construct( $file )
25 28
     {
26 29
         $this->file = $file;
@@ -1942,6 +1945,7 @@  discard block
 block discarded – undo
1942 1945
      * Hooked into 'get_terms'
1943 1946
      *
1944 1947
      * @since 1.8.0
1948
+     * @param string[] $taxonomies
1945 1949
      */
1946 1950
     public function append_teacher_name_to_module( $terms, $taxonomies, $args )
1947 1951
     {
Please login to merge, or discard this patch.
includes/class-sensei-settings-api.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -796,7 +796,7 @@
 block discarded – undo
796 796
 	 * Return an array of field types expecting an array value returned.
797 797
 	 * @access protected
798 798
 	 * @since  1.0.0
799
-	 * @return array
799
+	 * @return string[]
800 800
 	 */
801 801
 	protected function get_array_field_types () {
802 802
 		return array( 'multicheck' );
Please login to merge, or discard this patch.
includes/class-sensei-teacher.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
      * @since 1.8.0
453 453
      * @access public
454 454
      * @parameters
455
-     * @return array $users user id array
455
+     * @return boolean $users user id array
456 456
      */
457 457
     public function update_course_lessons_author ( $course_id, $new_author  ){
458 458
 
@@ -841,8 +841,7 @@  discard block
 block discarded – undo
841 841
      * This function hooks into wp_insert_post
842 842
      *
843 843
      * @since 1.8.0
844
-     * @param int $course_id
845
-     * @return bool
844
+     * @return false|null
846 845
      */
847 846
     public function notify_admin_teacher_course_creation( $new_status, $old_status, $post ){
848 847
 
Please login to merge, or discard this patch.
includes/class-sensei-updates.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1424,8 +1424,8 @@  discard block
 block discarded – undo
1424 1424
 	 *
1425 1425
 	 * @global type $woothemes_sensei
1426 1426
 	 * @global type $wpdb
1427
-	 * @param type $n
1428
-	 * @param type $offset
1427
+	 * @param integer $n
1428
+	 * @param integer $offset
1429 1429
 	 * @return boolean
1430 1430
 	 */
1431 1431
 	function status_changes_repair_course_statuses( $n = 50, $offset = 0 ) {
@@ -1669,8 +1669,8 @@  discard block
 block discarded – undo
1669 1669
 	 * Update the comment counts for all Courses and Lessons now that sensei comments will no longer be counted.
1670 1670
 	 *
1671 1671
 	 * @global type $wpdb
1672
-	 * @param type $n
1673
-	 * @param type $offset
1672
+	 * @param integer $n
1673
+	 * @param integer $offset
1674 1674
 	 * @return boolean
1675 1675
 	 */
1676 1676
 	public function update_comment_course_lesson_comment_counts( $n = 50, $offset = 0 ) {
Please login to merge, or discard this patch.
includes/class-sensei-course.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -850,7 +850,6 @@  discard block
 block discarded – undo
850 850
 	 * course_count function.
851 851
 	 *
852 852
 	 * @access public
853
-	 * @param array $exclude (default: array())
854 853
 	 * @param string $post_status (default: 'publish')
855 854
 	 * @return int
856 855
 	 */
@@ -1152,7 +1151,6 @@  discard block
 block discarded – undo
1152 1151
      *
1153 1152
 	 * @since  1.4.0
1154 1153
 	 * @param  object  $user   Queried user object
1155
-	 * @param  boolean $manage Whether the user has permission to manage the courses
1156 1154
 	 * @return string          HTML displayng course data
1157 1155
 	 */
1158 1156
 	public function load_user_courses_content( $user = false ) {
@@ -1879,7 +1877,7 @@  discard block
 block discarded – undo
1879 1877
      *
1880 1878
      * @since 1.9
1881 1879
      *
1882
-     * @param WP_Post $post
1880
+     * @param WP_Post $post_id
1883 1881
      */
1884 1882
     public function content_before_backwards_compatibility_hooks( $post_id ){
1885 1883
 
Please login to merge, or discard this patch.
includes/class-sensei-admin.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,6 @@  discard block
 block discarded – undo
192 192
 	 *
193 193
 	 * @access public
194 194
 	 * @param mixed $slug
195
-	 * @param mixed $option
196 195
 	 * @param string $page_title (default: '')
197 196
 	 * @param string $page_content (default: '')
198 197
 	 * @param int $post_parent (default: 0)
@@ -1037,6 +1036,9 @@  discard block
 block discarded – undo
1037 1036
 		?></div><?php
1038 1037
 	}
1039 1038
 
1039
+	/**
1040
+	 * @return string
1041
+	 */
1040 1042
 	public function get_course_order() {
1041 1043
 		return get_option( 'sensei_course_order', '' );
1042 1044
 	}
Please login to merge, or discard this patch.
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.