Skip to content

Commit e0bc13d

Browse files
committed
Minor - format code
1 parent 2daf032 commit e0bc13d

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

main/inc/lib/certificate.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* For licensing terms, see /license.txt */
33
use Endroid\QrCode\ErrorCorrectionLevel;
44
use Endroid\QrCode\QrCode;
5+
56
/**
67
* Certificate Class
78
* Generate certificates based in the gradebook tool.
@@ -522,8 +523,10 @@ public function generateQRImage($text, $path)
522523
$qrCode->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]);
523524
$qrCode->setValidateResult(false);
524525
$qrCode->writeFile($path);
526+
525527
return true;
526528
}
529+
527530
return false;
528531
}
529532

main/inc/lib/course.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6168,7 +6168,7 @@ public static function addUserGroupMultiSelect(&$form, $alreadySelected, $addSho
61686168
$result[$content['value']] = $content['content'];
61696169
}
61706170

6171-
$multiple = $form->addElement(
6171+
$multiple = $form->addElement(
61726172
'advmultiselect',
61736173
'users',
61746174
get_lang('Users'),

main/inc/lib/sessionmanager.lib.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9537,6 +9537,18 @@ public static function isSessionFollowedByDrh($sessionId, $userId)
95379537
return Database::num_rows($result) > 0;
95389538
}
95399539

9540+
/**
9541+
* Add a warning message when session is read-only mode.
9542+
*/
9543+
public static function addFlashSessionReadOnly()
9544+
{
9545+
if (api_get_session_id() && !api_is_allowed_to_session_edit()) {
9546+
Display::addFlash(
9547+
Display::return_message(get_lang('SessionIsReadOnly'), 'warning')
9548+
);
9549+
}
9550+
}
9551+
95409552
/**
95419553
* @param int $id
95429554
*
@@ -9674,16 +9686,4 @@ private static function compareByCourse($listA, $listB)
96749686
return -1;
96759687
}
96769688
}
9677-
9678-
/**
9679-
* Add a warning message when session is read-only mode.
9680-
*/
9681-
public static function addFlashSessionReadOnly()
9682-
{
9683-
if (api_get_session_id() && !api_is_allowed_to_session_edit()) {
9684-
Display::addFlash(
9685-
Display::return_message(get_lang('SessionIsReadOnly'), 'warning')
9686-
);
9687-
}
9688-
}
96899689
}

plugin/zoom/lib/ZoomPlugin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,6 @@ public function getStartOrJoinMeetingURL($meeting)
930930
}
931931

932932
if (\Chamilo\PluginBundle\Zoom\API\Meeting::TYPE_INSTANT == $meeting->getMeetingInfoGet()->type) {
933-
934933
return $meeting->getMeetingInfoGet()->join_url;
935934
}
936935

plugin/zoom/start.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
$groupId = api_get_group_id();
5656
$groups = GroupManager::get_groups();
5757
if (!empty($groups)) {
58-
5958
$form = new FormValidator('group_filter');
6059
$groupList[0] = get_lang('Select');
6160
foreach ($groups as $groupData) {

0 commit comments

Comments
 (0)