@@ -138,8 +138,7 @@ |
||
| 138 | 138 | $ordering[$subs[1][0]] = $subs[2][0]; |
| 139 | 139 | } |
| 140 | 140 | //else what? |
| 141 | - } |
|
| 142 | - else |
|
| 141 | + } else |
|
| 143 | 142 | $ordering[trim($part)] = 'ASC'; |
| 144 | 143 | } |
| 145 | 144 | } |
@@ -244,11 +244,9 @@ |
||
| 244 | 244 | $info['NumericPrecision'] = intval($matches[1]); |
| 245 | 245 | if(count($matches) > 2) |
| 246 | 246 | $info['NumericScale'] = intval($matches[2]); |
| 247 | - } |
|
| 248 | - else |
|
| 247 | + } else |
|
| 249 | 248 | $info['ColumnSize'] = intval($matches[1]); |
| 250 | - } |
|
| 251 | - else |
|
| 249 | + } else |
|
| 252 | 250 | $info['DbType'] = $col['type']; |
| 253 | 251 | |
| 254 | 252 | $tableInfo->Columns[$columnId] = new TPgsqlTableColumn($info); |
@@ -212,8 +212,7 @@ discard block |
||
| 212 | 212 | $config['source']); |
| 213 | 213 | chmod($config['source'], PRADO_CHMOD); //make it deletable |
| 214 | 214 | } |
| 215 | - } |
|
| 216 | - else |
|
| 215 | + } else |
|
| 217 | 216 | { |
| 218 | 217 | throw new TConfigurationException("invalid source dir '{$config['source']}'"); |
| 219 | 218 | } |
@@ -228,8 +227,7 @@ discard block |
||
| 228 | 227 | $config['cache']); |
| 229 | 228 | chmod($config['cache'], PRADO_CHMOD); //make it deletable |
| 230 | 229 | } |
| 231 | - } |
|
| 232 | - else |
|
| 230 | + } else |
|
| 233 | 231 | { |
| 234 | 232 | unset($config['cache']); |
| 235 | 233 | } |
@@ -172,8 +172,7 @@ |
||
| 172 | 172 | { |
| 173 | 173 | eval($str); |
| 174 | 174 | return $result; |
| 175 | - } |
|
| 176 | - catch(Exception $e) |
|
| 175 | + } catch(Exception $e) |
|
| 177 | 176 | { |
| 178 | 177 | return false; |
| 179 | 178 | } |
@@ -425,8 +425,7 @@ discard block |
||
| 425 | 425 | { |
| 426 | 426 | parent::render($writer); |
| 427 | 427 | $this->renderDatePickerButtons($writer); |
| 428 | - } |
|
| 429 | - else |
|
| 428 | + } else |
|
| 430 | 429 | { |
| 431 | 430 | $this->renderDropDownListCalendar($writer); |
| 432 | 431 | if($this->hasDayPattern()) |
@@ -473,8 +472,7 @@ discard block |
||
| 473 | 472 | { |
| 474 | 473 | $this->setText($value); |
| 475 | 474 | return true; |
| 476 | - } |
|
| 477 | - else |
|
| 475 | + } else |
|
| 478 | 476 | return false; |
| 479 | 477 | } |
| 480 | 478 | |
@@ -106,8 +106,7 @@ |
||
| 106 | 106 | $writer->write(THttpUtility::htmlEncode($text)); |
| 107 | 107 | else |
| 108 | 108 | $writer->write($text); |
| 109 | - } |
|
| 110 | - else |
|
| 109 | + } else |
|
| 111 | 110 | parent::render($writer); |
| 112 | 111 | } |
| 113 | 112 | } |
@@ -101,8 +101,7 @@ |
||
| 101 | 101 | { |
| 102 | 102 | $formatter = new TSimpleDateFormatter($dateFormat); |
| 103 | 103 | return $formatter->isValidDate($value); |
| 104 | - } |
|
| 105 | - else |
|
| 104 | + } else |
|
| 106 | 105 | return strtotime($value) > 0; |
| 107 | 106 | } |
| 108 | 107 | return true; |
@@ -72,8 +72,7 @@ |
||
| 72 | 72 | parent::renderContents($writer); |
| 73 | 73 | else |
| 74 | 74 | $writer->write(THttpUtility::htmlEncode($this->getNavigateUrl())); |
| 75 | - } |
|
| 76 | - else |
|
| 75 | + } else |
|
| 77 | 76 | { |
| 78 | 77 | $this->createImage($imageUrl)->renderControl($writer); |
| 79 | 78 | } |
@@ -147,8 +147,7 @@ |
||
| 147 | 147 | parent::render($writer); |
| 148 | 148 | if ($this->getActiveControl()->canUpdateClientSide()) |
| 149 | 149 | $this->getPage()->getCallbackClient()->replaceContent($this, $writer); |
| 150 | - } |
|
| 151 | - else { |
|
| 150 | + } else { |
|
| 152 | 151 | $this->getPage()->getAdapter()->registerControlToRender($this, $writer); |
| 153 | 152 | // If we update a TActiveTableCell on callback, we shouldn't update all childs, |
| 154 | 153 | // because the whole content will be replaced by the parent. |