Completed
Push — prado4-sauce ( 31ba42...77d75b )
by Fabio
16:20 queued 08:27
created
framework/Web/UI/ActiveControls/TActiveTableCell.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
 {
56 56
 
57 57
 	/**
58
-	* @var TTable parent row control containing the cell
59
-	*/
58
+	 * @var TTable parent row control containing the cell
59
+	 */
60 60
 	private $_row;
61 61
 
62 62
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveTableCellEventParameter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
 {
33 33
 
34 34
 	/**
35
-	* @var integer the zero-based index of the cell.
36
-	*/
35
+	 * @var integer the zero-based index of the cell.
36
+	 */
37 37
 	private $_selectedCellIndex = -1;
38 38
 
39 39
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveTableRowEventParameter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -244,8 +244,8 @@
 block discarded – undo
244 244
 class TActiveTableRowEventParameter extends TCallbackEventParameter
245 245
 {
246 246
 	/**
247
-	* @var integer the zero-based index of the row.
248
-	*/
247
+	 * @var integer the zero-based index of the row.
248
+	 */
249 249
 	private $_selectedRowIndex = -1;
250 250
 
251 251
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiCallbackPageStateTracker.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
    */
28 28
   protected function addStatesToTrack()
29 29
   {
30
-    parent::addStatesToTrack();
31
-    $states = $this->getStatesToTrack();
32
-    $states['JuiOptions'] = array('TMapCollectionDiff', array($this, 'updateJuiOptions'));
30
+	parent::addStatesToTrack();
31
+	$states = $this->getStatesToTrack();
32
+	$states['JuiOptions'] = array('TMapCollectionDiff', array($this, 'updateJuiOptions'));
33 33
   }
34 34
 
35 35
 	/**
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 	 */
39 39
   protected function updateJuiOptions($options)
40 40
   {
41
-    foreach ($options as $key => $value) $options[$key] = $key . ': ' . (is_string($value) ? "'{$value}'" : TPropertyValue::ensureString($value));
42
-    $code = "jQuery('#{$this->_control->getWidgetID()}').{$this->_control->getWidget()}('option', { " . implode(', ', $options) . " });";
43
-    $this->_control->getPage()->getClientScript()->registerEndScript(sprintf('%08X', crc32($code)), $code);
41
+	foreach ($options as $key => $value) $options[$key] = $key . ': ' . (is_string($value) ? "'{$value}'" : TPropertyValue::ensureString($value));
42
+	$code = "jQuery('#{$this->_control->getWidgetID()}').{$this->_control->getWidget()}('option', { " . implode(', ', $options) . " });";
43
+	$this->_control->getPage()->getClientScript()->registerEndScript(sprintf('%08X', crc32($code)), $code);
44 44
   }
45 45
 
46 46
 }
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiEventParameter.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
 class TJuiEventParameter extends TCallbackEventParameter
45 45
 {
46 46
  	/**
47
-	 * getControl
48
-	 *
49
-	 * Compatibility method to get a control from its clientside id
50
-	 * @return TControl control, or null if not found
47
+ 	 * getControl
48
+ 	 *
49
+ 	 * Compatibility method to get a control from its clientside id
50
+ 	 * @return TControl control, or null if not found
51 51
  	 */
52 52
 	public function getControl($id)
53 53
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/IListControlAdapter.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
 	 */
45 45
 	public function setSelectedValues($values);
46 46
 
47
-    /**
48
-     * Clears all existing selections on the client side.
49
-     */
50
-    public function clearSelection();
47
+	/**
48
+	 * Clears all existing selections on the client side.
49
+	 */
50
+	public function clearSelection();
51 51
 }
52 52
\ No newline at end of file
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TListBox.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,13 +225,13 @@
 block discarded – undo
225 225
 	 */
226 226
 	public function getIsValid()
227 227
 	{
228
-	    return $this->_isValid;
228
+		return $this->_isValid;
229 229
 	}
230 230
 	/**
231 231
 	 * @param bool wether this control is valid.
232 232
 	 */
233 233
 	public function setIsValid($value)
234 234
 	{
235
-	    $this->_isValid=TPropertyValue::ensureBoolean($value);
235
+		$this->_isValid=TPropertyValue::ensureBoolean($value);
236 236
 	}
237 237
 }
238 238
\ No newline at end of file
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TListControl.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -332,8 +332,8 @@  discard block
 block discarded – undo
332 332
 
333 333
 	/**
334 334
 	 * @return boolean a value indicating whether an automatic postback to the server
335
-     * will occur whenever the user makes change to the list control and then tabs out of it.
336
-     * Defaults to false.
335
+	 * will occur whenever the user makes change to the list control and then tabs out of it.
336
+	 * Defaults to false.
337 337
 	 */
338 338
 	public function getAutoPostBack()
339 339
 	{
@@ -589,23 +589,23 @@  discard block
 block discarded – undo
589 589
 	 * @param string the value of the item to be selected.
590 590
 	 */
591 591
 	public function setSelectedValue($value)
592
-    {
593
-	    if($this->_items)
594
-	    {
595
-		    if($value===null)
596
-		    	$this->clearSelection();
597
-		    else if(($item=$this->_items->findItemByValue($value))!==null)
598
-	    	{
599
-		    	$this->clearSelection();
600
-		    	$item->setSelected(true);
601
-	    	}
602
-	    	else
592
+	{
593
+		if($this->_items)
594
+		{
595
+			if($value===null)
596
+				$this->clearSelection();
597
+			else if(($item=$this->_items->findItemByValue($value))!==null)
598
+			{
599
+				$this->clearSelection();
600
+				$item->setSelected(true);
601
+			}
602
+			else
603 603
 				$this->clearSelection();
604
-    	}
605
-    	$this->_cachedSelectedValue=$value;
604
+		}
605
+		$this->_cachedSelectedValue=$value;
606 606
 		if($this->getAdapter() instanceof IListControlAdapter)
607 607
 			$this->getAdapter()->setSelectedValue($value);
608
-    }
608
+	}
609 609
 
610 610
 
611 611
 	/**
@@ -653,36 +653,36 @@  discard block
 block discarded – undo
653 653
 			$this->getAdapter()->setSelectedValues($values);
654 654
 	}
655 655
 
656
-    /**
657
-     * @return string selected value
658
-     */
659
-    public function getText()
660
-    {
661
-	    return $this->getSelectedValue();
662
-    }
663
-
664
-    /**
665
-     * @param string value to be selected
666
-     */
667
-    public function setText($value)
668
-    {
669
-	    $this->setSelectedValue($value);
670
-    }
671
-
672
-    /**
673
-     * Clears all existing selections.
674
-     */
675
-    public function clearSelection()
676
-    {
677
-	    if($this->_items)
678
-	    {
679
-		    foreach($this->_items as $item)
680
-		    	$item->setSelected(false);
681
-	    }
656
+	/**
657
+	 * @return string selected value
658
+	 */
659
+	public function getText()
660
+	{
661
+		return $this->getSelectedValue();
662
+	}
663
+
664
+	/**
665
+	 * @param string value to be selected
666
+	 */
667
+	public function setText($value)
668
+	{
669
+		$this->setSelectedValue($value);
670
+	}
671
+
672
+	/**
673
+	 * Clears all existing selections.
674
+	 */
675
+	public function clearSelection()
676
+	{
677
+		if($this->_items)
678
+		{
679
+			foreach($this->_items as $item)
680
+				$item->setSelected(false);
681
+		}
682 682
 
683 683
 		if($this->getAdapter() instanceof IListControlAdapter)
684 684
 			$this->getAdapter()->clearSelection();
685
-    }
685
+	}
686 686
 
687 687
 	/**
688 688
 	 * @return string the group of validators which the list control causes validation upon postback
Please login to merge, or discard this patch.
framework/Web/UI/TTemplate.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 {
168 168
 	/**
169 169
 	 *  '<!--.*?--!>' - template comments
170
-		 *  '<!--.*?-->'  - HTML comments
170
+	 *  '<!--.*?-->'  - HTML comments
171 171
 	 *	'<\/?com:([\w\.]+)((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?"|\s*[\w\.]+\s*=\s*<%.*?%>)*)\s*\/?>' - component tags
172 172
 	 *	'<\/?prop:([\w\.]+)\s*>'  - property tags
173 173
 	 *	'<%@\s*((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?")*)\s*%>'  - directives
@@ -1080,15 +1080,15 @@  discard block
 block discarded – undo
1080 1080
 	  $component=new ReflectionClass('TComponent');
1081 1081
 	  $behaviors=$component->getStaticProperties();
1082 1082
 	  if(!isset($behaviors['_um']))
1083
-	    return false;
1083
+		return false;
1084 1084
 	  foreach($behaviors['_um'] as $name=>$list)
1085 1085
 	  {
1086
-	    if(strtolower($class->getShortName())!==$name && !$class->isSubclassOf($name)) continue;
1087
-	    foreach($list as $param)
1088
-	    {
1089
-	      if(method_exists($param->getBehavior(),$method))
1090
-	        return true;
1091
-	    }
1086
+		if(strtolower($class->getShortName())!==$name && !$class->isSubclassOf($name)) continue;
1087
+		foreach($list as $param)
1088
+		{
1089
+		  if(method_exists($param->getBehavior(),$method))
1090
+			return true;
1091
+		}
1092 1092
 	  }
1093 1093
 	  return false;
1094 1094
 	}
Please login to merge, or discard this patch.