Code Duplication    Length = 7-7 lines in 3 locations

src/Presentation/Web/Infrastructure/Form/Symfony/FormFactory.php 3 locations

@@ 46-52 (lines=7) @@
43
        $this->symfonyFormFactory = $symfonyFormFactory;
44
    }
45
46
    public function createEditPostForm($data = null, array $options = []): FormInterface
47
    {
48
        /** @var SymfonyForm $form */
49
        $form = $this->symfonyFormFactory->create(EditPostForm::class, $data, $options);
50
51
        return new Form($this->symfonyResponseFactory, $form);
52
    }
53
54
    public function createCreatePostForm($data = null, array $options = []): FormInterface
55
    {
@@ 54-60 (lines=7) @@
51
        return new Form($this->symfonyResponseFactory, $form);
52
    }
53
54
    public function createCreatePostForm($data = null, array $options = []): FormInterface
55
    {
56
        /** @var SymfonyForm $form */
57
        $form = $this->symfonyFormFactory->create(CreatePostForm::class, $data, $options);
58
59
        return new Form($this->symfonyResponseFactory, $form);
60
    }
61
62
    public function createCommentForm($data = null, array $options = []): FormInterface
63
    {
@@ 62-68 (lines=7) @@
59
        return new Form($this->symfonyResponseFactory, $form);
60
    }
61
62
    public function createCommentForm($data = null, array $options = []): FormInterface
63
    {
64
        /** @var SymfonyForm $form */
65
        $form = $this->symfonyFormFactory->create(CommentForm::class, $data, $options);
66
67
        return new Form($this->symfonyResponseFactory, $form);
68
    }
69
}
70