Code Duplication    Length = 9-9 lines in 3 locations

core/services/editor/EditorBlockAdminManager.php 1 location

@@ 106-114 (lines=9) @@
103
104
105
106
    public function registerAdminScripts()
107
    {
108
        wp_register_script(
109
            'ee-event-editor-blocks',
110
            $this->domain->distributionAssetsUrl() . 'ee-event-editor-blocks.dist.js',
111
            array('wp-blocks'),
112
            filemtime($this->domain->distributionAssetsPath() . 'ee-event-editor-blocks.dist.js')
113
        );
114
    }
115
}
116

core/services/editor/EditorBlockRegistrationManager.php 2 locations

@@ 156-164 (lines=9) @@
153
    }
154
155
156
    public function registerStyles()
157
    {
158
        wp_register_style(
159
            'ee-block-styles',
160
            $this->domain->distributionAssetsUrl() . 'style.css',
161
            array(),
162
            filemtime($this->domain->distributionAssetsPath() . 'style.css')
163
        );
164
    }
165
166
167
    public function registerScripts()
@@ 167-175 (lines=9) @@
164
    }
165
166
167
    public function registerScripts()
168
    {
169
        wp_register_script(
170
            'ee-shortcode-blocks',
171
            $this->domain->distributionAssetsUrl() . 'ee-shortcode-blocks.dist.js',
172
            array('wp-blocks'),
173
            filemtime($this->domain->distributionAssetsPath() . 'ee-shortcode-blocks.dist.js')
174
        );
175
    }
176
177
}
178