Skip to content

chore: decouple AbstractType and MultipleType #736

chore: decouple AbstractType and MultipleType

chore: decouple AbstractType and MultipleType #736

Triggered via push February 18, 2025 19:57
Status Success
Total duration 4m 49s
Artifacts

ci.yml

on: push
Matrix: Build PHP/TYPO3
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Code Quality: Classes/AdminPanel/SchemaModule.php#L29
Escaped Mutant for Mutator "Concat": @@ @@ { public function __construct(private readonly PagesCacheService $pagesCacheService) { - if (\is_callable(\get_parent_class($this) . '::__construct')) { + if (\is_callable('::__construct' . \get_parent_class($this))) { // Call to parent constructor can be removed when minimum TYPO3 version is set to v12 LTS // @phpstan-ignore-next-line Call to an undefined static method TYPO3\CMS\Adminpanel\ModuleApi\AbstractModule::__construct() parent::__construct();
Code Quality: Classes/AdminPanel/SchemaModule.php#L29
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ { public function __construct(private readonly PagesCacheService $pagesCacheService) { - if (\is_callable(\get_parent_class($this) . '::__construct')) { + if (\is_callable('::__construct')) { // Call to parent constructor can be removed when minimum TYPO3 version is set to v12 LTS // @phpstan-ignore-next-line Call to an undefined static method TYPO3\CMS\Adminpanel\ModuleApi\AbstractModule::__construct() parent::__construct();
Code Quality: Classes/AdminPanel/SchemaModule.php#L29
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ { public function __construct(private readonly PagesCacheService $pagesCacheService) { - if (\is_callable(\get_parent_class($this) . '::__construct')) { + if (\is_callable(\get_parent_class($this))) { // Call to parent constructor can be removed when minimum TYPO3 version is set to v12 LTS // @phpstan-ignore-next-line Call to an undefined static method TYPO3\CMS\Adminpanel\ModuleApi\AbstractModule::__construct() parent::__construct();
Code Quality: Classes/AdminPanel/SchemaModule.php#L57
Escaped Mutant for Mutator "UnwrapStrReplace": @@ @@ $jsonLd = $this->pagesCacheService->getMarkupFromCache() ?? ''; $numberOfTypes = 0; if ($jsonLd !== '') { - $jsonLd = \str_replace(\explode('%s', Extension::JSONLD_TEMPLATE), '', $jsonLd); + $jsonLd = $jsonLd; $decodedJsonLd = \json_decode($jsonLd, true, flags: \JSON_THROW_ON_ERROR); $numberOfTypes = isset($decodedJsonLd['@graph']) ? \count($decodedJsonLd['@graph']) : 1; }
Code Quality: Classes/AdminPanel/TypesInformation.php#L79
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { /** @var StandaloneView $view */ $view = GeneralUtility::makeInstance(StandaloneView::class); - $view->setTemplatePathAndFilename('EXT:' . Extension::KEY . '/Resources/Private/Templates/AdminPanel/TypesInformation.html'); + return $view; } private function getLanguageService(): LanguageService
Code Quality: Classes/AdminPanel/TypesInformation.php#L80
Escaped Mutant for Mutator "Concat": @@ @@ { /** @var StandaloneView $view */ $view = GeneralUtility::makeInstance(StandaloneView::class); - $view->setTemplatePathAndFilename('EXT:' . Extension::KEY . '/Resources/Private/Templates/AdminPanel/TypesInformation.html'); + $view->setTemplatePathAndFilename(Extension::KEY . 'EXT:' . '/Resources/Private/Templates/AdminPanel/TypesInformation.html'); return $view; } private function getLanguageService(): LanguageService
Code Quality: Classes/AdminPanel/TypesInformation.php#L80
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ { /** @var StandaloneView $view */ $view = GeneralUtility::makeInstance(StandaloneView::class); - $view->setTemplatePathAndFilename('EXT:' . Extension::KEY . '/Resources/Private/Templates/AdminPanel/TypesInformation.html'); + $view->setTemplatePathAndFilename(Extension::KEY . '/Resources/Private/Templates/AdminPanel/TypesInformation.html'); return $view; } private function getLanguageService(): LanguageService
Code Quality: Classes/AdminPanel/TypesInformation.php#L80
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ { /** @var StandaloneView $view */ $view = GeneralUtility::makeInstance(StandaloneView::class); - $view->setTemplatePathAndFilename('EXT:' . Extension::KEY . '/Resources/Private/Templates/AdminPanel/TypesInformation.html'); + $view->setTemplatePathAndFilename('EXT:' . '/Resources/Private/Templates/AdminPanel/TypesInformation.html'); return $view; } private function getLanguageService(): LanguageService
Code Quality: Classes/AdminPanel/TypesInformation.php#L80
Escaped Mutant for Mutator "Concat": @@ @@ { /** @var StandaloneView $view */ $view = GeneralUtility::makeInstance(StandaloneView::class); - $view->setTemplatePathAndFilename('EXT:' . Extension::KEY . '/Resources/Private/Templates/AdminPanel/TypesInformation.html'); + $view->setTemplatePathAndFilename('EXT:' . '/Resources/Private/Templates/AdminPanel/TypesInformation.html' . Extension::KEY); return $view; } private function getLanguageService(): LanguageService
Code Quality: Classes/AdminPanel/TypesInformation.php#L80
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ { /** @var StandaloneView $view */ $view = GeneralUtility::makeInstance(StandaloneView::class); - $view->setTemplatePathAndFilename('EXT:' . Extension::KEY . '/Resources/Private/Templates/AdminPanel/TypesInformation.html'); + $view->setTemplatePathAndFilename('EXT:' . Extension::KEY); return $view; } private function getLanguageService(): LanguageService