Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
limenet committed Dec 27, 2023
1 parent 9f4d65f commit 125e5ce
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 37 deletions.
10 changes: 1 addition & 9 deletions src/Controller/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,14 @@

class FormController extends AbstractController
{
/**
* @return Response
*/
#[Route('/ui/{name}')]
public function uiAction(string $name, FormService $formService): Response
public function uiAction(string $name): Response
{
return $this->render('@ValanticPimcoreForms/vue.html.twig', [
'name' => $name,
]);
}

/**
* @return Response
*/
#[Route('/html/{name}')]
public function htmlAction(string $name, FormService $formService): Response
{
Expand All @@ -42,8 +36,6 @@ public function htmlAction(string $name, FormService $formService): Response

/**
* @throws SerializerException
*
* @return ApiResponse
*/
#[Route('/api/{name}')]
public function apiAction(string $name, FormService $formService, Request $request, TranslatorInterface $translator): ApiResponse
Expand Down
3 changes: 0 additions & 3 deletions src/DependencyInjection/Compiler/ExtensionCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ class ExtensionCompilerPass implements CompilerPassInterface
{
final public const EXTENSION_TAG = 'liform.extension';

/**
* {@inheritDoc}
*/
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('Limenius\Liform\Liform')) {
Expand Down
3 changes: 0 additions & 3 deletions src/DependencyInjection/Compiler/TransformerCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ class TransformerCompilerPass implements CompilerPassInterface
{
final public const TRANSFORMER_TAG = 'liform.transformer';

/**
* {@inheritDoc}
*/
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('Limenius\Liform\Resolver')) {
Expand Down
3 changes: 0 additions & 3 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class Configuration implements ConfigurationInterface
final public const SYMFONY_CONSTRAINTS_NAMESPACE = 'Symfony\\Component\\Validator\\Constraints\\';
final public const SYMFONY_FORMTYPES_NAMESPACE = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\';

/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('valantic_pimcore_forms');
Expand Down
3 changes: 0 additions & 3 deletions src/DependencyInjection/ValanticPimcoreFormsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ class ValanticPimcoreFormsExtension extends Extension
final public const TAG_INPUT_HANDLER = 'valantic.pimcore_forms.input_handler';

/**
* {@inheritDoc}
*
* @param array<mixed> $configs
* @param ContainerBuilder $container
*
* @throws \Exception
*/
Expand Down
3 changes: 0 additions & 3 deletions src/Document/Twig/Extension/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ public function __construct(
) {
}

/**
* {@inheritDoc}
*/
public function getFunctions(): array
{
return [
Expand Down
1 change: 0 additions & 1 deletion src/Form/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function __construct(
*/
public function form(string $name, array $config): FormBuilderInterface
{
/** @var FormBuilderInterface $builder */
$builder = $this->formFactory
->createNamedBuilder($name, FormType::class, null, [
'csrf_protection' => $config['csrf'],
Expand Down
6 changes: 0 additions & 6 deletions src/Form/FormErrorNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,11 @@ public function __construct(
) {
}

/**
* {@inheritDoc}
*/
public function normalize($object, ?string $format = null, array $context = [])
{
return $this->convertFormToArray($object);
}

/**
* {@inheritDoc}
*/
public function supportsNormalization($data, ?string $format = null): bool
{
return $data instanceof FormInterface && $data->isSubmitted() && !$data->isValid();
Expand Down
3 changes: 0 additions & 3 deletions src/Form/Transformer/ChoiceTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ class ChoiceTransformer extends \Limenius\Liform\Transformer\ChoiceTransformer
{
use OverwriteAbstractTransformerTrait;

/**
* {@inheritDoc}
*/
public function transform(FormInterface $form, array $extensions = [], $widget = null): array
{
$formView = $form->createView();
Expand Down
3 changes: 0 additions & 3 deletions src/Form/Transformer/FileTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

class FileTransformer extends StringTransformer
{
/**
* {@inheritDoc}
*/
public function transform(FormInterface $form, array $extensions = [], $widget = null): array
{
$schema = ['type' => 'file'];
Expand Down

0 comments on commit 125e5ce

Please sign in to comment.