Code Duplication    Length = 14-14 lines in 2 locations

core/services/assets/Registry.php 2 locations

@@ 305-318 (lines=14) @@
302
            $this->jsdata['templates'] = array();
303
        }
304
        //no overrides allowed.
305
        if (isset($this->jsdata['templates'][ $template_reference ])) {
306
            if (! $this->debug()) {
307
                return;
308
            }
309
            throw new InvalidArgumentException(
310
                sprintf(
311
                    __(
312
                        'The %1$s key already exists for the templates array in the js data array.  No overrides are allowed.',
313
                        'event_espresso'
314
                    ),
315
                    $template_reference
316
                )
317
            );
318
        }
319
        $this->jsdata['templates'][ $template_reference ] = $template_content;
320
    }
321
@@ 481-494 (lines=14) @@
478
     */
479
    public function registerManifestFile($namespace, $url_base, $manifest_file)
480
    {
481
        if (isset($this->manifest_data[ $namespace ])) {
482
            if (! $this->debug()) {
483
                return;
484
            }
485
            throw new InvalidArgumentException(
486
                sprintf(
487
                    esc_html__(
488
                        'The namespace for this manifest file has already been registered, choose a namespace other than %s',
489
                        'event_espresso'
490
                    ),
491
                    $namespace
492
                )
493
            );
494
        }
495
        if (filter_var($url_base, FILTER_VALIDATE_URL) === false) {
496
            if (is_admin()) {
497
                EE_Error::add_error(