Bump vite from 4.4.11 to 4.5.2 #107
Annotations
11 warnings
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Infection:
app/Listeners/OpenDocumentWindow.php#L72
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
} catch (MissedSketchBookReference) {
$sketchBookId = Uuid::uuid4()->toString();
$this->createNewSketchBook->handle(CreateNewSketchBookCommand::withIdAndPath($sketchBookId, $path));
- $this->saveSketchBook->handle(SaveSketchBookCommand::from($sketchBookId, $sketchBookData['sketches'], $sketchBookData['brush'], $sketchBookData['palette']));
+
}
$this->openWindow->handle(new OpenWindowCommand($sketchBookId, 'sketch-book', $path, 'sketch-book'));
}
}
|
Infection:
app/Listeners/OpenDocumentWindow.php#L82
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->createNewSketchBook->handle(CreateNewSketchBookCommand::withIdAndPath($sketchBookId, $path));
$this->saveSketchBook->handle(SaveSketchBookCommand::from($sketchBookId, $sketchBookData['sketches'], $sketchBookData['brush'], $sketchBookData['palette']));
}
- $this->openWindow->handle(new OpenWindowCommand($sketchBookId, 'sketch-book', $path, 'sketch-book'));
+
}
}
|
Infection:
app/Listeners/StoreDocument.php#L37
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
return;
}
$command = CreateNewSketchBookCommand::withIdAndPath(Uuid::uuid4()->toString(), $path);
- $this->createNewSketchBook->handle($command);
+
$this->windowManager->handle(new OpenWindowCommand($command->sketchBookId, 'sketch-book', $path, 'sketch-book'));
}
}
|
Infection:
app/Listeners/StoreDocument.php#L39
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
$command = CreateNewSketchBookCommand::withIdAndPath(Uuid::uuid4()->toString(), $path);
$this->createNewSketchBook->handle($command);
- $this->windowManager->handle(new OpenWindowCommand($command->sketchBookId, 'sketch-book', $path, 'sketch-book'));
+
}
}
|
Infection:
src/SketchBook/Domain/Handler/SaveSketchBook.php#L22
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function handle(SaveSketchBookCommand $command) : void
{
$sketchBook = $this->repository->get($command->sketchBookId);
- $sketchBook->setBrush($command->brush());
+
$sketchBook->setPalette($command->palette());
$sketchBook->updateSketches(Sketch::fromNormalizedSketches($command->sketches));
$this->repository->save($sketchBook);
}
}
|
Infection:
src/SketchBook/Domain/Handler/SaveSketchBook.php#L23
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$sketchBook = $this->repository->get($command->sketchBookId);
$sketchBook->setBrush($command->brush());
- $sketchBook->setPalette($command->palette());
+
$sketchBook->updateSketches(Sketch::fromNormalizedSketches($command->sketches));
$this->repository->save($sketchBook);
}
}
|
Infection:
src/SketchBook/Domain/Model/SketchBook.php#L36
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
}
public static function new(string $sketchBookId, string $storagePath) : self
{
- if (!str_ends_with($storagePath, '.json')) {
+ if (str_ends_with($storagePath, '.json')) {
$storagePath = sprintf('%s.json', $storagePath);
}
return new self($sketchBookId, $storagePath, [new Sketch(1, 'data:,')], Brush::default(), Palette::default());
|
Infection:
src/SketchBook/Domain/Model/SketchBook.php#L85
Escaped Mutant for Mutator "UnwrapStrReplace":
--- Original
+++ New
@@ @@
}
public function name() : string
{
- return basename(str_replace('.json', '', $this->storagePath));
+ return basename($this->storagePath);
}
public function background() : string
{
|
Infection:
src/SketchBook/Infrastructure/Persistence/FileSystemSketchBookRepository.php#L34
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
public function get(string $sketchBookId) : SketchBook
{
- $sketchBookReference = SketchBookReference::firstOrNew(['id' => $sketchBookId]);
+ $sketchBookReference = SketchBookReference::firstOrNew([]);
if (null === $sketchBookReference->storage_path) {
throw new MissedSketchBookReference('Sketch Book not found.');
}
|
Infection:
src/SketchBook/Infrastructure/Persistence/FileSystemSketchBookRepository.php#L44
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
$content = Storage::get($sketchBookReference->storage_path) ?? '[]';
/** @var SketchBookNormalized|null $sketchBookNormalized */
- $sketchBookNormalized = json_decode($content, true, 512, JSON_THROW_ON_ERROR);
+ $sketchBookNormalized = json_decode($content, true, 511, JSON_THROW_ON_ERROR);
return new SketchBook($sketchBookReference->id, $sketchBookReference->storage_path, Sketch::fromNormalizedSketches($sketchBookNormalized['sketches'] ?? []), Brush::fromNormalized($sketchBookNormalized['brush'] ?? (array) Brush::default()), Palette::fromNormalized($sketchBookNormalized['palette'] ?? (array) Palette::default()));
}
}
|
The logs for this run have expired and are no longer available.
Loading