@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $array = array_map('trim', $array); |
168 | 168 | $array = array_filter($array); |
169 | 169 | if ($currentIp) { |
170 | - if (! in_array($currentIp, $array, true)) { |
|
170 | + if (!in_array($currentIp, $array, true)) { |
|
171 | 171 | $array[] = $currentIp; |
172 | 172 | } |
173 | 173 | } |
@@ -177,8 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | public function onAfterWrite() |
179 | 179 | { |
180 | - if (self::$loop_count < 2) { |
|
181 | - ++self::$loop_count; |
|
180 | + if (self::$loop_count < 2) {++self::$loop_count; |
|
182 | 181 | $this->CreateFiles(); |
183 | 182 | // 2 = only real changes. |
184 | 183 | if ($this->owner->isChanged('UnderConstructionOnOff', 2)) { |
@@ -204,7 +203,7 @@ discard block |
||
204 | 203 | |
205 | 204 | public function requireDefaultRecords() |
206 | 205 | { |
207 | - if (! Director::is_cli()) { |
|
206 | + if (!Director::is_cli()) { |
|
208 | 207 | $this->getUnderConstructionCalculatedValues()->CreateDirAndTest(); |
209 | 208 | } |
210 | 209 | } |