Code Duplication    Length = 6-6 lines in 5 locations

src/Service/Game.php 5 locations

@@ 1912-1917 (lines=6) @@
1909
        $factory = new InputFactory();
1910
        
1911
        foreach ($formPV as $element) {
1912
            if (isset($element->line_text)) {
1913
                $attr  = $this->getAttributes($element->line_text[0]);
1914
                $element = new Element\Text($attr['name']);
1915
                $element = $this->decorate($element, $attr, $inputFilter);
1916
                $form->add($element);
1917
            }
1918
            if (isset($element->line_password)) {
1919
                $attr = $this->getAttributes($element->line_password[0]);
1920
                $element = new Element\Password($attr['name']);
@@ 1918-1923 (lines=6) @@
1915
                $element = $this->decorate($element, $attr, $inputFilter);
1916
                $form->add($element);
1917
            }
1918
            if (isset($element->line_password)) {
1919
                $attr = $this->getAttributes($element->line_password[0]);
1920
                $element = new Element\Password($attr['name']);
1921
                $element = $this->decorate($element, $attr, $inputFilter);
1922
                $form->add($element);
1923
            }
1924
            if (isset($element->line_hidden)) {
1925
                $attr = $this->getAttributes($element->line_hidden[0]);
1926
                $element = new Element\Hidden($attr['name']);
@@ 1924-1929 (lines=6) @@
1921
                $element = $this->decorate($element, $attr, $inputFilter);
1922
                $form->add($element);
1923
            }
1924
            if (isset($element->line_hidden)) {
1925
                $attr = $this->getAttributes($element->line_hidden[0]);
1926
                $element = new Element\Hidden($attr['name']);
1927
                $element = $this->decorate($element, $attr, $inputFilter);
1928
                $form->add($element);
1929
            }
1930
            if (isset($element->line_email)) {
1931
                $attr = $this->getAttributes($element->line_email[0]);
1932
                $element = new Element\Email($attr['name']);
@@ 1930-1935 (lines=6) @@
1927
                $element = $this->decorate($element, $attr, $inputFilter);
1928
                $form->add($element);
1929
            }
1930
            if (isset($element->line_email)) {
1931
                $attr = $this->getAttributes($element->line_email[0]);
1932
                $element = new Element\Email($attr['name']);
1933
                $element = $this->decorate($element, $attr, $inputFilter);
1934
                $form->add($element);
1935
            }
1936
            if (isset($element->line_radio)) {
1937
                $attr = $this->getAttributes($element->line_radio[0]);
1938
                $element = new Element\Radio($attr['name']);
@@ 2037-2042 (lines=6) @@
2034
                    'allowEmpty' => !$attr['required'],
2035
                )));
2036
            }
2037
            if (isset($element->line_paragraph)) {
2038
                $attr = $this->getAttributes($element->line_paragraph[0]);
2039
                $element = new Element\Textarea($attr['name']);
2040
                $element = $this->decorate($element, $attr, $inputFilter);
2041
                $form->add($element);
2042
            }
2043
            if (isset($element->line_upload)) {
2044
                $attr = $this->getAttributes($element->line_upload[0]);
2045
                $element = new Element\File($attr['name']);