Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 927-929 (lines=3) @@
924
925
        if ( method_exists( self::$loaded[ $type ], 'value' ) ) {
926
            if ( is_array( $value ) && in_array( $type, self::tableless_field_types() ) ) {
927
                foreach ( $value as &$display_value ) {
928
                    $display_value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
929
                }
930
            }
931
            else
932
                $value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $value, $name, $options, $pod, $id, $traverse ) );
@@ 958-960 (lines=3) @@
955
956
        if ( method_exists( self::$loaded[ $type ], 'display' ) ) {
957
            if ( is_array( $value ) && !in_array( $type, $tableless_field_types ) ) {
958
                foreach ( $value as $k => $display_value ) {
959
                    $value[ $k ] = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
960
                }
961
            }
962
            else
963
                $value = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $value, $name, $options, $pod, $id, $traverse ) );