chore: adjust parameter name to align with abstract class method #840
ci.yml
on: push
Code Quality
5m 51s
Matrix: Build PHP/TYPO3
Annotations
10 warnings
Code Quality:
Classes/EventListener/AddBreadcrumbList.php#L49
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
@@ @@
if (!$this->configuration->automaticBreadcrumbSchemaGeneration) {
return;
}
- if ($event->isBreadcrumbListAlreadyDefined() && $this->configuration->allowOnlyOneBreadcrumbList) {
+ if (!$event->isBreadcrumbListAlreadyDefined() && $this->configuration->allowOnlyOneBreadcrumbList) {
return;
}
$doktypesToExclude = \array_merge(self::DEFAULT_DOKTYPES_TO_EXCLUDE, $this->configuration->automaticBreadcrumbExcludeAdditionalDoktypes);
|
Code Quality:
Classes/EventListener/AddBreadcrumbList.php#L49
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
if (!$this->configuration->automaticBreadcrumbSchemaGeneration) {
return;
}
- if ($event->isBreadcrumbListAlreadyDefined() && $this->configuration->allowOnlyOneBreadcrumbList) {
+ if ($event->isBreadcrumbListAlreadyDefined() || $this->configuration->allowOnlyOneBreadcrumbList) {
return;
}
$doktypesToExclude = \array_merge(self::DEFAULT_DOKTYPES_TO_EXCLUDE, $this->configuration->automaticBreadcrumbExcludeAdditionalDoktypes);
|
Code Quality:
Classes/Core/Model/MultipleType.php#L75
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
foreach ($types as $type) {
$propertyNames = \array_merge($propertyNames, $type->getPropertyNames());
}
- \sort($propertyNames);
+
$this->properties = \array_fill_keys($propertyNames, null);
}
/**
|
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
|
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:' . '/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 "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#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/SchemaModule.php#L51
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;
}
|