Skip to content

Merge pull request #32 from mimmi20/dependabot/npm_and_yarn/master/mi… #141

Merge pull request #32 from mimmi20/dependabot/npm_and_yarn/master/mi…

Merge pull request #32 from mimmi20/dependabot/npm_and_yarn/master/mi… #141

Triggered via push May 19, 2024 09:09
Status Success
Total duration 4m 37s
Artifacts
Matrix: Validate Project / Check with editorconfig-checker
Matrix: Validate Project / Check composer dependencies with composer-dependency-analyser
Matrix: Validate Project / Check composer dependencies with composer-unused
Matrix: Validate Project / Lint PHP
Matrix: Validate Project / Validate markdown files
Matrix: Validate Project / Linting with overtrue/phplint
Matrix: Validate Project / Validate composer
Matrix: Validate Project / Validate yaml
Validate Project  /  Lint & Validate Status
0s
Validate Project / Lint & Validate Status
Matrix: Install Project / Install Node dependencies
Matrix: Install Project / Install PHP dependencies
Install Project  /  Install Status
0s
Install Project / Install Status
Matrix: Project Analysis / Check Coding Standards with PHP-CS-Fixer
Matrix: Project Analysis / Check Coding Standards with PHPCS
Matrix: Project Analysis / Check Rules with PHPMD
Matrix: Project Analysis / Checks with Rector
Matrix: Project Analysis / Static Code Analysis with PHPStan
Project Analysis  /  Status Analytics
0s
Project Analysis / Status Analytics
Matrix: Code Coverage with PHPUnit
Matrix: UnitTests & Code Coverage
finish-code-coverage
6s
finish-code-coverage
Unit & Integration Tests Status
0s
Unit & Integration Tests Status
Fit to window
Zoom out
Zoom in

Annotations

8 warnings
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest): src/App/src/Handler/HomePageHandler.php#L48
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": --- Original +++ New @@ @@ public function handle(ServerRequestInterface $request) : ResponseInterface { $id = $request->getAttribute('id'); - assert(is_string($id) || $id === null); + assert(!is_string($id) || !($id === null)); $file = sprintf('src/App/config/forms/%s.config.php', $id); if ($id === null || !file_exists($file)) { $form = null;
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest): src/App/src/Handler/HomePageHandler.php#L48
Escaped Mutant for Mutator "LogicalOrSingleSubExprNegation": --- Original +++ New @@ @@ public function handle(ServerRequestInterface $request) : ResponseInterface { $id = $request->getAttribute('id'); - assert(is_string($id) || $id === null); + assert(!is_string($id) || $id === null); $file = sprintf('src/App/config/forms/%s.config.php', $id); if ($id === null || !file_exists($file)) { $form = null;
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest): src/App/src/Handler/HomePageHandler.php#L52
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ $id = $request->getAttribute('id'); assert(is_string($id) || $id === null); $file = sprintf('src/App/config/forms/%s.config.php', $id); - if ($id === null || !file_exists($file)) { + if ($id !== null || !file_exists($file)) { $form = null; } else { try {
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest): src/App/src/Handler/HomePageHandler.php#L52
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ $id = $request->getAttribute('id'); assert(is_string($id) || $id === null); $file = sprintf('src/App/config/forms/%s.config.php', $id); - if ($id === null || !file_exists($file)) { + if ($id === null || file_exists($file)) { $form = null; } else { try {
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest): src/App/src/Handler/HomePageHandler.php#L52
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ $id = $request->getAttribute('id'); assert(is_string($id) || $id === null); $file = sprintf('src/App/config/forms/%s.config.php', $id); - if ($id === null || !file_exists($file)) { + if ($id === null && !file_exists($file)) { $form = null; } else { try {
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest): src/App/src/Handler/HomePageHandler.php#L65
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $form = null; } } - $layout = new ViewModel(['request' => $request]); + $layout = new ViewModel([]); $layout->setTemplate('layout::default'); try { $html = $this->template->render('app::home-page', ['page' => $id, 'form' => $form, 'layout' => $layout, 'request' => $request]);
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest): src/App/src/Handler/HomePageHandler.php#L67
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } } $layout = new ViewModel(['request' => $request]); - $layout->setTemplate('layout::default'); + try { $html = $this->template->render('app::home-page', ['page' => $id, 'form' => $form, 'layout' => $layout, 'request' => $request]); } catch (Throwable $e) {
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest): src/App/src/Handler/HomePageHandler.php#L72
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $layout = new ViewModel(['request' => $request]); $layout->setTemplate('layout::default'); try { - $html = $this->template->render('app::home-page', ['page' => $id, 'form' => $form, 'layout' => $layout, 'request' => $request]); + $html = $this->template->render('app::home-page', ['form' => $form, 'layout' => $layout, 'request' => $request]); } catch (Throwable $e) { $this->logger->error($e, ['Page' => $id, 'File' => $file]); $html = '';