Skip to content

Commit

Permalink
Fix Psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep committed Jan 10, 2025
1 parent 099c3d0 commit 8dfd7b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions config/psalm/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@
<InvalidArgument occurrences="1">
<code>'course-category'</code>
</InvalidArgument>
<PossibleRawObjectIteration occurrences="1">
<code>$cats</code>
</PossibleRawObjectIteration>
<PossiblyFalseArgument occurrences="6">
<code>$name</code>
<code>$post_id</code>
Expand All @@ -201,9 +198,6 @@
<PossiblyFalseReference occurrences="1">
<code>is_enrolled</code>
</PossiblyFalseReference>
<PossiblyInvalidIterator occurrences="1">
<code>$cats</code>
</PossiblyInvalidIterator>
<PossiblyInvalidMethodCall occurrences="1">
<code>get_provider_results</code>
</PossiblyInvalidMethodCall>
Expand Down
4 changes: 4 additions & 0 deletions includes/admin/class-sensei-learners-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public function get_lesson_id() {
* @return array $columns, the array of columns to use with the table
*/
public function get_columns() {
$columns = array();

switch ( $this->view ) {
case 'learners':
Expand Down Expand Up @@ -935,6 +936,8 @@ private function is_manually_enrolled( $user_id ) {
* @return void
*/
public function no_items() {
$text = '';

switch ( $this->view ) {
case 'learners':
$text = __( 'No students found.', 'sensei-lms' );
Expand Down Expand Up @@ -1207,6 +1210,7 @@ public function add_learners_box() {
* @return string $text
*/
public function search_button() {
$text = '';

switch ( $this->view ) {
case 'learners':
Expand Down

0 comments on commit 8dfd7b9

Please sign in to comment.