Mygento_Geoip_Block_Init::__construct()   A
last analyzed

Complexity

Conditions 3
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 3
nc 2
nop 0
1
<?php
2
3
class Mygento_Geoip_Block_Init extends Mage_Core_Block_Template
4
{
5
6
    public function __construct()
7
    {
8
        if (!Mage::getStoreConfig('geoip/general/enabled') || !Mage::getStoreConfig('geoip/general/layout')) {
9
            return;
10
        }
11
        Mage::getSingleton('geoip/city');
12
        Mage::getSingleton('geoip/country');
13
    }
14
}
15