Code Duplication    Length = 3-6 lines in 2 locations

module/Core/src/Core/Form/Container.php 1 location

@@ 303-305 (lines=3) @@
300
        }
301
302
        $options = isset($form['options']) ? $form['options'] : array();
303
        if (!isset($options['name'])) {
304
            $options['name'] = isset($form['name']) ? $form['name'] : $key;
305
        }
306
        if (!isset($options['use_post_array'])) {
307
            $options['use_post_array'] = true;
308
        }

module/Auth/src/Auth/Factory/Form/SocialProfilesFieldsetFactory.php 1 location

@@ 64-69 (lines=6) @@
61
                $router->assemble(array('id' => 'null'), array('name' => 'lang/applications/detail'), true)
62
                . '?action=social-profile&network=%s';
63
        }
64
        if (isset($options['name'])) {
65
            $name = $options['name'];
66
            unset($options['name']);
67
        } else {
68
            $name = 'social_profiles';
69
        }
70
        $options['is_disable_capable'] = false;
71
        $options['is_disable_elements_capable'] = false;
72