Code Duplication    Length = 6-6 lines in 5 locations

src/Service/Game.php 5 locations

@@ 1897-1902 (lines=6) @@
1894
        $factory = new InputFactory();
1895
        
1896
        foreach ($formPV as $element) {
1897
            if (isset($element->line_text)) {
1898
                $attr  = $this->getAttributes($element->line_text[0]);
1899
                $element = new Element\Text($attr['name']);
1900
                $element = $this->decorate($element, $attr, $inputFilter);
1901
                $form->add($element);
1902
            }
1903
            if (isset($element->line_password)) {
1904
                $attr = $this->getAttributes($element->line_password[0]);
1905
                $element = new Element\Password($attr['name']);
@@ 1903-1908 (lines=6) @@
1900
                $element = $this->decorate($element, $attr, $inputFilter);
1901
                $form->add($element);
1902
            }
1903
            if (isset($element->line_password)) {
1904
                $attr = $this->getAttributes($element->line_password[0]);
1905
                $element = new Element\Password($attr['name']);
1906
                $element = $this->decorate($element, $attr, $inputFilter);
1907
                $form->add($element);
1908
            }
1909
            if (isset($element->line_hidden)) {
1910
                $attr = $this->getAttributes($element->line_hidden[0]);
1911
                $element = new Element\Hidden($attr['name']);
@@ 1909-1914 (lines=6) @@
1906
                $element = $this->decorate($element, $attr, $inputFilter);
1907
                $form->add($element);
1908
            }
1909
            if (isset($element->line_hidden)) {
1910
                $attr = $this->getAttributes($element->line_hidden[0]);
1911
                $element = new Element\Hidden($attr['name']);
1912
                $element = $this->decorate($element, $attr, $inputFilter);
1913
                $form->add($element);
1914
            }
1915
            if (isset($element->line_email)) {
1916
                $attr = $this->getAttributes($element->line_email[0]);
1917
                $element = new Element\Email($attr['name']);
@@ 1915-1920 (lines=6) @@
1912
                $element = $this->decorate($element, $attr, $inputFilter);
1913
                $form->add($element);
1914
            }
1915
            if (isset($element->line_email)) {
1916
                $attr = $this->getAttributes($element->line_email[0]);
1917
                $element = new Element\Email($attr['name']);
1918
                $element = $this->decorate($element, $attr, $inputFilter);
1919
                $form->add($element);
1920
            }
1921
            if (isset($element->line_radio)) {
1922
                $attr = $this->getAttributes($element->line_radio[0]);
1923
                $element = new Element\Radio($attr['name']);
@@ 2022-2027 (lines=6) @@
2019
                    'allowEmpty' => !$attr['required'],
2020
                )));
2021
            }
2022
            if (isset($element->line_paragraph)) {
2023
                $attr = $this->getAttributes($element->line_paragraph[0]);
2024
                $element = new Element\Textarea($attr['name']);
2025
                $element = $this->decorate($element, $attr, $inputFilter);
2026
                $form->add($element);
2027
            }
2028
            if (isset($element->line_upload)) {
2029
                $attr = $this->getAttributes($element->line_upload[0]);
2030
                $element = new Element\File($attr['name']);