Completed
Push — master ( 0fef01...2dfc11 )
by Dwain
04:48
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.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
     /**
404 404
      * Disable guest checkout if a course product is in the cart
405 405
      * @param  boolean $guest_checkout Current guest checkout setting
406
-     * @return boolean                 Modified guest checkout setting
406
+     * @return string|boolean                 Modified guest checkout setting
407 407
      */
408 408
     public function disable_guest_checkout( $guest_checkout ) {
409 409
         global $woocommerce;
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
      * @since  1.0.0
643 643
      * @param  int 			$course_id  (default: 0)
644 644
      * @param  array/Object $order_user (default: array()) Specific user's data.
645
-     * @return bool|int
645
+     * @return boolean|string
646 646
      */
647 647
     public function woocommerce_course_update ( $course_id = 0, $order_user = array()  ) {
648 648
         global $current_user;
@@ -1241,7 +1241,7 @@  discard block
 block discarded – undo
1241 1241
      *
1242 1242
      * @since 1.4.5
1243 1243
      * @access public
1244
-     * @param mixed $image_size
1244
+     * @param string $image_size
1245 1245
      * @return string
1246 1246
      */
1247 1247
     public function get_image_size( $image_size ) {
Please login to merge, or discard this patch.
includes/class-sensei-notices.php 1 patch
Doc Comments   -8 removed lines patch added patch discarded remove patch
@@ -33,10 +33,6 @@  discard block
 block discarded – undo
33 33
 	* 
34 34
 	*
35 35
 	* 
36
-	* @param string $message 
37
-	* @param string $type defaults to alert options( alert, tick , download , info   )
38
-	*
39
-	* @return void
40 36
 	*/
41 37
 
42 38
 	public function add_notice( $content ,  $type = 'alert'   ){
@@ -47,10 +43,6 @@  discard block
 block discarded – undo
47 43
 	/**
48 44
 	*  Output all notices added 
49 45
 	* 
50
-	* @param string $message 
51
-	* @param string $type
52
-	*
53
-	* @return void
54 46
 	*/
55 47
 
56 48
 	public function print_notices(){
Please login to merge, or discard this patch.