Code Duplication    Length = 17-17 lines in 2 locations

class.FlipPage.php 1 location

@@ 428-444 (lines=17) @@
425
    /**
426
     * Setup minified and cdn class varibles from defaults or the settings file
427
     */
428
    private function setupVars()
429
    {
430
        if($this->minified !== null && $this->cdn !== null)
431
        {
432
            return;
433
        }
434
        $this->minified = 'min';
435
        $this->cdn      = 'cdn';
436
        if($this->settings->getGlobalSetting('use_minified', true) == false)
437
        {
438
            $this->minified = 'no';
439
        }
440
        if($this->settings->getGlobalSetting('use_cdn', true) == false)
441
        {
442
            $this->cdn = 'no';
443
        }
444
    }
445
446
    /**
447
     * Add a JavaScript file from its src URI

Http/Html/class.FlipPage.php 1 location

@@ 422-438 (lines=17) @@
419
    /**
420
     * Setup minified and cdn class varibles from defaults or the settings file
421
     */
422
    private function setupVars()
423
    {
424
        if($this->minified !== null && $this->cdn !== null)
425
        {
426
            return;
427
        }
428
        $this->minified = 'min';
429
        $this->cdn      = 'cdn';
430
        if($this->settings->getGlobalSetting('use_minified', true) == false)
431
        {
432
            $this->minified = 'no';
433
        }
434
        if($this->settings->getGlobalSetting('use_cdn', true) == false)
435
        {
436
            $this->cdn = 'no';
437
        }
438
    }
439
    /**
440
     * Add a JavaScript file from its src URI
441
     *