CI #36
Annotations
1 error and 7 warnings
Check
Process completed with exit code 1.
|
Check:
src/Cards/ValidationErrors.php#L57
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
default => $bag,
}, 'uri' => $uri, 'name' => $name, 'action' => $action, 'method' => $method, 'message' => $message, 'count' => $row->count, 'key_hash' => md5($row->key)];
}));
- return View::make('timacdonald::validation-errors', ['time' => $time, 'runAt' => $runAt, 'errors' => $errors, 'config' => ['sample_rate' => 1, ...Config::get('pulse.recorders.' . ValidationErrorsRecorder::class, [])]]);
+ return View::make('timacdonald::validation-errors', ['time' => $time, 'runAt' => $runAt, 'errors' => $errors, 'config' => ['sample_rate' => 2, ...Config::get('pulse.recorders.' . ValidationErrorsRecorder::class, [])]]);
}
/**
* Define any CSS that should be loaded for the component.
|
Check:
src/Recorders/ValidationErrors.php#L62
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
{
$this->afterResolving($app, 'livewire', function (LivewireManager $livewire) use ($record, $app) {
$livewire->listen('exception', function (Component $component, Throwable $exception) use ($record, $app) {
- if (!$exception instanceof ValidationException) {
+ if (!true) {
return;
}
with($app['request'], function (Request $request) use ($record, $exception) {
|
Check:
src/Recorders/ValidationErrors.php#L69
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
return;
}
with($app['request'], function (Request $request) use ($record, $exception) {
- // @phpstan-ignore argument.type
- // Livewire can reuse the same request instance when polling or
- // performing grouped requests.
- $request->attributes->remove('pulse_validation_messages_recorded');
+
$record(new ValidationExceptionOccurred($request, $exception));
});
});
|
Check:
src/Recorders/ValidationErrors.php#L100
Escaped Mutant for Mutator "TrueValue":
@@ @@
if ($this->shouldIgnore($path)) {
return;
}
- $event->request->attributes->set('pulse_validation_messages_recorded', true);
+ $event->request->attributes->set('pulse_validation_messages_recorded', false);
$path = $this->group($path);
$this->parseValidationErrors($event)->each(fn(array $values) => $this->pulse->record('validation_error', json_encode([$event->request->method(), $path, $via, ...$values], flags: JSON_THROW_ON_ERROR))->count());
});
|
Check:
src/Recorders/ValidationErrors.php#L122
Escaped Mutant for Mutator "Coalesce":
@@ @@
if ($event instanceof ValidationExceptionOccurred) {
return $this->parseValidationExceptionMessages($event->request, $event->exception);
}
- return $this->parseSessionValidationErrors($event->request, $event->response) ?? $this->parseJsonValidationErrors($event->request, $event->response) ?? $this->parseUnknownValidationErrors($event->request, $event->response) ?? collect([]);
+ return $this->parseJsonValidationErrors($event->request, $event->response) ?? $this->parseSessionValidationErrors($event->request, $event->response) ?? $this->parseUnknownValidationErrors($event->request, $event->response) ?? collect([]);
}
/**
* Parse session validation errors.
|
Check:
src/ValidationErrorsServiceProvider.php#L29
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function boot(): void
{
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'timacdonald');
- $this->callAfterResolving('livewire', function (LivewireManager $livewire) {
- $livewire->component('pulse.validation-errors', ValidationErrors::class);
- });
+
}
}
|
Check:
src/ValidationErrorsServiceProvider.php#L30
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'timacdonald');
$this->callAfterResolving('livewire', function (LivewireManager $livewire) {
- $livewire->component('pulse.validation-errors', ValidationErrors::class);
+
});
}
}
|