Code Duplication    Length = 3-3 lines in 4 locations

src/Eccube/Form/Type/NameType.php 1 location

@@ 60-62 (lines=3) @@
57
            ), $options['firstname_options']['constraints']);
58
        }
59
60
        if (!isset($options['options']['error_bubbling'])) {
61
            $options['options']['error_bubbling'] = $options['error_bubbling'];
62
        }
63
64
        if (empty($options['lastname_name'])) {
65
            $options['lastname_name'] = $builder->getName() . '01';

src/Eccube/Form/Type/ZipType.php 1 location

@@ 58-60 (lines=3) @@
55
            ), $options['options']['constraints']);
56
        }
57
58
        if (!isset($options['options']['error_bubbling'])) {
59
            $options['options']['error_bubbling'] = $options['error_bubbling'];
60
        }
61
62
        if (empty($options['zip01_name'])) {
63
            $options['zip01_name'] = $builder->getName().'01';

src/Eccube/Form/Type/AddressType.php 1 location

@@ 67-69 (lines=3) @@
64
            ), $options['addr02_options']['constraints']);
65
        }
66
67
        if (!isset($options['options']['error_bubbling'])) {
68
            $options['options']['error_bubbling'] = $options['error_bubbling'];
69
        }
70
71
        $builder
72
            ->add($options['pref_name'], 'pref', array_merge_recursive($options['options'], $options['pref_options']))

src/Eccube/Form/Type/TelType.php 1 location

@@ 56-58 (lines=3) @@
53
                new Assert\NotBlank(array()),
54
            ), $options['options']['constraints']);
55
        }
56
        if (!isset($options['options']['error_bubbling'])) {
57
            $options['options']['error_bubbling'] = $options['error_bubbling'];
58
        }
59
        // nameは呼び出しもので定義したものを使う
60
        if (empty($options['tel01_name'])) {
61
            $options['tel01_name'] = $builder->getName().'01';