@@ -69,8 +69,7 @@ |
||
| 69 | 69 | try |
| 70 | 70 | { |
| 71 | 71 | return $this->handler->callMethod($this->getPayload()); |
| 72 | - } |
|
| 73 | - catch(TRpcException $e) |
|
| 72 | + } catch(TRpcException $e) |
|
| 74 | 73 | { |
| 75 | 74 | return $this->handler->createErrorResponse($e); |
| 76 | 75 | } |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | { |
| 71 | 71 | return $this->handler->callMethod($this->getPayload()); |
| 72 | 72 | } |
| 73 | - catch(TRpcException $e) |
|
| 73 | + catch (TRpcException $e) |
|
| 74 | 74 | { |
| 75 | 75 | return $this->handler->createErrorResponse($e); |
| 76 | 76 | } |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function current() |
| 71 | 71 | { |
| 72 | - return isset($_SESSION[$this->_key])?$_SESSION[$this->_key]:null; |
|
| 72 | + return isset($_SESSION[$this->_key]) ? $_SESSION[$this->_key] : null; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -430,8 +430,7 @@ |
||
| 430 | 430 | $this->getResponse()->getCookies()->add($cookie); |
| 431 | 431 | } |
| 432 | 432 | return true; |
| 433 | - } |
|
| 434 | - else |
|
| 433 | + } else |
|
| 435 | 434 | return false; |
| 436 | 435 | } |
| 437 | 436 | |
@@ -102,9 +102,9 @@ |
||
| 102 | 102 | throw new TConfigurationException('authmanager_usermanager_invalid', $this->_userManager); |
| 103 | 103 | $this->_userManager = $users; |
| 104 | 104 | } |
| 105 | - $application->attachEventHandler('OnAuthentication', [$this,'doAuthentication']); |
|
| 106 | - $application->attachEventHandler('OnEndRequest', [$this,'leave']); |
|
| 107 | - $application->attachEventHandler('OnAuthorization', [$this,'doAuthorization']); |
|
| 105 | + $application->attachEventHandler('OnAuthentication', [$this, 'doAuthentication']); |
|
| 106 | + $application->attachEventHandler('OnEndRequest', [$this, 'leave']); |
|
| 107 | + $application->attachEventHandler('OnAuthorization', [$this, 'doAuthorization']); |
|
| 108 | 108 | $this->_initialized = true; |
| 109 | 109 | } |
| 110 | 110 | |
@@ -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 | } |
@@ -76,8 +76,7 @@ |
||
| 76 | 76 | $this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveCallbackControl'; |
| 77 | 77 | else |
| 78 | 78 | $this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveControl'; |
| 79 | - } |
|
| 80 | - else |
|
| 79 | + } else |
|
| 81 | 80 | $this->_activeControlType = $type; |
| 82 | 81 | } |
| 83 | 82 | |
@@ -92,8 +92,7 @@ |
||
| 92 | 92 | |
| 93 | 93 | $cs->renderScriptFilesEnd($writer); |
| 94 | 94 | $cs->renderEndScripts($writer); |
| 95 | - } |
|
| 96 | - else |
|
| 95 | + } else |
|
| 97 | 96 | { |
| 98 | 97 | $cs->renderHiddenFieldsBegin($writer); |
| 99 | 98 | |
@@ -101,8 +101,7 @@ |
||
| 101 | 101 | $dt->format('j'), |
| 102 | 102 | $dt->format('Y') |
| 103 | 103 | ); |
| 104 | - } |
|
| 105 | - else |
|
| 104 | + } else |
|
| 106 | 105 | return parent::getDateTimeValue($container, $column, $record); |
| 107 | 106 | } |
| 108 | 107 | } |