From f73d6d6a478ef0558e9c37057ec72337b33078cf Mon Sep 17 00:00:00 2001 From: Karol Stelmaczonek Date: Thu, 3 Oct 2024 10:19:59 +0200 Subject: [PATCH] fix: code style --- models/classes/class.QtiTestService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/classes/class.QtiTestService.php b/models/classes/class.QtiTestService.php index 8df95684b..c5dc56eec 100644 --- a/models/classes/class.QtiTestService.php +++ b/models/classes/class.QtiTestService.php @@ -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'] ?? [],