Skip to content

Update tools

Update tools #74

Triggered via pull request December 3, 2023 14:22
Status Success
Total duration 5m 28s
Artifacts

continuous-integration.yml

on: pull_request
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

10 warnings
run / Mutation Tests (8.3): src/Action/SitemapXMLAction.php#L30
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $response = new Response($this->generator->toXML()); $response->headers->set('Content-Type', 'text/xml'); - $response->setPublic(); + return $response; } }
run / Mutation Tests (8.3): src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L39
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ } public final function execute(BlockContextInterface $blockContext, ?Response $response = null) : Response { - $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext]; + $responseSettings = ['menu' > $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext]; $template = $blockContext->getTemplate(); if ('private' === $blockContext->getSetting('cache_policy')) { return $this->renderResponse($template, $responseSettings, $response)->setTtl(0)->setPrivate();
run / Mutation Tests (8.3): src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L40
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ } public final function execute(BlockContextInterface $blockContext, ?Response $response = null) : Response { - $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext]; + $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' > $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext]; $template = $blockContext->getTemplate(); if ('private' === $blockContext->getSetting('cache_policy')) { return $this->renderResponse($template, $responseSettings, $response)->setTtl(0)->setPrivate();
run / Mutation Tests (8.3): src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L41
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ } public final function execute(BlockContextInterface $blockContext, ?Response $response = null) : Response { - $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext]; + $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' > $blockContext->getBlock(), 'context' => $blockContext]; $template = $blockContext->getTemplate(); if ('private' === $blockContext->getSetting('cache_policy')) { return $this->renderResponse($template, $responseSettings, $response)->setTtl(0)->setPrivate();
run / Mutation Tests (8.3): src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L47
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ { $responseSettings = ['menu' => $this->getMenu($blockContext), 'menu_options' => $this->getMenuOptions($blockContext->getSettings()), 'block' => $blockContext->getBlock(), 'context' => $blockContext]; $template = $blockContext->getTemplate(); - if ('private' === $blockContext->getSetting('cache_policy')) { + if ('private' !== $blockContext->getSetting('cache_policy')) { return $this->renderResponse($template, $responseSettings, $response)->setTtl(0)->setPrivate(); } return $this->renderResponse($template, $responseSettings, $response);
run / Mutation Tests (8.3): src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L75
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ { $resolver->setDefaults(['cache_policy' => 'public', 'template' => '@SonataBlock/Block/block_core_menu.html.twig', 'safe_labels' => false, 'current_class' => 'active', 'first_class' => false, 'last_class' => false, 'current_uri' => null, 'menu_class' => 'list-group', 'children_class' => 'list-group-item', 'menu_template' => '@NucleosSeo/Block/breadcrumb.html.twig', 'include_homepage_link' => true, 'context' => null]); } - protected function getMenu(BlockContextInterface $blockContext) : ItemInterface + private function getMenu(BlockContextInterface $blockContext) : ItemInterface { $settings = $blockContext->getSettings(); $menu = $this->factory->createItem('breadcrumb');
run / Mutation Tests (8.3): src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L80
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $settings = $blockContext->getSettings(); $menu = $this->factory->createItem('breadcrumb'); - $menu->setChildrenAttribute('class', 'breadcrumb'); + $menu->setCurrent(true); $menu->setUri($settings['current_uri']); if (true === $settings['include_homepage_link']) {
run / Mutation Tests (8.3): src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L81
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ $settings = $blockContext->getSettings(); $menu = $this->factory->createItem('breadcrumb'); $menu->setChildrenAttribute('class', 'breadcrumb'); - $menu->setCurrent(true); + $menu->setCurrent(false); $menu->setUri($settings['current_uri']); if (true === $settings['include_homepage_link']) { $menu->addChild('nucleos_seo_homepage_breadcrumb', ['uri' => '/']);
run / Mutation Tests (8.3): src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L81
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $settings = $blockContext->getSettings(); $menu = $this->factory->createItem('breadcrumb'); $menu->setChildrenAttribute('class', 'breadcrumb'); - $menu->setCurrent(true); + $menu->setUri($settings['current_uri']); if (true === $settings['include_homepage_link']) { $menu->addChild('nucleos_seo_homepage_breadcrumb', ['uri' => '/']);
run / Mutation Tests (8.3): src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php#L82
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $menu = $this->factory->createItem('breadcrumb'); $menu->setChildrenAttribute('class', 'breadcrumb'); $menu->setCurrent(true); - $menu->setUri($settings['current_uri']); + if (true === $settings['include_homepage_link']) { $menu->addChild('nucleos_seo_homepage_breadcrumb', ['uri' => '/']); }