Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
merkushin committed Sep 29, 2023
1 parent 9cba627 commit 2b41a9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-sensei-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ public static function user_complete_course( $course_id = 0, $user_id = 0, $trig
// ...if all lessons 'passed' then update the course status to complete
// The below checks if a lesson is fully completed, though maybe should be Utils::user_completed_lesson()
$lesson_status_args['post__in'] = $lesson_ids;
$lesson_progress_args = array(
$lesson_progress_args = array(
'user_id' => $user_id,
'lesson_id' => $lesson_ids,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ private function assert_comments_based_course_progress( Course_Progress_Interfac
*
* @param array $args The arguments.
* @return Course_Progress_Interface[] The course progress.
* @throws \InvalidArgumentException If the order by argument is not supported.
*/
public function find( array $args ): array {
$comments_args = array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ private function assert_comments_based_lesson_progress( Lesson_Progress_Interfac
*
* @param array $args The arguments.
* @return Lesson_Progress_Interface[]
* @throws InvalidArgumentException When the ordering is not supported.
*/
public function find( array $args ): array {
$comments_args = array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ private function assert_comments_based_quiz_progress( Quiz_Progress_Interface $q
*
* @param array $args The arguments.
* @return Quiz_Progress_Interface[] The course progress.
* @throws \InvalidArgumentException When ordering is not supported.
*/
public function find( array $args ): array {
$comments_args = array(
Expand Down

0 comments on commit 2b41a9d

Please sign in to comment.