Completed
Pull Request — devel (#1344)
by
unknown
02:32
created
community/Nexcessnet/Turpentine/Model/Varnish/Configurator/Abstract.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -790,7 +790,7 @@  discard block
 block discarded – undo
790 790
         $tpl = <<<EOS
791 791
 set req.http.X-Normalized-User-Agent = "other";
792 792
 EOS;
793
-        if(!empty($mobileRegexp)){
793
+        if ( ! empty($mobileRegexp)) {
794 794
             $tplContent = '
795 795
             if (req.http.User-Agent ~ "'.$mobileRegexp.'") {
796 796
         set req.http.X-Normalized-User-Agent = "mobile";
@@ -926,8 +926,8 @@  discard block
 block discarded – undo
926 926
         $baseUrl = str_replace(array('http://', 'https://'), '', $baseUrl);
927 927
         $baseUrl = rtrim($baseUrl, '/');
928 928
 
929
-        $baseUrl = str_replace(array('http://','https://'), '', $baseUrl);
930
-        $baseUrl = rtrim($baseUrl,'/');
929
+        $baseUrl = str_replace(array('http://', 'https://'), '', $baseUrl);
930
+        $baseUrl = rtrim($baseUrl, '/');
931 931
 
932 932
         switch (Mage::getStoreConfig('turpentine_varnish/servers/version')) {
933 933
             case 4.0:
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
     }
1010 1010
 }
1011 1011
 EOS;
1012
-        } else{
1012
+        } else {
1013 1013
             $tpl_750 = '
1014 1014
 sub vcl_synth {
1015 1015
     if (resp.status == 750) {
Please login to merge, or discard this patch.