Code Duplication    Length = 4-4 lines in 2 locations

core/services/assets/Registry.php 2 locations

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