@@ -790,7 +790,7 @@ discard block |
||
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 |
||
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 |
||
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) { |