Skip to content

Commit 215573f

Browse files
committed
Minor: Format code
1 parent 3262b91 commit 215573f

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

assets/vue/views/course/CourseHome.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ async function changeVisibility(tool) {
488488
489489
async function onClickShowAll() {
490490
try {
491-
await baseService.post(`/r/course_tool/links/change_visibility/show?cid=${course.value.id}&sid=${session.value?.id}`)
491+
await baseService.post(
492+
`/r/course_tool/links/change_visibility/show?cid=${course.value.id}&sid=${session.value?.id}`,
493+
)
492494
tools.value.forEach((tool) => setToolVisibility(tool, 2))
493495
} catch (error) {
494496
console.log(error)
@@ -497,7 +499,9 @@ async function onClickShowAll() {
497499
498500
async function onClickHideAll() {
499501
try {
500-
await baseService.post(`/r/course_tool/links/change_visibility/hide?cid=${course.value.id}&sid=${session.value?.id}`)
502+
await baseService.post(
503+
`/r/course_tool/links/change_visibility/hide?cid=${course.value.id}&sid=${session.value?.id}`,
504+
)
501505
tools.value.forEach((tool) => setToolVisibility(tool, 0))
502506
} catch (error) {
503507
console.log(error)
@@ -539,7 +543,6 @@ async function updateDisplayOrder(htmlItem, newIndex) {
539543
540544
const { isAllowedToEdit } = useIsAllowedToEdit()
541545
542-
543546
async function enforceCourseLegalAgreement() {
544547
if (!course.value?.id) {
545548
return

src/CoreBundle/Controller/SessionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
use BuyCoursesPlugin;
1010
use Chamilo\CoreBundle\Component\Essence\SafeEssenceHttpClient;
1111
use Chamilo\CoreBundle\Entity\AccessUrlRelUser;
12-
use Chamilo\CoreBundle\Entity\UserAuthSource;
1312
use Chamilo\CoreBundle\Entity\ExtraField;
1413
use Chamilo\CoreBundle\Entity\SequenceResource;
1514
use Chamilo\CoreBundle\Entity\Session;
1615
use Chamilo\CoreBundle\Entity\SessionRelCourse;
1716
use Chamilo\CoreBundle\Entity\SessionRelUser;
1817
use Chamilo\CoreBundle\Entity\Tag;
1918
use Chamilo\CoreBundle\Entity\User;
19+
use Chamilo\CoreBundle\Entity\UserAuthSource;
2020
use Chamilo\CoreBundle\Framework\Container;
2121
use Chamilo\CoreBundle\Helpers\AccessUrlHelper;
2222
use Chamilo\CoreBundle\Helpers\MessageHelper;

src/CoreBundle/EventSubscriber/InstallDbGuardSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function onKernelRequest(RequestEvent $event): void
118118
// table exists and has rows (= migration is in progress or failed).
119119
try {
120120
$migrationCount = $this->connection->fetchOne(
121-
"SELECT COUNT(*) FROM version"
121+
'SELECT COUNT(*) FROM version'
122122
);
123123
if ($migrationCount > 0) {
124124
// Migration has started (or is running) – allow the request

src/CoreBundle/Helpers/ThemeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public function getPreferredLogoUrl(string $type = 'header', bool $absoluteUrl =
270270
$visual = $this->getVisualTheme();
271271

272272
// 1) Look for any logo variant in the active theme first.
273-
if ($visual !== self::DEFAULT_THEME) {
273+
if (self::DEFAULT_THEME !== $visual) {
274274
foreach ($emailCandidates as $relPath) {
275275
try {
276276
if ($this->filesystem->fileExists($visual.DIRECTORY_SEPARATOR.$relPath)) {

0 commit comments

Comments
 (0)