File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/CoreBundle/Migrations/Schema/V200 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,13 @@ public function up(Schema $schema): void
57
57
foreach ($ courses as $ course ) {
58
58
foreach ($ requiredTools as $ toolName ) {
59
59
$ ctool = $ course ->getTools ()->filter (
60
- fn (CTool $ ct ) => $ ct ->getTool ()->getTitle () === $ toolName
60
+ fn (CTool $ ct ) => $ ct ->getTool ()->getTitle () === $ toolName
61
61
)->first () ?? null ;
62
62
63
63
if (!$ ctool ) {
64
64
$ tool = $ toolRepo ->findOneBy (['title ' => $ toolName ]);
65
65
if ($ tool ) {
66
- $ linkVisibility = ($ toolName == 'course_setting ' || $ toolName == 'course_maintenance ' )
66
+ $ linkVisibility = ('course_setting ' == $ toolName || 'course_maintenance ' == $ toolName )
67
67
? ResourceLink::VISIBILITY_DRAFT : ResourceLink::VISIBILITY_PUBLISHED ;
68
68
69
69
$ ctool = new CTool ();
You can’t perform that action at this time.
0 commit comments