Code Duplication    Length = 5-5 lines in 2 locations

core/db_classes/EE_Payment.class.php 2 locations

@@ 219-223 (lines=5) @@
216
     */
217
    public function set_details($details = '')
218
    {
219
        if (is_array($details)) {
220
            array_walk_recursive($details, array($this, '_strip_all_tags_within_array'));
221
        } else {
222
            $details = wp_strip_all_tags($details);
223
        }
224
        $this->set('PAY_details', $details);
225
    }
226
@@ 758-762 (lines=5) @@
755
        if (is_object($item)) {
756
            $item = (array) $item;
757
        }
758
        if (is_array($item)) {
759
            array_walk_recursive($item, array($this, '_strip_all_tags_within_array'));
760
        } else {
761
            $item = wp_strip_all_tags($item);
762
        }
763
    }
764
765