wip: introduce TypeFactorySubstitute #733
ci.yml
on: push
Code Quality
3m 49s
Matrix: Build PHP/TYPO3
Annotations
9 errors and 10 warnings
Code Quality
Process completed with exit code 2.
|
Code Quality
Process completed with exit code 2.
|
Code Quality:
Classes/Testing/TypeFactorySubstitute.php#L28
Instanceof between string and Brotkrueml\Schema\Core\Model\TypeInterface will always evaluate to false.
|
Code Quality:
Classes/Testing/TypeFactorySubstitute.php#L32
Unreachable statement - code above always terminates.
|
Code Quality:
Classes/Testing/TypeFactorySubstitute.php#L51
Parameter #1 $types of method Brotkrueml\Schema\Testing\TypeFactorySubstitute::createMultiple() expects list<string>, non-empty-array<int|string, string> given.
|
Code Quality:
Classes/Testing/TypeFactorySubstitute.php#L54
Method Brotkrueml\Schema\Testing\TypeFactorySubstitute::createSingle() has parameter $type with no type specified.
|
Code Quality:
Classes/Testing/TypeFactorySubstitute.php#L57
Method Brotkrueml\Schema\Testing\TypeFactorySubstitute::createSingle() should return Brotkrueml\Schema\Core\Model\TypeInterface but returns object.
|
Code Quality:
Classes/Type/TypeFactory.php#L34
Parameter #1 $types of method Brotkrueml\Schema\Type\TypeFactory::createMultiple() expects list<string>, non-empty-array<int|string, string> given.
|
Code Quality
Process completed with exit code 2.
|
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
|