Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

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