Code Duplication    Length = 6-6 lines in 5 locations

src/Service/Game.php 5 locations

@@ 1945-1950 (lines=6) @@
1942
        $factory = new InputFactory();
1943
        
1944
        foreach ($formPV as $element) {
1945
            if (isset($element->line_text)) {
1946
                $attr  = $this->getAttributes($element->line_text[0]);
1947
                $element = new Element\Text($attr['name']);
1948
                $element = $this->decorate($element, $attr, $inputFilter);
1949
                $form->add($element);
1950
            }
1951
            if (isset($element->line_password)) {
1952
                $attr = $this->getAttributes($element->line_password[0]);
1953
                $element = new Element\Password($attr['name']);
@@ 1951-1956 (lines=6) @@
1948
                $element = $this->decorate($element, $attr, $inputFilter);
1949
                $form->add($element);
1950
            }
1951
            if (isset($element->line_password)) {
1952
                $attr = $this->getAttributes($element->line_password[0]);
1953
                $element = new Element\Password($attr['name']);
1954
                $element = $this->decorate($element, $attr, $inputFilter);
1955
                $form->add($element);
1956
            }
1957
            if (isset($element->line_hidden)) {
1958
                $attr = $this->getAttributes($element->line_hidden[0]);
1959
                $element = new Element\Hidden($attr['name']);
@@ 1957-1962 (lines=6) @@
1954
                $element = $this->decorate($element, $attr, $inputFilter);
1955
                $form->add($element);
1956
            }
1957
            if (isset($element->line_hidden)) {
1958
                $attr = $this->getAttributes($element->line_hidden[0]);
1959
                $element = new Element\Hidden($attr['name']);
1960
                $element = $this->decorate($element, $attr, $inputFilter);
1961
                $form->add($element);
1962
            }
1963
            if (isset($element->line_email)) {
1964
                $attr = $this->getAttributes($element->line_email[0]);
1965
                $element = new Element\Email($attr['name']);
@@ 1963-1968 (lines=6) @@
1960
                $element = $this->decorate($element, $attr, $inputFilter);
1961
                $form->add($element);
1962
            }
1963
            if (isset($element->line_email)) {
1964
                $attr = $this->getAttributes($element->line_email[0]);
1965
                $element = new Element\Email($attr['name']);
1966
                $element = $this->decorate($element, $attr, $inputFilter);
1967
                $form->add($element);
1968
            }
1969
            if (isset($element->line_radio)) {
1970
                $attr = $this->getAttributes($element->line_radio[0]);
1971
                $element = new Element\Radio($attr['name']);
@@ 2070-2075 (lines=6) @@
2067
                    'allowEmpty' => !$attr['required'],
2068
                )));
2069
            }
2070
            if (isset($element->line_paragraph)) {
2071
                $attr = $this->getAttributes($element->line_paragraph[0]);
2072
                $element = new Element\Textarea($attr['name']);
2073
                $element = $this->decorate($element, $attr, $inputFilter);
2074
                $form->add($element);
2075
            }
2076
            if (isset($element->line_upload)) {
2077
                $attr = $this->getAttributes($element->line_upload[0]);
2078
                $element = new Element\File($attr['name']);