Skip to content

Fix CS

Fix CS #1696

Triggered via push December 3, 2023 15:00
Status Success
Total duration 2m 51s
Artifacts
run  /  Generate test matrix
4s
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

10 warnings
run / Mutation Tests (8.3): src/Extension/DownloadTypeExtension.php#L33
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ { public function configureOptions(OptionsResolver $resolver) : void { - $resolver->setDefaults(['download_path' => null, 'download_text' => 'link_download'])->setAllowedTypes('download_path', ['null', 'string'])->setAllowedTypes('download_text', ['null', 'string']); + $resolver->setDefaults(['download_path' => null, 'download_text' => 'link_download'])->setAllowedTypes('download_path', ['null', 'string'])->setAllowedTypes('download_text', ['string']); } public function buildForm(FormBuilderInterface $builder, array $options) : void {
run / Mutation Tests (8.3): src/Extension/DownloadTypeExtension.php#L46
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ } public function buildView(FormView $view, FormInterface $form, array $options) : void { - if (null !== $options['download_path'] && null !== $form->getParent()) { + if (null !== $options['download_path'] || null !== $form->getParent()) { $parentData = $form->getParent()->getData(); if (null !== $parentData) { $propertyAccessor = PropertyAccess::createPropertyAccessor();
run / Mutation Tests (8.3): src/Extension/ImageTypeExtension.php#L27
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { public function configureOptions(OptionsResolver $resolver) : void { - $resolver->setDefaults(['image_path' => null])->setAllowedTypes('image_path', ['null', 'string']); + } public function buildForm(FormBuilderInterface $builder, array $options) : void {
run / Mutation Tests (8.3): src/Extension/ImageTypeExtension.php#L44
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ } public function buildView(FormView $view, FormInterface $form, array $options) : void { - if (null !== $options['image_path'] && null !== $form->getParent()) { + if (null !== $options['image_path'] || null !== $form->getParent()) { $parentData = $form->getParent()->getData(); if (null !== $parentData) { $propertyAccessor = PropertyAccess::createPropertyAccessor();
run / Mutation Tests (8.3): src/Handler/AbstractFormHandler.php#L61
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ /** * Executes before form validating and processing is started. */ - protected function preProcess(FormInterface $form, Request $request) : ?Response + private function preProcess(FormInterface $form, Request $request) : ?Response { return null; }
run / Mutation Tests (8.3): src/Handler/AbstractFormHandler.php#L69
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ /** * Executes after preprocessing and before form processing is started. */ - protected function validate(FormInterface $form, Request $request) : ?Response + private function validate(FormInterface $form, Request $request) : ?Response { return null; }
run / Mutation Tests (8.3): src/Handler/AbstractFormHandler.php#L82
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ /** * Executes after form processing is finished and filters response. */ - protected function postProcess(FormInterface $form, Request $request, Response $response) : ?Response + private function postProcess(FormInterface $form, Request $request, Response $response) : ?Response { return $response; } }
run / Mutation Tests (8.3): src/Model/BatchTime.php#L39
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } public function setDay(?int $day) : void { - $this->day = $day ?: 0; + $this->day = $day ?: -1; } public function getTime() : ?DateTimeInterface {
run / Mutation Tests (8.3): src/Model/BatchTime.php#L39
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } public function setDay(?int $day) : void { - $this->day = $day ?: 0; + $this->day = $day ?: 1; } public function getTime() : ?DateTimeInterface {
run / Mutation Tests (8.3): src/Model/BatchTime.php#L57
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ { $seconds = $this->getDay() * 86400; if (null !== $this->getTime()) { - $time = clone $this->getTime(); + $time = $this->getTime(); $seconds += (int) $time->format('U'); } return $seconds; } }