Skip to content

Commit

Permalink
Run perltidy on the code with the new version.
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrice1 committed Nov 21, 2024
1 parent a394260 commit 442e32f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
3 changes: 1 addition & 2 deletions lib/HardcopyRenderedProblem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ sub write_problem_tex {
$correctTeX .=
"\\item\n\$\\displaystyle "
. ($rh_result->{answers}{$_}{correct_ans_latex_string}
|| "\\text{$rh_result->{answers}{$_}{correct_ans}}")
. "\$\n";
|| "\\text{$rh_result->{answers}{$_}{correct_ans}}") . "\$\n";
}

$correctTeX .= "\\end{itemize}}\\par\n";
Expand Down
3 changes: 1 addition & 2 deletions lib/WeBWorK/Authen/LTIAdvantage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,7 @@ sub authenticate ($self) {
"Account creation blocked by block_lti_create_user setting. Did not create user $self->{user_id}.";
if ($ce->{debug_lti_parameters}) {
warn $c->maketext('Account creation is currently disabled in this course. '
. 'Please speak to your instructor or system administrator.')
. "\n";
. 'Please speak to your instructor or system administrator.') . "\n";
}
return 0;
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/ConfigValues.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ sub getConfigValues ($ce) {
@$configValues,
[
x('LTI'),
map { $LTIConfigValues->{$_} }
map { $LTIConfigValues->{$_} }
grep { defined $LTIConfigValues->{$_} } @{ $ce->{LTIConfigVariables} }
]
);
Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ async sub pre_header_initialize ($c) {

if ($setVersionNumber && !$c->{invalidSet} && $setID ne 'Undefined_Set') {
my @setVersionIDs = $db->listSetVersions($effectiveUserID, $setID);
my @setVersions = $db->getSetVersions(map { [ $effectiveUserID, $setID,, $_ ] } @setVersionIDs);
my @setVersions = $db->getSetVersions(map { [ $effectiveUserID, $setID, $_ ] } @setVersionIDs);
for (@setVersions) {
$totalNumVersions++;
$currentNumVersions++
Expand Down
7 changes: 3 additions & 4 deletions lib/WeBWorK/ContentGenerator/Hardcopy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1007,8 +1007,7 @@ async sub write_set_tex ($c, $FH, $TargetUser, $themeTree, $setID) {
{
print $FH '\\def\\webworkReducedScoringDate{'
. ($c->formatDateTime($MergedSet->{reduced_scoring_date}, $ce->{studentDateDisplayFormat}) =~
s/\x{202f}/ /gr)
. "}%\n";
s/\x{202f}/ /gr) . "}%\n";
}

# write set header (theme presetheader, then PG header, then theme postsetheader)
Expand Down Expand Up @@ -1181,10 +1180,10 @@ async sub write_problem_tex ($c, $FH, $TargetUser, $MergedSet, $themeTree, $prob
problemID => $MergedProblem->problem_id,
),
$MergedProblem->problem_id == 0
# link for a fake problem (like a header file)
# link for a fake problem (like a header file)
? (params =>
{ sourceFilePath => $MergedProblem->source_file, problemSeed => $MergedProblem->problem_seed })
# link for a real problem
# link for a real problem
: (),
);

Expand Down
6 changes: 3 additions & 3 deletions lib/WeBWorK/ContentGenerator/Instructor/UserList.pm
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ sub pre_header_initialize ($c) {
# Always have a definite sort order in case the first three sorts don't determine things.
$c->{sortedUserIDs} = [
map { $_->user_id }
sort {
$primarySortSub->()
sort {
$primarySortSub->()
|| $secondarySortSub->()
|| $ternarySortSub->()
|| byLastName()
|| byFirstName()
|| byUserID()
}
grep { $c->{visibleUserIDs}{ $_->user_id } } (values %allUsers)
grep { $c->{visibleUserIDs}{ $_->user_id } } (values %allUsers)
];

return;
Expand Down

0 comments on commit 442e32f

Please sign in to comment.