@@ -24,7 +24,7 @@ |
||
24 | 24 | public function setTemplate($template) |
25 | 25 | { |
26 | 26 | if ((Mage::getConfig()->getModuleConfig('Mage_Poll')->is('active', 'true')) && |
27 | - (!Mage::getStoreConfig('advanced/modules_disable_output/Mage_Poll'))) |
|
27 | + ( ! Mage::getStoreConfig('advanced/modules_disable_output/Mage_Poll'))) |
|
28 | 28 | { |
29 | 29 | $this->_template = $template; |
30 | 30 | $this->setPollTemplate('turpentine/ajax.phtml', 'poll'); |
@@ -29,8 +29,7 @@ |
||
29 | 29 | $this->_template = $template; |
30 | 30 | $this->setPollTemplate('turpentine/ajax.phtml', 'poll'); |
31 | 31 | $this->setPollTemplate('turpentine/ajax.phtml', 'results'); |
32 | - } |
|
33 | - else |
|
32 | + } else |
|
34 | 33 | { |
35 | 34 | // Mage_Poll is disabled, so do nothing |
36 | 35 | } |
@@ -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) { |