Code Duplication    Length = 14-14 lines in 2 locations

core/services/assets/Registry.php 2 locations

@@ 297-310 (lines=14) @@
294
            $this->jsdata['templates'] = array();
295
        }
296
        //no overrides allowed.
297
        if (isset($this->jsdata['templates'][ $template_reference ])) {
298
            if (! $this->debug()) {
299
                return;
300
            }
301
            throw new InvalidArgumentException(
302
                sprintf(
303
                    __(
304
                        'The %1$s key already exists for the templates array in the js data array.  No overrides are allowed.',
305
                        'event_espresso'
306
                    ),
307
                    $template_reference
308
                )
309
            );
310
        }
311
        $this->jsdata['templates'][ $template_reference ] = $template_content;
312
    }
313
@@ 473-486 (lines=14) @@
470
     */
471
    public function registerManifestFile($namespace, $url_base, $manifest_file)
472
    {
473
        if (isset($this->manifest_data[ $namespace ])) {
474
            if (! $this->debug()) {
475
                return;
476
            }
477
            throw new InvalidArgumentException(
478
                sprintf(
479
                    esc_html__(
480
                        'The namespace for this manifest file has already been registered, choose a namespace other than %s',
481
                        'event_espresso'
482
                    ),
483
                    $namespace
484
                )
485
            );
486
        }
487
        if (filter_var($url_base, FILTER_VALIDATE_URL) === false) {
488
            if (is_admin()) {
489
                EE_Error::add_error(