Completed
Pull Request — devel (#1345)
by
unknown
13:44
created
community/Nexcessnet/Turpentine/Model/Varnish/Configurator/Abstract.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
         $tpl = <<<EOS
814 814
 set req.http.X-Normalized-User-Agent = "other";
815 815
 EOS;
816
-        if(!empty($mobileRegexp)){
816
+        if ( ! empty($mobileRegexp)) {
817 817
             $tplContent = '
818 818
             if (req.http.User-Agent ~ "'.$mobileRegexp.'") {
819 819
         set req.http.X-Normalized-User-Agent = "mobile";
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
         return $hosts;
1011 1011
     }
1012 1012
 
1013
-    protected function _stripHost ($baseUrl){
1013
+    protected function _stripHost($baseUrl) {
1014 1014
         return  rtrim(str_replace(array('http://', 'https://'), '', $baseUrl), '/');
1015 1015
     }
1016 1016
 
@@ -1074,7 +1074,7 @@  discard block
 block discarded – undo
1074 1074
     }
1075 1075
 }
1076 1076
 EOS;
1077
-        } else{
1077
+        } else {
1078 1078
             $tpl_750 = '
1079 1079
 sub vcl_synth {
1080 1080
     if (resp.status == 750) {
Please login to merge, or discard this patch.