@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public static function filterPagesByEnvironmentType($sspages, $env) { |
78 | 78 | $arr = array(); |
79 | - if(preg_match("/^(dev|test|live)$/",$env) === 1){ |
|
79 | + if (preg_match("/^(dev|test|live)$/", $env) === 1) { |
|
80 | 80 | foreach ($sspages as $sspage) { |
81 | 81 | if (!$sspage instanceof SilverstripePage) { |
82 | 82 | continue; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | if (!$sspage instanceof SilverstripePage) { |
102 | 102 | continue; |
103 | 103 | } |
104 | - if (preg_match("/$filterRegex/",$sspage->getVersion())) { |
|
104 | + if (preg_match("/$filterRegex/", $sspage->getVersion())) { |
|
105 | 105 | array_push($arr, $sspage); |
106 | 106 | } |
107 | 107 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $arr = array(); |
139 | 139 | $single = explode(".", $version); |
140 | 140 | |
141 | - for ($i = 0;$i<3;$i++) { |
|
141 | + for ($i = 0; $i < 3; $i++) { |
|
142 | 142 | if (!isset($single[$i])) { |
143 | 143 | $x = 0; |
144 | 144 | } else { |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | { |
155 | 155 | $v1 = Util::VersionStringsToArray($version1); |
156 | 156 | $v2 = Util::VersionStringsToArray($version2); |
157 | - for ($i = 0; $i<3;$i++) { |
|
157 | + for ($i = 0; $i < 3; $i++) { |
|
158 | 158 | if ($v1[$i] < $v2[$i]) { |
159 | 159 | return false; |
160 | 160 | } |
@@ -176,10 +176,10 @@ discard block |
||
176 | 176 | } |
177 | 177 | } |
178 | 178 | |
179 | - public static function reportError($string,$die = true) { |
|
180 | - if($die) { |
|
179 | + public static function reportError($string, $die = true) { |
|
180 | + if ($die) { |
|
181 | 181 | exit($string); |
182 | - }else{ |
|
182 | + } else { |
|
183 | 183 | echo($string); |
184 | 184 | } |
185 | 185 | } |
@@ -179,7 +179,7 @@ |
||
179 | 179 | public static function reportError($string,$die = true) { |
180 | 180 | if($die) { |
181 | 181 | exit($string); |
182 | - }else{ |
|
182 | + } else{ |
|
183 | 183 | echo($string); |
184 | 184 | } |
185 | 185 | } |