Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codechecker fixes #759

Merged
merged 3 commits into from
Jul 28, 2024

Conversation

lucaboesch
Copy link
Contributor

Adhere to more recent Moodle Coding Guidelines.

* @param string $encoding The encoding of the csv file.
* @param string $delimiter The specified delimiter for the file.
* @param string $importid The id of the csv import.
* @param array $mappingdata The mapping data from the import form.
* @param bool $useprogressbar Whether progress bar should be displayed, to avoid html output on CLI.
*/
public function __construct($text = null, $att, $encoding = null, $delimiter = null, $importid = 0,
public function __construct($att, $text = null, $encoding = null, $delimiter = null, $importid = 0,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you change the order of these params on purpose? - this doen'st seem to be a codechecker change?

$form = null;
if (optional_param('needsconfirm', 0, PARAM_BOOL)) {
$form = new \mod_attendance\form\import\marksessions($url->out(false), $formparams);
} else if (optional_param('confirm', 0, PARAM_BOOL)) {
$importer = new \mod_attendance\import\marksessions(null, $att, null, null, $importid);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like here'e the matching change for the function parameter order change - I think we should probably do this as it's own commit rather than bundling into the "codechecker fixes" if there's a good reason we should do this.

Realized the order of the paramaters so that no mandatory
follows an optional one.
@lucaboesch
Copy link
Contributor Author

Well spotted, @danmarsden.
I've added an individual commit for it.
Note that the catalyst automation seems still using actions/checkout@v3 instead of actions/checkout@v4.

Best,
Luca

@danmarsden danmarsden merged commit 01bfb89 into danmarsden:MOODLE_404_STABLE Jul 28, 2024
7 checks passed
@danmarsden
Copy link
Owner

cool thanks! - merged it in.

@lucaboesch lucaboesch deleted the codecheckerfixes branch July 29, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants