Skip to content

Commit 3387a60

Browse files
committed
Minor: Format code
1 parent f9dd081 commit 3387a60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CoreBundle/Migrations/Schema/V200/Version20240509123200.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ public function up(Schema $schema): void
5757
foreach ($courses as $course) {
5858
foreach ($requiredTools as $toolName) {
5959
$ctool = $course->getTools()->filter(
60-
fn(CTool $ct) => $ct->getTool()->getTitle() === $toolName
60+
fn (CTool $ct) => $ct->getTool()->getTitle() === $toolName
6161
)->first() ?? null;
6262

6363
if (!$ctool) {
6464
$tool = $toolRepo->findOneBy(['title' => $toolName]);
6565
if ($tool) {
66-
$linkVisibility = ($toolName == 'course_setting' || $toolName == 'course_maintenance')
66+
$linkVisibility = ('course_setting' == $toolName || 'course_maintenance' == $toolName)
6767
? ResourceLink::VISIBILITY_DRAFT : ResourceLink::VISIBILITY_PUBLISHED;
6868

6969
$ctool = new CTool();

0 commit comments

Comments
 (0)