Code Duplication    Length = 6-6 lines in 5 locations

src/Service/Game.php 5 locations

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