@@ -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 |
@@ -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 | } |
@@ -184,8 +184,7 @@ discard block |
||
184 | 184 | $key = md5($this->getEncryptionKey()); |
185 | 185 | $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($this->_cryptAlgorithm)); |
186 | 186 | return $iv . openssl_encrypt($data, $this->_cryptAlgorithm, $key, null, $iv); |
187 | - } |
|
188 | - else |
|
187 | + } else |
|
189 | 188 | throw new TNotSupportedException('securitymanager_openssl_required'); |
190 | 189 | } |
191 | 190 | |
@@ -202,8 +201,7 @@ discard block |
||
202 | 201 | $key = md5($this->getEncryptionKey()); |
203 | 202 | $iv = $this->substr($data, 0, openssl_cipher_iv_length($this->_cryptAlgorithm)); |
204 | 203 | return openssl_decrypt($this->substr($data, $this->strlen($iv), $this->strlen($data)), $this->_cryptAlgorithm, $key, null, $iv); |
205 | - } |
|
206 | - else |
|
204 | + } else |
|
207 | 205 | throw new TNotSupportedException('securitymanager_openssl_required'); |
208 | 206 | } |
209 | 207 |
@@ -79,16 +79,13 @@ |
||
79 | 79 | ]); |
80 | 80 | } |
81 | 81 | } |
82 | - } |
|
83 | - catch(TRpcException $e) |
|
82 | + } catch(TRpcException $e) |
|
84 | 83 | { |
85 | 84 | return $this->createErrorResponse($e); |
86 | - } |
|
87 | - catch(THttpException $e) |
|
85 | + } catch(THttpException $e) |
|
88 | 86 | { |
89 | 87 | throw $e; |
90 | - } |
|
91 | - catch(\Exception $e) |
|
88 | + } catch(\Exception $e) |
|
92 | 89 | { |
93 | 90 | return $this->createErrorResponse(new TRpcException('An internal error occured', '-32603')); |
94 | 91 | } |