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

@@ 317-319 (lines=3) @@
314
        }
315
316
        $options = isset($form['options']) ? $form['options'] : array();
317
        if (!isset($options['name'])) {
318
            $options['name'] = isset($form['name']) ? $form['name'] : $key;
319
        }
320
        if (!isset($options['use_post_array'])) {
321
            $options['use_post_array'] = true;
322
        }