Mygento_Geoip_Model_Info::getDatFileDownloadDate()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
/**
4
 *
5
 *
6
 * @category Mygento
7
 * @package Mygento_Geoip
8
 * @copyright 2014 NKS LLC. (https://www.mygento.ru)
9
 */
10
class Mygento_Geoip_Model_Info extends Mygento_Geoip_Model_Abstract
11
{
12
13
    public function getDatFileDownloadDate()
14
    {
15
        $io = new Varien_Io_File();
16
        return $io->fileExists($this->local_file, true) ? filemtime($this->local_file) : 0;
17
    }
18
}
19