Skip to content

Commit

Permalink
fix strings
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Feb 1, 2025
1 parent 48efd53 commit 0cb3c4c
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions classes/filters/types/weekdays.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@

namespace local_wunderbyte_table\filters\types;
use local_wunderbyte_table\filters\base;
use moodle_exception;

/**
* Filter class with automatically supports the english weekdays as filter options.
* @package local_wunderbyte_table
*/
class weekdays extends base {

/**
* Set the column which should be filtered and possibly localize it.
* @param string $columnidentifier
Expand All @@ -39,19 +39,21 @@ class weekdays extends base {
* @param string $secondcolumnlocalized
* @return void
*/
public function __construct(string $columnidentifier,
string $localizedstring = '',
string $secondcolumnidentifier = '',
string $secondcolumnlocalized = '') {
public function __construct(
string $columnidentifier,
string $localizedstring = '',
string $secondcolumnidentifier = '',
string $secondcolumnlocalized = ''
) {

$this->options = [
'monday' => get_string('monday', 'mod_booking'),
'tuesday' => get_string('tuesday', 'mod_booking'),
'wednesday' => get_string('wednesday', 'mod_booking'),
'thursday' => get_string('thursday', 'mod_booking'),
'friday' => get_string('friday', 'mod_booking'),
'saturday' => get_string('saturday', 'mod_booking'),
'sunday' => get_string('sunday', 'mod_booking'),
'monday' => get_string('monday', 'local_wunderbyte_table'),
'tuesday' => get_string('tuesday', 'local_wunderbyte_table'),
'wednesday' => get_string('wednesday', 'local_wunderbyte_table'),
'thursday' => get_string('thursday', 'local_wunderbyte_table'),
'friday' => get_string('friday', 'local_wunderbyte_table'),
'saturday' => get_string('saturday', 'local_wunderbyte_table'),
'sunday' => get_string('sunday', 'local_wunderbyte_table'),
];

$this->columnidentifier = $columnidentifier;
Expand Down Expand Up @@ -92,7 +94,8 @@ public function add_filter(array &$filter, bool $invisible = false) {
'local_wunderbyte_table',
'',
$this->columnidentifier,
'Every column can have only one filter applied');
'Every column can have only one filter applied'
);
}
}

Expand Down

0 comments on commit 0cb3c4c

Please sign in to comment.