@@ -117,7 +117,7 @@ |
||
| 117 | 117 | $service = Prado::createComponent($serviceConfig['class']); |
| 118 | 118 | if($service instanceof TJsonResponse) |
| 119 | 119 | { |
| 120 | - $properties = isset($serviceConfig['properties'])?$serviceConfig['properties']:[]; |
|
| 120 | + $properties = isset($serviceConfig['properties']) ? $serviceConfig['properties'] : []; |
|
| 121 | 121 | $this->createJsonResponse($service, $properties, $serviceConfig); |
| 122 | 122 | } |
| 123 | 123 | else |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | public function __toString() |
| 49 | 49 | { |
| 50 | - return (string)$this->_s; |
|
| 50 | + return (string) $this->_s; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | public function toJavaScriptLiteral() |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | class THttpUtility |
| 22 | 22 | { |
| 23 | - private static $_encodeTable = ['<' => '<','>' => '>','"' => '"']; |
|
| 24 | - private static $_decodeTable = ['<' => '<','>' => '>','"' => '"']; |
|
| 25 | - private static $_stripTable = ['<' => '','>' => '','"' => '']; |
|
| 23 | + private static $_encodeTable = ['<' => '<', '>' => '>', '"' => '"']; |
|
| 24 | + private static $_decodeTable = ['<' => '<', '>' => '>', '"' => '"']; |
|
| 25 | + private static $_stripTable = ['<' => '', '>' => '', '"' => '']; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * HTML-encodes a string. |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | protected function getOption($name) |
| 55 | 55 | { |
| 56 | - if ($this->_options) |
|
| 56 | + if($this->_options) |
|
| 57 | 57 | return $this->_options->itemAt($name); |
| 58 | 58 | else |
| 59 | 59 | return null; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | public function getOptions() |
| 75 | 75 | { |
| 76 | - if (!$this->_options) |
|
| 76 | + if(!$this->_options) |
|
| 77 | 77 | $this->_options = new TMap; |
| 78 | 78 | return $this->_options; |
| 79 | 79 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | return; |
| 57 | 57 | |
| 58 | 58 | $this->setViewState('Interval', $interval, 1); |
| 59 | - if ($this->getActiveControl()->canUpdateClientSide()){ |
|
| 59 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 60 | 60 | $client = $this->getPage()->getCallbackClient(); |
| 61 | 61 | $client->callClientFunction('Prado.WebUI.TTimeTriggeredCallback.setTimerInterval', [$this, $interval]); |
| 62 | 62 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | parent::render($writer); |
| 118 | 118 | $this->getActiveControl()->registerCallbackClientScript( |
| 119 | 119 | $this->getClientClassName(), $this->getTriggerOptions()); |
| 120 | - if($this->getStartTimerOnLoad()){ |
|
| 120 | + if($this->getStartTimerOnLoad()) { |
|
| 121 | 121 | $id = $this->getClientID(); |
| 122 | 122 | $code = "Prado.WebUI.TTimeTriggeredCallback.start('{$id}');"; |
| 123 | 123 | $cs = $this->getPage()->getClientScript(); |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | { |
| 108 | 108 | parent::addAttributesToRender($writer); |
| 109 | 109 | $writer->addAttribute('id', $this->getClientID()); |
| 110 | - if ($this->getAutoPostBack()) |
|
| 110 | + if($this->getAutoPostBack()) |
|
| 111 | 111 | $this->getActiveControl()->registerCallbackClientScript( |
| 112 | 112 | $this->getClientClassName(), $this->getPostBackOptions()); |
| 113 | 113 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | * updated later. |
| 73 | 73 | *@return boolean always true |
| 74 | 74 | */ |
| 75 | - protected function getSpanNeeded () |
|
| 75 | + protected function getSpanNeeded() |
|
| 76 | 76 | { |
| 77 | 77 | return true; |
| 78 | 78 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | { |
| 122 | 122 | $id = $control->getUniqueID(); |
| 123 | 123 | if(!isset($this->_controlsToRender[$id])) |
| 124 | - $this->_controlsToRender[$id] = [$control,$writer]; |
|
| 124 | + $this->_controlsToRender[$id] = [$control, $writer]; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -212,22 +212,22 @@ discard block |
||
| 212 | 212 | |
| 213 | 213 | // collect all stylesheet file references |
| 214 | 214 | $stylesheets = $cs->getStyleSheetUrls(); |
| 215 | - if (count($stylesheets) > 0) |
|
| 215 | + if(count($stylesheets) > 0) |
|
| 216 | 216 | $this->appendContentPart($response, self::CALLBACK_STYLESHEETLIST_HEADER, TJavaScript::jsonEncode($stylesheets)); |
| 217 | 217 | |
| 218 | 218 | // collect all stylesheet snippets references |
| 219 | 219 | $stylesheets = $cs->getStyleSheetCodes(); |
| 220 | - if (count($stylesheets) > 0) |
|
| 220 | + if(count($stylesheets) > 0) |
|
| 221 | 221 | $this->appendContentPart($response, self::CALLBACK_STYLESHEET_HEADER, TJavaScript::jsonEncode($stylesheets)); |
| 222 | 222 | |
| 223 | 223 | // collect all script file references |
| 224 | 224 | $scripts = $cs->getScriptUrls(); |
| 225 | - if (count($scripts) > 0) |
|
| 225 | + if(count($scripts) > 0) |
|
| 226 | 226 | $this->appendContentPart($response, self::CALLBACK_SCRIPTLIST_HEADER, TJavaScript::jsonEncode($scripts)); |
| 227 | 227 | |
| 228 | 228 | // collect all hidden field references |
| 229 | 229 | $fields = $cs->getHiddenFields(); |
| 230 | - if (count($fields) > 0) |
|
| 230 | + if(count($fields) > 0) |
|
| 231 | 231 | $this->appendContentPart($response, self::CALLBACK_HIDDENFIELDLIST_HEADER, TJavaScript::jsonEncode($fields)); |
| 232 | 232 | } |
| 233 | 233 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $cell->getControls()->add($checkBox); |
| 55 | 55 | $cell->registerObject('CheckBox', $checkBox); |
| 56 | 56 | if($this->getDataField() !== '') |
| 57 | - $checkBox->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']); |
|
| 57 | + $checkBox->attachEventHandler('OnDataBinding', [$this, 'dataBindColumn']); |
|
| 58 | 58 | } |
| 59 | 59 | else |
| 60 | 60 | parent::initializeCell($cell, $columnIndex, $itemType); |