-
Notifications
You must be signed in to change notification settings - Fork 156
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
Codechecker fixes #759
Conversation
* @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, |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
a4f124a
to
f9528d3
Compare
Realized the order of the paramaters so that no mandatory follows an optional one.
f9528d3
to
c1d0325
Compare
Well spotted, @danmarsden. Best, |
cool thanks! - merged it in. |
Adhere to more recent Moodle Coding Guidelines.