Code Duplication    Length = 14-14 lines in 2 locations

core/services/assets/Registry.php 2 locations

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