Completed
Push — master ( 57cf89...484c61 )
by Nikita
04:13 queued 01:54
created
app/code/community/Mygento/Geoip/Helper/Data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         $zip = new ZipArchive;
27 27
         if ($zip->open($archive) === true) {
28
-            $zip->extractTo($destination . DS);
28
+            $zip->extractTo($destination.DS);
29 29
             $zip->close();
30 30
             return true;
31 31
         }
Please login to merge, or discard this patch.
app/code/community/Mygento/Geoip/Model/City.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function getCityByIp($ip)
25 25
     {
26
-        if(!$this->isFileExists()){
26
+        if (!$this->isFileExists()) {
27 27
             return null;
28 28
         }
29 29
         $SxGeo = new GeoIP_SxGeo($this->local_file);
Please login to merge, or discard this patch.
app/code/community/Mygento/Geoip/Model/Abstract.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
 
18 18
     public function __construct()
19 19
     {
20
-        $this->local_dir = Mage::getBaseDir('var') . DS . 'geoip';
21
-        $this->local_file = $this->local_dir . DS . 'SxGeoCity.dat';
22
-        $this->local_archive = $this->local_dir . DS . 'SxGeoCity_utf8.zip';
20
+        $this->local_dir = Mage::getBaseDir('var').DS.'geoip';
21
+        $this->local_file = $this->local_dir.DS.'SxGeoCity.dat';
22
+        $this->local_archive = $this->local_dir.DS.'SxGeoCity_utf8.zip';
23 23
         $this->remote_archive = 'http://sypexgeo.net/files/SxGeoCity_utf8.zip';
24 24
     }
25 25
 
Please login to merge, or discard this patch.
app/code/community/Mygento/Geoip/Block/System/Config/Status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,6 @@
 block discarded – undo
32 32
         } else {
33 33
             $date = '-';
34 34
         }
35
-        return '<div id="sync_update_date">' . $date . '</div>';
35
+        return '<div id="sync_update_date">'.$date.'</div>';
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
app/code/community/Mygento/Geoip/Block/Version.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
      */
13 13
     public function render(Varien_Data_Form_Element_Abstract $element)
14 14
     {
15
-        $info = '<fieldset class="config success-msg" style="padding-left:30px;"><a target="_blank" href="https://www.mygento.ru/"><img src="//www.mygento.ru/media/favicon/default/favicon.png" width="16" height="16" />' . $this->__('Magento Development') . '</a>';
16
-        $info.='<a style="float:right" target="_blank" href="https://github.com/mygento/geoip">' . $this->__('Module on Github') . '</a></fieldset>';
15
+        $info = '<fieldset class="config success-msg" style="padding-left:30px;"><a target="_blank" href="https://www.mygento.ru/"><img src="//www.mygento.ru/media/favicon/default/favicon.png" width="16" height="16" />'.$this->__('Magento Development').'</a>';
16
+        $info .= '<a style="float:right" target="_blank" href="https://github.com/mygento/geoip">'.$this->__('Module on Github').'</a></fieldset>';
17 17
         return $info;
18 18
     }
19 19
 }
Please login to merge, or discard this patch.