Update dependency Pygments to v2.17.1 #1660
continuous-integration.yml
on: pull_request
run
/
Generate test matrix
2s
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Lint symfony container
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / Lint twig files
Matrix: run / Lint XLIFF files
Matrix: run / Lint YML files
Matrix: run / tests
Annotations
10 warnings
run / Mutation Tests (8.2):
src/Action/RegistrationAction.php#L63
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$user = $this->userManager->createUser();
$event = new GetResponseRegistrationEvent($user, $request);
- $this->eventDispatcher->dispatch($event, NucleosProfileEvents::REGISTRATION_INITIALIZE);
+
if (null !== $event->getResponse()) {
return $event->getResponse();
}
|
run / Mutation Tests (8.2):
src/Action/RegistrationAction.php#L70
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
return $event->getResponse();
}
$form = $this->createForm($user);
- $form->handleRequest($request);
+
if ($form->isSubmitted()) {
if ($form->isValid()) {
return $this->updateUser($request, $user, $form);
|
run / Mutation Tests (8.2):
src/Action/RegistrationAction.php#L112
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
private function createForm(UserInterface $user) : FormInterface
{
- return $this->formFactory->create(RegistrationFormType::class, $user, ['validation_groups' => ['Registration', 'User', 'Default']])->add('save', SubmitType::class, ['label' => 'registration.submit']);
+ return $this->formFactory->create(RegistrationFormType::class, $user, [])->add('save', SubmitType::class, ['label' => 'registration.submit']);
}
}
|
run / Mutation Tests (8.2):
src/Action/RegistrationAction.php#L113
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
private function createForm(UserInterface $user) : FormInterface
{
- return $this->formFactory->create(RegistrationFormType::class, $user, ['validation_groups' => ['Registration', 'User', 'Default']])->add('save', SubmitType::class, ['label' => 'registration.submit']);
+ return $this->formFactory->create(RegistrationFormType::class, $user, ['validation_groups' => ['User', 'Default']])->add('save', SubmitType::class, ['label' => 'registration.submit']);
}
}
|
run / Mutation Tests (8.2):
src/Action/RegistrationAction.php#L115
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
private function createForm(UserInterface $user) : FormInterface
{
- return $this->formFactory->create(RegistrationFormType::class, $user, ['validation_groups' => ['Registration', 'User', 'Default']])->add('save', SubmitType::class, ['label' => 'registration.submit']);
+ return $this->formFactory->create(RegistrationFormType::class, $user, ['validation_groups' => ['Registration', 'User', 'Default']])->add('save', SubmitType::class, []);
}
}
|
run / Mutation Tests (8.2):
src/DependencyInjection/NucleosProfileExtension.php#L34
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$configuration = new Configuration();
$config = $processor->processConfiguration($configuration, $configs);
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
- $loader->load('mailer.php');
+
$loader->load('listeners.php');
$this->loadRegistration($config['registration'], $container, $loader);
$this->loadProfile($loader);
|
run / Mutation Tests (8.2):
src/DependencyInjection/NucleosProfileExtension.php#L37
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('mailer.php');
$loader->load('listeners.php');
- $this->loadRegistration($config['registration'], $container, $loader);
+
$this->loadProfile($loader);
$container->setAlias('nucleos_profile.mailer', $config['service']['mailer']);
}
|
run / Mutation Tests (8.2):
src/DependencyInjection/NucleosProfileExtension.php#L38
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$loader->load('mailer.php');
$loader->load('listeners.php');
$this->loadRegistration($config['registration'], $container, $loader);
- $this->loadProfile($loader);
+
$container->setAlias('nucleos_profile.mailer', $config['service']['mailer']);
}
/**
|
run / Mutation Tests (8.2):
src/DependencyInjection/NucleosProfileExtension.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
private function loadRegistration(array $config, ContainerBuilder $container, FileLoader $loader) : void
{
- $loader->load('registration.php');
+
if (true === $config['confirmation']['enabled']) {
$loader->load('email_confirmation.php');
}
|
run / Mutation Tests (8.2):
src/DependencyInjection/NucleosProfileExtension.php#L50
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
private function loadRegistration(array $config, ContainerBuilder $container, FileLoader $loader) : void
{
$loader->load('registration.php');
- if (true === $config['confirmation']['enabled']) {
+ if (false === $config['confirmation']['enabled']) {
$loader->load('email_confirmation.php');
}
$container->setParameter('nucleos_profile.registration.confirmation.from_email', $config['confirmation']['from_email']);
|