Code Duplication    Length = 4-4 lines in 2 locations

core/services/assets/Registry.php 2 locations

@@ 565-568 (lines=4) @@
562
        if (isset($this->script_handles_with_data[ $script_handle ])) {
563
            global $wp_scripts;
564
            $unset_handle = false;
565
            if ($wp_scripts->get_data($script_handle, 'data')) {
566
                unset($wp_scripts->registered[ $script_handle ]->extra['data']);
567
                $unset_handle = true;
568
            }
569
            //deal with inline_scripts
570
            if ($wp_scripts->get_data($script_handle, 'before')) {
571
                unset($wp_scripts->registered[ $script_handle ]->extra['before']);
@@ 570-573 (lines=4) @@
567
                $unset_handle = true;
568
            }
569
            //deal with inline_scripts
570
            if ($wp_scripts->get_data($script_handle, 'before')) {
571
                unset($wp_scripts->registered[ $script_handle ]->extra['before']);
572
                $unset_handle = true;
573
            }
574
            if ($wp_scripts->get_data($script_handle, 'after')) {
575
                unset($wp_scripts->registered[ $script_handle ]->extra['after']);
576
            }