Skip to content

Commit

Permalink
Corrections in the code style
Browse files Browse the repository at this point in the history
Some corrections have been made to the code style to avoid the error in CS Fixer.
  • Loading branch information
ZallaxDev committed Oct 28, 2024
1 parent 658b34c commit c8a7750
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ public function buildLaunchParameters(
"tool_consumer_info_version" => ILIAS_VERSION,
"lis_result_sourcedid" => $token,
"lis_outcome_service_url" => self::getIliasHttpPath(
) . "/components/ILIAS/LTIConsumer/result.php?client_id=" . CLIENT_ID,
) . "/components/ILIAS/LTIConsumer/result.php?client_id=" . CLIENT_ID,
"role_scope_mentor" => ""
];

Expand Down Expand Up @@ -897,7 +897,7 @@ public function buildLaunchParametersLTI13(
"lis_result_sourcedid" => "",
//$token,
"lis_outcome_service_url" => self::getIliasHttpPath(
) . "/components/ILIAS/LTIConsumer/result.php?client_id=" . CLIENT_ID,
) . "/components/ILIAS/LTIConsumer/result.php?client_id=" . CLIENT_ID,
"role_scope_mentor" => ""
];

Expand All @@ -911,12 +911,12 @@ public function buildLaunchParametersLTI13(
if ($this->getProvider()->isGradeSynchronization()) {
$gradeservice = new ilLTIConsumerGradeService();
$launch_vars['custom_lineitem_url'] = self::getIliasHttpPath(
) . "/components/ILIAS/LTIConsumer/ltiservices.php/gradeservice/" . $contextId . "/lineitems/" . $this->id . "/lineitem";
) . "/components/ILIAS/LTIConsumer/ltiservices.php/gradeservice/" . $contextId . "/lineitems/" . $this->id . "/lineitem";

// ! Moodle as tool provider requires a custom_lineitems_url even though this should be optional in launch request, especially if only posting score scope is permitted by platform
// http://www.imsglobal.org/spec/lti-ags/v2p0#example-link-has-a-single-line-item-tool-can-only-post-score
$launch_vars['custom_lineitems_url'] = self::getIliasHttpPath(
) . "/components/ILIAS/LTIConsumer/ltiservices.php/gradeservice/" . $contextId . "/linetitems/";
) . "/components/ILIAS/LTIConsumer/ltiservices.php/gradeservice/" . $contextId . "/linetitems/";

$launch_vars['custom_ags_scopes'] = implode(",", $gradeservice->getPermittedScopes());
}
Expand Down

0 comments on commit c8a7750

Please sign in to comment.