@@ -22,8 +22,7 @@ |
||
22 | 22 | if(is_array($val)) |
23 | 23 | { |
24 | 24 | $result[$key] = $this->traverseArray($val, ($level+1)); |
25 | - } |
|
26 | - else |
|
25 | + } else |
|
27 | 26 | { |
28 | 27 | $result[$key] = parseVariable($val)->toString(); |
29 | 28 | } |
@@ -38,8 +38,7 @@ |
||
38 | 38 | if($error instanceof XMLHelper_DOMErrors_Error) |
39 | 39 | { |
40 | 40 | $this->errors[] = $error; |
41 | - } |
|
42 | - else if($error instanceof \LibXMLError) |
|
41 | + } else if($error instanceof \LibXMLError) |
|
43 | 42 | { |
44 | 43 | $this->errors[] = new XMLHelper_DOMErrors_Error($error); |
45 | 44 | } |
@@ -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 | } |
@@ -111,8 +111,7 @@ discard block |
||
111 | 111 | if($datefrom instanceof DateTime) |
112 | 112 | { |
113 | 113 | $converter->setDateFrom($datefrom); |
114 | - } |
|
115 | - else |
|
114 | + } else |
|
116 | 115 | { |
117 | 116 | $converter->setDateFrom(self::timestamp2date($datefrom)); |
118 | 117 | } |
@@ -120,8 +119,7 @@ discard block |
||
120 | 119 | if($dateto instanceof DateTime) |
121 | 120 | { |
122 | 121 | $converter->setDateTo($dateto); |
123 | - } |
|
124 | - else if($dateto > 0) |
|
122 | + } else if($dateto > 0) |
|
125 | 123 | { |
126 | 124 | $converter->setDateTo(self::timestamp2date($dateto)); |
127 | 125 | } |