Code Duplication    Length = 4-4 lines in 2 locations

core/services/assets/Registry.php 2 locations

@@ 737-740 (lines=4) @@
734
        if (isset($this->script_handles_with_data[ $script_handle ])) {
735
            global $wp_scripts;
736
            $unset_handle = false;
737
            if ($wp_scripts->get_data($script_handle, 'data')) {
738
                unset($wp_scripts->registered[ $script_handle ]->extra['data']);
739
                $unset_handle = true;
740
            }
741
            //deal with inline_scripts
742
            if ($wp_scripts->get_data($script_handle, 'before')) {
743
                unset($wp_scripts->registered[ $script_handle ]->extra['before']);
@@ 742-745 (lines=4) @@
739
                $unset_handle = true;
740
            }
741
            //deal with inline_scripts
742
            if ($wp_scripts->get_data($script_handle, 'before')) {
743
                unset($wp_scripts->registered[ $script_handle ]->extra['before']);
744
                $unset_handle = true;
745
            }
746
            if ($wp_scripts->get_data($script_handle, 'after')) {
747
                unset($wp_scripts->registered[ $script_handle ]->extra['after']);
748
            }