Code Duplication    Length = 4-4 lines in 2 locations

core/services/assets/Registry.php 2 locations

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