Merge pull request #32 from mimmi20/dependabot/npm_and_yarn/master/mi… #141
continuous-integration.yml
on: push
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
Matrix: Install Project / Install Node dependencies
Matrix: Install Project / Install PHP dependencies
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
Matrix: Code Coverage with PHPUnit
Matrix: UnitTests & Code Coverage
finish-code-coverage
6s
Unit & Integration Tests Status
0s
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 = '';
|