clean up rector config #284
Annotations
6 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, codecov/codecov-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run mutation test:
src/Controllers/Album.php#L74
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
if ($this->request->getMethod() === 'post') {
/** @var array $post */
$post = $this->request->getPost();
- if ($this->albumRepository->save($post)) {
+ if (!$this->albumRepository->save($post)) {
session()->setFlashdata(self::STATUS, 'New album has been added');
return redirect()->route(self::ALBUM_INDEX);
}
|
Run mutation test:
src/Controllers/Track.php#L99
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
/** @var array $post */
$post = $this->request->getPost();
try {
- if ($this->trackRepository->save($post)) {
+ if (!$this->trackRepository->save($post)) {
session()->setFlashdata(self::STATUS, 'New album track has been added');
return redirect()->route(self::TRACK_INDEX, [$albumId]);
}
|
Run mutation test:
src/Infrastructure/Persistence/Track/SQLTrackRepository.php#L104
Escaped Mutant for Mutator "Throw_":
--- Original
+++ New
@@ @@
if ($result === []) {
return $this->saveData($data);
}
- throw TrackDuplicatedRectorException::forDuplicatedTitle($data['album_id']);
+ TrackDuplicatedRectorException::forDuplicatedTitle($data['album_id']);
}
/** @var array{title: string, album_id:int} $data */
$this->model->builder()->where('album_id', $data['album_id'])->where('title', $data['title']);
|
Upload coverage to Codecov
Unexpected input(s) 'yml', valid inputs are ['token', 'files', 'directory', 'flags', 'aws_curl_args', 'codecov_curl_args', 'commit_parent', 'env_vars', 'fail_ci_if_error', 'file', 'functionalities', 'gcov_args', 'gcov_executable', 'gcov_path_exclude', 'gcov_path_include', 'gcov_prefix', 'gcov_root_dir', 'move_coverage_to_trash', 'name', 'network_filter', 'override_branch', 'override_build', 'override_commit', 'override_pr', 'override_tag', 'path_to_write_report', 'root_dir', 'verbose', 'working-directory', 'xcode_derived_data', 'xcode_package']
|
Loading