Code Duplication    Length = 6-6 lines in 5 locations

src/Service/Game.php 5 locations

@@ 2194-2199 (lines=6) @@
2191
        $factory = new InputFactory();
2192
        
2193
        foreach ($formPV as $element) {
2194
            if (isset($element->line_text)) {
2195
                $attr  = $this->getAttributes($element->line_text[0]);
2196
                $element = new Element\Text($attr['name']);
2197
                $element = $this->decorate($element, $attr, $inputFilter);
2198
                $form->add($element);
2199
            }
2200
            if (isset($element->line_password)) {
2201
                $attr = $this->getAttributes($element->line_password[0]);
2202
                $element = new Element\Password($attr['name']);
@@ 2200-2205 (lines=6) @@
2197
                $element = $this->decorate($element, $attr, $inputFilter);
2198
                $form->add($element);
2199
            }
2200
            if (isset($element->line_password)) {
2201
                $attr = $this->getAttributes($element->line_password[0]);
2202
                $element = new Element\Password($attr['name']);
2203
                $element = $this->decorate($element, $attr, $inputFilter);
2204
                $form->add($element);
2205
            }
2206
            if (isset($element->line_hidden)) {
2207
                $attr = $this->getAttributes($element->line_hidden[0]);
2208
                $element = new Element\Hidden($attr['name']);
@@ 2206-2211 (lines=6) @@
2203
                $element = $this->decorate($element, $attr, $inputFilter);
2204
                $form->add($element);
2205
            }
2206
            if (isset($element->line_hidden)) {
2207
                $attr = $this->getAttributes($element->line_hidden[0]);
2208
                $element = new Element\Hidden($attr['name']);
2209
                $element = $this->decorate($element, $attr, $inputFilter);
2210
                $form->add($element);
2211
            }
2212
            if (isset($element->line_email)) {
2213
                $attr = $this->getAttributes($element->line_email[0]);
2214
                $element = new Element\Email($attr['name']);
@@ 2212-2217 (lines=6) @@
2209
                $element = $this->decorate($element, $attr, $inputFilter);
2210
                $form->add($element);
2211
            }
2212
            if (isset($element->line_email)) {
2213
                $attr = $this->getAttributes($element->line_email[0]);
2214
                $element = new Element\Email($attr['name']);
2215
                $element = $this->decorate($element, $attr, $inputFilter);
2216
                $form->add($element);
2217
            }
2218
            if (isset($element->line_radio)) {
2219
                $attr = $this->getAttributes($element->line_radio[0]);
2220
                $element = new Element\Radio($attr['name']);
@@ 2319-2324 (lines=6) @@
2316
                    'allowEmpty' => !$attr['required'],
2317
                )));
2318
            }
2319
            if (isset($element->line_paragraph)) {
2320
                $attr = $this->getAttributes($element->line_paragraph[0]);
2321
                $element = new Element\Textarea($attr['name']);
2322
                $element = $this->decorate($element, $attr, $inputFilter);
2323
                $form->add($element);
2324
            }
2325
            if (isset($element->line_upload)) {
2326
                $attr = $this->getAttributes($element->line_upload[0]);
2327
                $element = new Element\File($attr['name']);