Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 52-56 (lines=5) @@
49
        $options['zip02_options']['required'] = $options['required'];
50
51
        // required の場合は NotBlank も追加する
52
        if ($options['required']) {
53
            $options['options']['constraints'] = array_merge(array(
54
                new Assert\NotBlank(array()),
55
            ), $options['options']['constraints']);
56
        }
57
58
        if (!isset($options['options']['error_bubbling'])) {
59
            $options['options']['error_bubbling'] = $options['error_bubbling'];

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

@@ 51-55 (lines=5) @@
48
        $options['tel02_options']['required'] = $options['required'];
49
        $options['tel03_options']['required'] = $options['required'];
50
        // required の場合は NotBlank も追加する
51
        if ($options['required']) {
52
            $options['options']['constraints'] = array_merge(array(
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
        }