Skip to content

Commit

Permalink
fix: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol-Stelmaczonek authored and tikhanovichA committed Oct 4, 2024
1 parent 128ebe6 commit f73d6d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/classes/class.QtiTestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,9 @@ protected function importTest(
// Metadata will be set as property values.
$this->getMetadataImporter()->inject($qtiTestResource->getIdentifier(), $testResource);
//todo: fix taoSetup to be aware of containers. This is only workaround.
if ($this->getServiceManager()->getContainer()->has(MappedMetadataInjector::class) &&
$importMetadata
if (
$this->getServiceManager()->getContainer()->has(MappedMetadataInjector::class)
&& $importMetadata
) {
$this->getServiceManager()->getContainer()->get(MappedMetadataInjector::class)->inject(
$mappedProperties['testProperties'] ?? [],
Expand Down

0 comments on commit f73d6d6

Please sign in to comment.