Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 936-938 (lines=3) @@
933
934
        if ( method_exists( self::$loaded[ $type ], 'value' ) ) {
935
            if ( is_array( $value ) && in_array( $type, self::tableless_field_types() ) ) {
936
                foreach ( $value as &$display_value ) {
937
                    $display_value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
938
                }
939
            }
940
            else
941
                $value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $value, $name, $options, $pod, $id, $traverse ) );
@@ 967-969 (lines=3) @@
964
965
        if ( method_exists( self::$loaded[ $type ], 'display' ) ) {
966
            if ( is_array( $value ) && !in_array( $type, $tableless_field_types ) ) {
967
                foreach ( $value as $k => $display_value ) {
968
                    $value[ $k ] = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
969
                }
970
            }
971
            else
972
                $value = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $value, $name, $options, $pod, $id, $traverse ) );