Skip to content

Commit

Permalink
Fixed coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
excelwebzone committed Dec 15, 2020
1 parent f2a6772 commit e738dd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/DependencyInjection/EWZRecaptchaExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public function load(array $configs, ContainerBuilder $container)
$container->register('ewz_recaptcha.'.$serviceDefinition['service_name'], FormBuilderInterface::class)
->setFactory(array(
new Reference('ewz_recaptcha.form_builder_factory'),
'get', ))
'get',
))
->setArguments([$serviceDefinition['options']]);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/EWZRecaptchaV3FormBuilderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public function get(array $options = array())
$constraint = array(
'constraints' => array(
new IsTrueV3(),
), );

return $this->builder->createBuilder(EWZRecaptchaV3Type::class, null, array_merge($options, $constraint)
),
);

return $this->builder->createBuilder(EWZRecaptchaV3Type::class, null, array_merge($options, $constraint));
}
}

0 comments on commit e738dd9

Please sign in to comment.