Code Duplication    Length = 6-6 lines in 5 locations

src/Service/Game.php 5 locations

@@ 2057-2062 (lines=6) @@
2054
        $factory = new InputFactory();
2055
        
2056
        foreach ($formPV as $element) {
2057
            if (isset($element->line_text)) {
2058
                $attr  = $this->getAttributes($element->line_text[0]);
2059
                $element = new Element\Text($attr['name']);
2060
                $element = $this->decorate($element, $attr, $inputFilter);
2061
                $form->add($element);
2062
            }
2063
            if (isset($element->line_password)) {
2064
                $attr = $this->getAttributes($element->line_password[0]);
2065
                $element = new Element\Password($attr['name']);
@@ 2063-2068 (lines=6) @@
2060
                $element = $this->decorate($element, $attr, $inputFilter);
2061
                $form->add($element);
2062
            }
2063
            if (isset($element->line_password)) {
2064
                $attr = $this->getAttributes($element->line_password[0]);
2065
                $element = new Element\Password($attr['name']);
2066
                $element = $this->decorate($element, $attr, $inputFilter);
2067
                $form->add($element);
2068
            }
2069
            if (isset($element->line_hidden)) {
2070
                $attr = $this->getAttributes($element->line_hidden[0]);
2071
                $element = new Element\Hidden($attr['name']);
@@ 2069-2074 (lines=6) @@
2066
                $element = $this->decorate($element, $attr, $inputFilter);
2067
                $form->add($element);
2068
            }
2069
            if (isset($element->line_hidden)) {
2070
                $attr = $this->getAttributes($element->line_hidden[0]);
2071
                $element = new Element\Hidden($attr['name']);
2072
                $element = $this->decorate($element, $attr, $inputFilter);
2073
                $form->add($element);
2074
            }
2075
            if (isset($element->line_email)) {
2076
                $attr = $this->getAttributes($element->line_email[0]);
2077
                $element = new Element\Email($attr['name']);
@@ 2075-2080 (lines=6) @@
2072
                $element = $this->decorate($element, $attr, $inputFilter);
2073
                $form->add($element);
2074
            }
2075
            if (isset($element->line_email)) {
2076
                $attr = $this->getAttributes($element->line_email[0]);
2077
                $element = new Element\Email($attr['name']);
2078
                $element = $this->decorate($element, $attr, $inputFilter);
2079
                $form->add($element);
2080
            }
2081
            if (isset($element->line_radio)) {
2082
                $attr = $this->getAttributes($element->line_radio[0]);
2083
                $element = new Element\Radio($attr['name']);
@@ 2182-2187 (lines=6) @@
2179
                    'allowEmpty' => !$attr['required'],
2180
                )));
2181
            }
2182
            if (isset($element->line_paragraph)) {
2183
                $attr = $this->getAttributes($element->line_paragraph[0]);
2184
                $element = new Element\Textarea($attr['name']);
2185
                $element = $this->decorate($element, $attr, $inputFilter);
2186
                $form->add($element);
2187
            }
2188
            if (isset($element->line_upload)) {
2189
                $attr = $this->getAttributes($element->line_upload[0]);
2190
                $element = new Element\File($attr['name']);