Skip to content

Fix bagdes in README #294

Fix bagdes in README

Fix bagdes in README #294

Triggered via pull request May 26, 2024 06:37
Status Success
Total duration 5m 19s
Artifacts

continuous-integration.yml

on: pull_request
run  /  Generate test matrix
3s
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

23 warnings
run / Lint composer.json (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Coding Standards (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Mutation Tests (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L74
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function __invoke(Request $request): Response { - $this->admin->checkAccess('list'); + $filters = $request->query->all('filter'); // set the default context $context = $this->getContext($filters);
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L82
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ // set the default context $context = $this->getContext($filters); $rootCategory = null; - if (null !== $this->categoryManager) { + if (null === $this->categoryManager) { $rootCategory = $this->getRootCategoryForContext($context); } $datagrid = $this->admin->getDatagrid();
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L87
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $rootCategory = $this->getRootCategoryForContext($context); } $datagrid = $this->admin->getDatagrid(); - $datagrid->setValue('context', null, $context); + $datagrid->setValue('providerName', null, $this->admin->getPersistentParameter('provider')); if (null !== $rootCategory && [] === $filters) { $datagrid->setValue('category', null, $rootCategory->getId());
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L88
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } $datagrid = $this->admin->getDatagrid(); $datagrid->setValue('context', null, $context); - $datagrid->setValue('providerName', null, $this->admin->getPersistentParameter('provider')); + if (null !== $rootCategory && [] === $filters) { $datagrid->setValue('category', null, $rootCategory->getId()); }
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L90
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ $datagrid = $this->admin->getDatagrid(); $datagrid->setValue('context', null, $context); $datagrid->setValue('providerName', null, $this->admin->getPersistentParameter('provider')); - if (null !== $rootCategory && [] === $filters) { + if (null !== $rootCategory && [] !== $filters) { $datagrid->setValue('category', null, $rootCategory->getId()); } if (null !== $this->categoryManager && $request->query->has('category')) {
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L90
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ $datagrid = $this->admin->getDatagrid(); $datagrid->setValue('context', null, $context); $datagrid->setValue('providerName', null, $this->admin->getPersistentParameter('provider')); - if (null !== $rootCategory && [] === $filters) { + if (!(null !== $rootCategory) && !([] === $filters)) { $datagrid->setValue('category', null, $rootCategory->getId()); } if (null !== $this->categoryManager && $request->query->has('category')) {
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L94
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ if (null !== $rootCategory && [] === $filters) { $datagrid->setValue('category', null, $rootCategory->getId()); } - if (null !== $this->categoryManager && $request->query->has('category')) { + if (null === $this->categoryManager && $request->query->has('category')) { $category = $this->categoryManager->findOneBy(['id' => $request->query->get('category'), 'context' => $context]); if (null !== $category) { $datagrid->setValue('category', null, $category->getId());
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L94
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ if (null !== $rootCategory && [] === $filters) { $datagrid->setValue('category', null, $rootCategory->getId()); } - if (null !== $this->categoryManager && $request->query->has('category')) { + if (null !== $this->categoryManager || $request->query->has('category')) { $category = $this->categoryManager->findOneBy(['id' => $request->query->get('category'), 'context' => $context]); if (null !== $category) { $datagrid->setValue('category', null, $category->getId());
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L94
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ if (null !== $rootCategory && [] === $filters) { $datagrid->setValue('category', null, $rootCategory->getId()); } - if (null !== $this->categoryManager && $request->query->has('category')) { + if (null !== $this->categoryManager && !$request->query->has('category')) { $category = $this->categoryManager->findOneBy(['id' => $request->query->get('category'), 'context' => $context]); if (null !== $category) { $datagrid->setValue('category', null, $category->getId());
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L111
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } $formats = $this->getFormats($datagrid); $formView = $datagrid->getForm()->createView(); - $this->setFormTheme($formView, $this->admin->getFilterTheme()); + return new Response($this->twig->render($this->template, ['base_template' => $this->admin->getTemplateRegistry()->getTemplate('layout'), 'admin' => $this->admin, 'action' => 'ckeditor_browse', 'form' => $formView, 'datagrid' => $datagrid, 'root_category' => $rootCategory, 'formats' => $formats, 'csrf_token' => $this->getCsrfToken('sonata.batch'), 'export_formats' => []])); } private function getCsrfToken(string $intention): ?string
run / Static Code Analysis (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Code Coverage (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.2, Symfony 7.0, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.2, Symfony 6.4, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.2, Symfony 7.0, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.3, Symfony 6.4, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.3, Symfony 7.0, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.3, Symfony 7.0, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.2, Symfony 6.4, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.3, Symfony 6.4, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.