Skip to content

Fix CS

Fix CS #2585

Triggered via push December 5, 2023 18:56
Status Failure
Total duration 2m 17s
Artifacts
run  /  Generate test matrix
2s
run / Generate test matrix
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Lint symfony container
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / Lint twig files
Matrix: run / Lint XLIFF files
Matrix: run / Lint YML files
Matrix: run / tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
run / Lint symfony container (8.3)
Process completed with exit code 1.
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L60
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return new Response('', Response::HTTP_NO_CONTENT); } $parameters = ['context' => $blockContext, 'settings' => $blockContext->getSettings(), 'block' => $blockContext->getBlock()]; - return $this->renderResponse($blockContext->getTemplate(), $parameters, $response)->setTtl(0)->setPrivate(); + return $this->renderResponse($blockContext->getTemplate(), $parameters, $response)->setTtl(-1)->setPrivate(); } public function configureCreateForm(FormMapper $form, BlockInterface $block) : void {
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L60
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return new Response('', Response::HTTP_NO_CONTENT); } $parameters = ['context' => $blockContext, 'settings' => $blockContext->getSettings(), 'block' => $blockContext->getBlock()]; - return $this->renderResponse($blockContext->getTemplate(), $parameters, $response)->setTtl(0)->setPrivate(); + return $this->renderResponse($blockContext->getTemplate(), $parameters, $response)->setTtl(1)->setPrivate(); } public function configureCreateForm(FormMapper $form, BlockInterface $block) : void {
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L72
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function configureEditForm(FormMapper $form, BlockInterface $block) : void { - $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); + $form->add('settings', ImmutableArrayType::class, ['translation_domain' => 'NucleosGDPRBundle']); } public function configureSettings(OptionsResolver $resolver) : void {
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L73
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function configureEditForm(FormMapper $form, BlockInterface $block) : void { - $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); + $form->add('settings', ImmutableArrayType::class, ['keys' => [['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); } public function configureSettings(OptionsResolver $resolver) : void {
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L74
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function configureEditForm(FormMapper $form, BlockInterface $block) : void { - $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); + $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); } public function configureSettings(OptionsResolver $resolver) : void {
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L74
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function configureEditForm(FormMapper $form, BlockInterface $block) : void { - $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); + $form->add('settings', ImmutableArrayType::class, ['keys' => [[TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); } public function configureSettings(OptionsResolver $resolver) : void {
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L76
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ } public function configureEditForm(FormMapper $form, BlockInterface $block) : void { - $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); + $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => true]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); } public function configureSettings(OptionsResolver $resolver) : void {
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L78
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function configureEditForm(FormMapper $form, BlockInterface $block) : void { - $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); + $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); } public function configureSettings(OptionsResolver $resolver) : void {
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L78
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function configureEditForm(FormMapper $form, BlockInterface $block) : void { - $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); + $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], [UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); } public function configureSettings(OptionsResolver $resolver) : void {
run / Mutation Tests (8.3): src/Block/Service/GDPRInformationBlockService.php#L80
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ } public function configureEditForm(FormMapper $form, BlockInterface $block) : void { - $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => false]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); + $form->add('settings', ImmutableArrayType::class, ['keys' => [['text', TextType::class, ['label' => 'form.label_text', 'required' => false]], ['url', UrlType::class, ['label' => 'form.label_url', 'required' => true]], ['position', ChoiceType::class, ['label' => 'form.label_position', 'choices' => ['form.choice_top' => 'top', 'form.choice_fixedtop' => 'fixedtop', 'form.choice_bottom' => 'bottom', 'form.choice_block' => 'block']]]], 'translation_domain' => 'NucleosGDPRBundle']); } public function configureSettings(OptionsResolver $resolver) : void {