Mygento_Geoip_Block_Init   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 3
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