Skip to content

Fix bagdes in README #295

Fix bagdes in README

Fix bagdes in README #295

Triggered via push May 26, 2024 06:45
Status Success
Total duration 4m 25s
Artifacts
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 / 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 / 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 / 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#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 / 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 / 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 "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 / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L128
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ } private function getCsrfToken(string $intention): ?string { - if (null === $this->csrfTokenManager) { + if (null !== $this->csrfTokenManager) { return null; } return $this->csrfTokenManager->getToken($intention)->getValue();
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L180
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ } else { $context = $filters['context']['value']; } - return (string) $context; + return $context; } /** * @psalm-param DatagridInterface<ProxyQueryInterface<MediaInterface>> $datagrid
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L191
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ private function getFormats(DatagridInterface $datagrid): array { $formats = []; - foreach ($datagrid->getResults() as $media) { + foreach ([] as $media) { \assert($media instanceof MediaInterface); $formats[$media->getId()] = $this->pool->getFormatNamesByContext($media->getContext()); }
run / Mutation Tests (8.3): src/Action/BrowseMediaAction.php#L197
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ \assert($media instanceof MediaInterface); $formats[$media->getId()] = $this->pool->getFormatNamesByContext($media->getContext()); } - return $formats; + return (count($formats) > 1) ? array_slice($formats, 0, 1, true) : $formats; } }
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 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.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.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, 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/.
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 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/.