@@ -261,8 +261,7 @@ |
||
261 | 261 | $curlCode, |
262 | 262 | curl_error($ch).' | Explanation: '.curl_strerror($curlCode) |
263 | 263 | ); |
264 | - } |
|
265 | - else |
|
264 | + } else |
|
266 | 265 | { |
267 | 266 | $this->response->setBody((string)$output); |
268 | 267 | } |
@@ -136,8 +136,7 @@ |
||
136 | 136 | if(abs($unitValue) > 1) |
137 | 137 | { |
138 | 138 | $item .= $def['plural']; |
139 | - } |
|
140 | - else |
|
139 | + } else |
|
141 | 140 | { |
142 | 141 | $item .= $def['singular']; |
143 | 142 | } |
@@ -191,8 +191,7 @@ discard block |
||
191 | 191 | if ($item->isDir()) |
192 | 192 | { |
193 | 193 | FileHelper::copyTree($itemPath, $target . '/' . $baseName); |
194 | - } |
|
195 | - else if($item->isFile()) |
|
194 | + } else if($item->isFile()) |
|
196 | 195 | { |
197 | 196 | self::copyFile($itemPath, $target . '/' . $baseName); |
198 | 197 | } |
@@ -225,8 +224,7 @@ discard block |
||
225 | 224 | if(!file_exists($targetFolder)) |
226 | 225 | { |
227 | 226 | self::createFolder($targetFolder); |
228 | - } |
|
229 | - else if(!is_writable($targetFolder)) |
|
227 | + } else if(!is_writable($targetFolder)) |
|
230 | 228 | { |
231 | 229 | throw new FileHelper_Exception( |
232 | 230 | sprintf('Target folder [%s] is not writable.', basename($targetFolder)), |
@@ -715,8 +713,7 @@ discard block |
||
715 | 713 | if(isset($options['relative-path']) && $options['relative-path'] === true) |
716 | 714 | { |
717 | 715 | $finder->setPathmodeRelative(); |
718 | - } |
|
719 | - else if(isset($options['absolute-path']) && $options['absolute-path'] === true) |
|
716 | + } else if(isset($options['absolute-path']) && $options['absolute-path'] === true) |
|
720 | 717 | { |
721 | 718 | $finder->setPathmodeAbsolute(); |
722 | 719 | } |
@@ -251,8 +251,7 @@ discard block |
||
251 | 251 | if(isset($this->info['scheme'])) |
252 | 252 | { |
253 | 253 | $this->info['scheme'] = strtolower($this->info['scheme']); |
254 | - } |
|
255 | - else |
|
254 | + } else |
|
256 | 255 | { |
257 | 256 | $scheme = URLInfo_Schemes::detectScheme($this->url); |
258 | 257 | if(!empty($scheme)) { |
@@ -300,8 +299,7 @@ discard block |
||
300 | 299 | if(is_array($val)) |
301 | 300 | { |
302 | 301 | $val = $this->restoreUnicodeChars($val); |
303 | - } |
|
304 | - else |
|
302 | + } else |
|
305 | 303 | { |
306 | 304 | $val = $this->restoreUnicodeChar($val); |
307 | 305 | } |
@@ -49,8 +49,7 @@ |
||
49 | 49 | try |
50 | 50 | { |
51 | 51 | parent::__construct($datetime, $timeZone); |
52 | - } |
|
53 | - catch (Exception $e) |
|
52 | + } catch (Exception $e) |
|
54 | 53 | { |
55 | 54 | throw new ConvertHelper_Exception( |
56 | 55 | 'Failed to create date from string.', |
@@ -398,8 +398,7 @@ discard block |
||
398 | 398 | if($datefrom instanceof DateTime) |
399 | 399 | { |
400 | 400 | $converter->setDateFrom($datefrom); |
401 | - } |
|
402 | - else |
|
401 | + } else |
|
403 | 402 | { |
404 | 403 | $converter->setDateFrom(ConvertHelper_Date::fromTimestamp($datefrom)); |
405 | 404 | } |
@@ -407,8 +406,7 @@ discard block |
||
407 | 406 | if($dateto instanceof DateTime) |
408 | 407 | { |
409 | 408 | $converter->setDateTo($dateto); |
410 | - } |
|
411 | - else if($dateto > 0) |
|
409 | + } else if($dateto > 0) |
|
412 | 410 | { |
413 | 411 | $converter->setDateTo(ConvertHelper_Date::fromTimestamp($dateto)); |
414 | 412 | } |
@@ -105,8 +105,7 @@ |
||
105 | 105 | if($date->format('d.m.Y') === $today->format('d.m.Y')) |
106 | 106 | { |
107 | 107 | $label = t('Today'); |
108 | - } |
|
109 | - else |
|
108 | + } else |
|
110 | 109 | { |
111 | 110 | $label = $date->format('d') . '. ' . self::month2string((int)$date->format('m'), $shortMonth) . ' '; |
112 | 111 |