Code Duplication    Length = 3-6 lines in 2 locations

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

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

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
        }