Code Duplication    Length = 6-6 lines in 5 locations

src/Service/Game.php 5 locations

@@ 1986-1991 (lines=6) @@
1983
        $factory = new InputFactory();
1984
        
1985
        foreach ($formPV as $element) {
1986
            if (isset($element->line_text)) {
1987
                $attr  = $this->getAttributes($element->line_text[0]);
1988
                $element = new Element\Text($attr['name']);
1989
                $element = $this->decorate($element, $attr, $inputFilter);
1990
                $form->add($element);
1991
            }
1992
            if (isset($element->line_password)) {
1993
                $attr = $this->getAttributes($element->line_password[0]);
1994
                $element = new Element\Password($attr['name']);
@@ 1992-1997 (lines=6) @@
1989
                $element = $this->decorate($element, $attr, $inputFilter);
1990
                $form->add($element);
1991
            }
1992
            if (isset($element->line_password)) {
1993
                $attr = $this->getAttributes($element->line_password[0]);
1994
                $element = new Element\Password($attr['name']);
1995
                $element = $this->decorate($element, $attr, $inputFilter);
1996
                $form->add($element);
1997
            }
1998
            if (isset($element->line_hidden)) {
1999
                $attr = $this->getAttributes($element->line_hidden[0]);
2000
                $element = new Element\Hidden($attr['name']);
@@ 1998-2003 (lines=6) @@
1995
                $element = $this->decorate($element, $attr, $inputFilter);
1996
                $form->add($element);
1997
            }
1998
            if (isset($element->line_hidden)) {
1999
                $attr = $this->getAttributes($element->line_hidden[0]);
2000
                $element = new Element\Hidden($attr['name']);
2001
                $element = $this->decorate($element, $attr, $inputFilter);
2002
                $form->add($element);
2003
            }
2004
            if (isset($element->line_email)) {
2005
                $attr = $this->getAttributes($element->line_email[0]);
2006
                $element = new Element\Email($attr['name']);
@@ 2004-2009 (lines=6) @@
2001
                $element = $this->decorate($element, $attr, $inputFilter);
2002
                $form->add($element);
2003
            }
2004
            if (isset($element->line_email)) {
2005
                $attr = $this->getAttributes($element->line_email[0]);
2006
                $element = new Element\Email($attr['name']);
2007
                $element = $this->decorate($element, $attr, $inputFilter);
2008
                $form->add($element);
2009
            }
2010
            if (isset($element->line_radio)) {
2011
                $attr = $this->getAttributes($element->line_radio[0]);
2012
                $element = new Element\Radio($attr['name']);
@@ 2111-2116 (lines=6) @@
2108
                    'allowEmpty' => !$attr['required'],
2109
                )));
2110
            }
2111
            if (isset($element->line_paragraph)) {
2112
                $attr = $this->getAttributes($element->line_paragraph[0]);
2113
                $element = new Element\Textarea($attr['name']);
2114
                $element = $this->decorate($element, $attr, $inputFilter);
2115
                $form->add($element);
2116
            }
2117
            if (isset($element->line_upload)) {
2118
                $attr = $this->getAttributes($element->line_upload[0]);
2119
                $element = new Element\File($attr['name']);