Update dependency sphinx_rtd_theme to v3.0.2 #1753
Annotations
11 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Run mutation tests with pcov and infection/infection:
src/Action/ConfirmRegistrationAction.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$user->setConfirmationToken(null);
$user->setEnabled(true);
$event = new GetResponseUserEvent($user, $request);
- $this->eventDispatcher->dispatch($event, NucleosProfileEvents::REGISTRATION_CONFIRM);
+
$userManager->updateUser($user);
if (null === $response = $event->getResponse()) {
$url = $this->router->generate('nucleos_profile_registration_confirmed');
|
Run mutation tests with pcov and infection/infection:
src/Action/ConfirmRegistrationAction.php#L61
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$user->setEnabled(true);
$event = new GetResponseUserEvent($user, $request);
$this->eventDispatcher->dispatch($event, NucleosProfileEvents::REGISTRATION_CONFIRM);
- $userManager->updateUser($user);
+
if (null === $response = $event->getResponse()) {
$url = $this->router->generate('nucleos_profile_registration_confirmed');
$response = new RedirectResponse($url);
|
Run mutation tests with pcov and infection/infection:
src/Action/ConfirmRegistrationAction.php#L68
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$url = $this->router->generate('nucleos_profile_registration_confirmed');
$response = new RedirectResponse($url);
}
- $this->eventDispatcher->dispatch(new FilterUserResponseEvent($user, $request, $response), NucleosProfileEvents::REGISTRATION_CONFIRMED);
+
return $response;
}
}
|
Run mutation tests with pcov and infection/infection:
src/Action/EditProfileAction.php#L67
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
public function __invoke(Request $request): Response
{
$user = $this->security->getUser();
- if (!$user instanceof UserInterface) {
+ if (!true) {
throw new AccessDeniedException('This user does not have access to this section.');
}
$event = new GetResponseUserEvent($user, $request);
|
Run mutation tests with pcov and infection/infection:
src/Action/EditProfileAction.php#L72
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
throw new AccessDeniedException('This user does not have access to this section.');
}
$event = new GetResponseUserEvent($user, $request);
- $this->eventDispatcher->dispatch($event, NucleosProfileEvents::PROFILE_EDIT_INITIALIZE);
+
if (null !== $event->getResponse()) {
return $event->getResponse();
}
|
Run mutation tests with pcov and infection/infection:
src/Action/EditProfileAction.php#L93
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
private function updateUser(Request $request, FormInterface $form, UserInterface $user): Response
{
$event = new UserFormEvent($user, $form, $request);
- $this->eventDispatcher->dispatch($event, NucleosProfileEvents::PROFILE_EDIT_SUCCESS);
+
$this->userManager->updateUser($user);
if (null === $response = $event->getResponse()) {
$response = new RedirectResponse($this->router->generate('nucleos_profile_profile_show'));
|
Run mutation tests with pcov and infection/infection:
src/Action/EditProfileAction.php#L101
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
if (null === $response = $event->getResponse()) {
$response = new RedirectResponse($this->router->generate('nucleos_profile_profile_show'));
}
- $this->eventDispatcher->dispatch(new FilterUserResponseEvent($user, $request, $response), NucleosProfileEvents::PROFILE_EDIT_COMPLETED);
+
return $response;
}
private function createForm(UserInterface $user): FormInterface
|
Run mutation tests with pcov and infection/infection:
src/Action/EditProfileAction.php#L112
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
}
private function createForm(UserInterface $user): FormInterface
{
- return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['Profile', 'User', 'Default']])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']);
+ return $this->formFactory->create(ProfileFormType::class, $user, [])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']);
}
}
|
Run mutation tests with pcov and infection/infection:
src/Action/EditProfileAction.php#L113
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
}
private function createForm(UserInterface $user): FormInterface
{
- return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['Profile', 'User', 'Default']])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']);
+ return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['User', 'Default']])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']);
}
}
|
Run mutation tests with pcov and infection/infection:
src/Action/EditProfileAction.php#L115
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
}
private function createForm(UserInterface $user): FormInterface
{
- return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['Profile', 'User', 'Default']])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']);
+ return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['Profile', 'User', 'Default']])->add('save', SubmitType::class, []);
}
}
|
Loading