Completed
Push — master ( c06f3c...0ec0d0 )
by Fabio
11:03
created
framework/Web/UI/ActiveControls/TActiveListControlAdapter.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -67,20 +67,20 @@  discard block
 block discarded – undo
67 67
 		if($this->canUpdateClientSide())
68 68
 		{
69 69
 			$this->updateListItems();
70
-			$n = $this->getControl()->getItemCount();
70
+			$n=$this->getControl()->getItemCount();
71 71
 
72 72
 			$promptValue=$this->getControl()->getPromptValue();
73 73
 			if($promptValue==='')
74 74
 				$promptValue=$this->getControl()->getPromptText();
75 75
 
76
-			$list = array();
76
+			$list=array();
77 77
 			foreach($indices as $index)
78 78
 			{
79
-				$index = intval($index);
79
+				$index=intval($index);
80 80
 				if($promptValue!=='')
81 81
 					$index++;
82 82
 				if($index >= 0 && $index <= $n)
83
-					$list[] = $index;
83
+					$list[]=$index;
84 84
 			}
85 85
 			if(count($list) > 0)
86 86
 				$this->getPage()->getCallbackClient()->select(
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
 		if($this->canUpdateClientSide())
112 112
 		{
113 113
 			$this->updateListItems();
114
-			$list = array();
114
+			$list=array();
115 115
 			foreach($values as $value)
116
-				$list[] = $value;
116
+				$list[]=$value;
117 117
 			if(count($list) > 0)
118 118
 				$this->getPage()->getCallbackClient()->select(
119 119
 					$this->getControl(), 'Values', $list);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	{
147 147
 		if($this->canUpdateClientSide())
148 148
 		{
149
-			$items = $this->getControl()->getItems();
149
+			$items=$this->getControl()->getItems();
150 150
 			if($items instanceof TActiveListItemCollection
151 151
 				&& $items->getListHasChanged())
152 152
 			{
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 	 */
198 198
 	public function setControl(IActiveControl $control)
199 199
 	{
200
-		$this->_control = $control;
200
+		$this->_control=$control;
201 201
 	}
202 202
 
203 203
 	/**
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 	 */
222 222
 	public function updateClientSide()
223 223
 	{
224
-		$client = $this->getControl()->getPage()->getCallbackClient();
224
+		$client=$this->getControl()->getPage()->getCallbackClient();
225 225
 		$client->setListItems($this->getControl(), $this);
226 226
 		$this->_hasChanged=false;
227 227
 	}
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	{
239 239
 		parent::insertAt($index, $value);
240 240
 		if($this->canUpdateClientSide())
241
-			$this->_hasChanged = true;
241
+			$this->_hasChanged=true;
242 242
 	}
243 243
 
244 244
 	/**
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 	{
250 250
 		parent::removeAt($index);
251 251
 		if($this->canUpdateClientSide())
252
-			$this->_hasChanged = true;
252
+			$this->_hasChanged=true;
253 253
 	}
254 254
 }
255 255
 
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TActiveListControlAdapter class file.
4
- *
5
- * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2016 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @package System.Web.UI.ActiveControls
10
- */
3
+	  * TActiveListControlAdapter class file.
4
+	  *
5
+	  * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
6
+	  * @link https://github.com/pradosoft/prado
7
+	  * @copyright Copyright &copy; 2005-2016 The PRADO Group
8
+	  * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
+	  * @package System.Web.UI.ActiveControls
10
+	  */
11 11
 
12 12
 /**
13 13
  * Load active control adapter.
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
 		}
121 121
 	}
122 122
 
123
-    /**
124
-     * Clears all existing selections on the client side.
125
-     */
126
-    public function clearSelection()
127
-    {
123
+	/**
124
+	 * Clears all existing selections on the client side.
125
+	 */
126
+	public function clearSelection()
127
+	{
128 128
 		if($this->canUpdateClientSide())
129 129
 		{
130 130
 			$this->updateListItems();
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 				$this->getPage()->getCallbackClient()->select($this->getControl(), 'Clear');
138 138
 			}
139 139
 		}
140
-    }
140
+	}
141 141
 
142 142
 	/**
143 143
 	 * Update the client-side list options.
Please login to merge, or discard this patch.