Code Duplication    Length = 4-4 lines in 2 locations

core/services/assets/Registry.php 2 locations

@@ 553-556 (lines=4) @@
550
        if (isset($this->script_handles_with_data[ $script_handle ])) {
551
            global $wp_scripts;
552
            $unset_handle = false;
553
            if ($wp_scripts->get_data($script_handle, 'data')) {
554
                unset($wp_scripts->registered[ $script_handle ]->extra['data']);
555
                $unset_handle = true;
556
            }
557
            //deal with inline_scripts
558
            if ($wp_scripts->get_data($script_handle, 'before')) {
559
                unset($wp_scripts->registered[ $script_handle ]->extra['before']);
@@ 558-561 (lines=4) @@
555
                $unset_handle = true;
556
            }
557
            //deal with inline_scripts
558
            if ($wp_scripts->get_data($script_handle, 'before')) {
559
                unset($wp_scripts->registered[ $script_handle ]->extra['before']);
560
                $unset_handle = true;
561
            }
562
            if ($wp_scripts->get_data($script_handle, 'after')) {
563
                unset($wp_scripts->registered[ $script_handle ]->extra['after']);
564
            }