Skip to content

Commit b2e808a

Browse files
committed
Minor: Format code
1 parent 66d7072 commit b2e808a

File tree

17 files changed

+128
-136
lines changed

17 files changed

+128
-136
lines changed

main/auth/external_login/facebook.inc.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ function facebookConnect()
171171
/**
172172
* Get facebook login url for the platform.
173173
*
174-
* @return string
175174
* @throws FacebookSDKException
176175
*/
177176
function facebookGetLoginUrl(): string

main/auth/external_login/functions.inc.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -166,25 +166,25 @@ function external_add_user($u)
166166
* new_user array.
167167
*
168168
* @param array $new_user associative array with the value to upgrade
169-
* WARNING user_id key is MANDATORY
170-
* Possible keys are :
171-
* - firstname
172-
* - lastname
173-
* - username
174-
* - auth_source
175-
* - email
176-
* - status
177-
* - official_code
178-
* - phone
179-
* - picture_uri
180-
* - expiration_date
181-
* - active
182-
* - creator_id
183-
* - hr_dept_id
184-
* - extra : array of custom fields
185-
* - language
186-
* - courses : string of all courses code separated by '|'
187-
* - admin : boolean
169+
* WARNING user_id key is MANDATORY
170+
* Possible keys are :
171+
* - firstname
172+
* - lastname
173+
* - username
174+
* - auth_source
175+
* - email
176+
* - status
177+
* - official_code
178+
* - phone
179+
* - picture_uri
180+
* - expiration_date
181+
* - active
182+
* - creator_id
183+
* - hr_dept_id
184+
* - extra : array of custom fields
185+
* - language
186+
* - courses : string of all courses code separated by '|'
187+
* - admin : boolean
188188
*
189189
* @author ndiechburg <[email protected]>
190190
* */

main/exercise/export/aiken/aiken_import.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function generateAikenForm()
7070
if ($hasSingleApi) {
7171
$apiName = $availableApis[$configuredApi] ?? $configuredApi;
7272
$form->addHtml('<div style="margin-bottom: 10px; font-size: 14px; color: #555;">'
73-
. sprintf(get_lang('UsingAIProviderX'), '<strong>'.htmlspecialchars($apiName).'</strong>').'</div>');
73+
.sprintf(get_lang('UsingAIProviderX'), '<strong>'.htmlspecialchars($apiName).'</strong>').'</div>');
7474
}
7575

7676
$form->addElement('text', 'quiz_name', get_lang('QuestionsTopic'));
@@ -105,7 +105,7 @@ function generateAikenForm()
105105
var quizName = $("[name=\'quiz_name\']").val();
106106
var nroQ = parseInt($("[name=\'nro_questions\']").val());
107107
var qType = $("[name=\'question_type\']").val();'
108-
. (!$hasSingleApi ? 'var provider = $("[name=\'ai_provider\']").val();' : 'var provider = "' . $configuredApi . '";') .
108+
.(!$hasSingleApi ? 'var provider = $("[name=\'ai_provider\']").val();' : 'var provider = "'.$configuredApi.'";').
109109
'var valid = (quizName != \'\' && nroQ > 0);
110110
if (valid) {
111111
btnGenerate.attr("disabled", true);

main/inc/lib/Compilatio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function getDoc(string $documentId): array
208208
if (isset($dataDocument['analyses'][$anasim]['state'])) {
209209
$documentInfo['analysis_status'] = $dataDocument['analyses'][$anasim]['state'];
210210
}
211-
211+
212212
if (isset($dataDocument['light_reports'][$anasim]['scores']['global_score_percent'])) {
213213
$documentInfo['report_percent'] = $dataDocument['light_reports'][$anasim]['scores']['global_score_percent'];
214214
}

main/inc/lib/api.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4033,7 +4033,7 @@ function api_not_allowed(
40334033
// Check if a custom file (login.tpl) exists for custompages included overrides
40344034
if ((!isset($user_id) || api_is_anonymous()) && CustomPages::enabled()) {
40354035
$customLoginTemplate = Template::findTemplateFilePath('custompage/login.tpl');
4036-
if (file_exists(api_get_path(SYS_TEMPLATE_PATH) . $customLoginTemplate)) {
4036+
if (file_exists(api_get_path(SYS_TEMPLATE_PATH).$customLoginTemplate)) {
40374037
if (empty($_SESSION['request_uri'])) {
40384038
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
40394039
}

main/inc/lib/formvalidator/Element/HtmlEditor.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ public function buildEditor($style = false)
112112
return $result;
113113
}
114114

115-
/**
116-
* @return string|null
117-
*/
118115
public function getValue(): ?string
119116
{
120117
return RemoveOnAttributes::filter($this->_value);

main/inc/lib/glossary.lib.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,11 @@ public static function get_glossary_term_by_glossary_name($name)
132132
* This functions stores the glossary in the database.
133133
*
134134
* @param array $values Array of title + description (name => $title, description => $comment)
135-
* @param bool $showMessage
136-
*
137-
* @return bool|int Term id on success, false on failure
138135
*
139136
* @throws \Doctrine\ORM\ORMException
140137
* @throws \Doctrine\ORM\OptimisticLockException
138+
*
139+
* @return bool|int Term id on success, false on failure
141140
*/
142141
public static function save_glossary(array $values, bool $showMessage = true)
143142
{
@@ -170,7 +169,7 @@ public static function save_glossary(array $values, bool $showMessage = true)
170169
->setDescription($values['description'] ?? "")
171170
->setDisplayOrder($max_glossary_item + 1)
172171
->setSessionId($session_id);
173-
;
172+
174173
Database::getManager()->persist($glossary);
175174
Database::getManager()->flush();
176175

main/lp/LpAiHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function aiHelperForm()
7474
var wordsCount = parseInt($("[name=\'words_count\']").val());
7575
var addTests = $("#add-lp-quiz").is(":checked");
7676
var nroQuestions = parseInt($("[name=\'nro_questions\']").val());
77-
var provider = "' . $configuredApi . '";
77+
var provider = "'.$configuredApi.'";
7878
7979
if (lpName && nroItems > 0 && wordsCount > 0) {
8080
if (addTests && (nroQuestions <= 0 || nroQuestions > 5)) {

main/lp/learnpath.class.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4860,12 +4860,8 @@ public static function toggleCategoryPublish($id, $setVisibility = 1)
48604860
/**
48614861
* Check if the learnpath category is visible for a user.
48624862
*
4863-
* @param CLpCategory|null $category
4864-
* @param User $user
48654863
* @param int $courseId
48664864
* @param int $sessionId
4867-
*
4868-
* @return bool
48694865
*/
48704866
public static function categoryIsVisibleForStudent(
48714867
?CLpCategory $category,

main/session/resume_session.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@
370370
$valueA = strtotime($a['registered_at']);
371371
$valueB = strtotime($b['registered_at']);
372372
}
373+
373374
return $sortOrder === SORT_ASC ? $valueA <=> $valueB : $valueB <=> $valueA;
374375
});
375376

0 commit comments

Comments
 (0)