Completed
Branch scrutinizer (4d54e2)
by Fabio
11:55
created
framework/Web/UI/ActiveControls/TActiveCheckBox.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	public function setChecked($value)
104 104
 	{
105
-		$value = TPropertyValue::ensureBoolean($value);
105
+		$value=TPropertyValue::ensureBoolean($value);
106 106
 		parent::setChecked($value);
107 107
 		if($this->getActiveControl()->canUpdateClientSide())
108 108
 			$this->getPage()->getCallbackClient()->check($this, $value);
@@ -126,10 +126,10 @@  discard block
 block discarded – undo
126 126
 	 * @param string checkbox id
127 127
 	 * @param string onclick js
128 128
 	 */
129
-	protected function renderInputTag($writer,$clientID,$onclick)
129
+	protected function renderInputTag($writer, $clientID, $onclick)
130 130
 	{
131
-		parent::renderInputTag($writer,$clientID,$onclick);
132
-		if ($this->getAutoPostBack())
131
+		parent::renderInputTag($writer, $clientID, $onclick);
132
+		if($this->getAutoPostBack())
133 133
 			$this->getActiveControl()->registerCallbackClientScript(
134 134
 				$this->getClientClassName(), $this->getPostBackOptions());
135 135
 	}
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
 	 */
149 149
 	public function getLabelAttributes()
150 150
 	{
151
-		$attributes = parent::getLabelAttributes();
152
-		$attributes['id'] = $this->getDefaultLabelID();
151
+		$attributes=parent::getLabelAttributes();
152
+		$attributes['id']=$this->getDefaultLabelID();
153 153
 		return $attributes;
154 154
 	}
155 155
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	 * @param string checkbox id
160 160
 	 * @param string label text
161 161
 	 */
162
-	protected function renderLabel($writer,$clientID,$text)
162
+	protected function renderLabel($writer, $clientID, $text)
163 163
 	{
164 164
 		$writer->addAttribute('id', $this->getDefaultLabelID());
165 165
 		parent::renderLabel($writer, $clientID, $text);
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 */
171 171
 	protected function getDefaultLabelID()
172 172
 	{
173
-		if($attributes=$this->getViewState('LabelAttributes',null))
173
+		if($attributes=$this->getViewState('LabelAttributes', null))
174 174
 			return TCheckBox::getLabelAttributes()->itemAt('id');
175 175
 		else
176 176
 			return $this->getClientID().'_label';
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TValueTriggeredCallback.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	public function setDecayRate($value)
81 81
 	{
82
-		$decay = TPropertyValue::ensureFloat($value);
82
+		$decay=TPropertyValue::ensureFloat($value);
83 83
 		if($decay < 0)
84 84
 			throw new TConfigurationException('callback_decay_be_not_negative', $this->getID());
85 85
 		$this->setViewState('Decay', $decay);
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
 	 */
91 91
 	protected function getTriggerOptions()
92 92
 	{
93
-		$options = parent::getTriggerOptions();
94
-		$options['PropertyName'] = $this->getPropertyName();
95
-		$options['Interval'] = $this->getInterval();
96
-		$options['Decay'] = $this->getDecayRate();
93
+		$options=parent::getTriggerOptions();
94
+		$options['PropertyName']=$this->getPropertyName();
95
+		$options['Interval']=$this->getInterval();
96
+		$options['Decay']=$this->getDecayRate();
97 97
 		return $options;
98 98
 	}
99 99
 
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveClientScript.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TActiveClientScript class file
4
- *
5
- * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @package System.Web.UI.ActiveControls
10
- */
3
+	 * TActiveClientScript class file
4
+	 *
5
+	 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2005-2015 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
  * TActiveClientScript class
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
 	 */
42 42
 	protected function renderCustomScriptFile($writer)
43 43
 	{
44
-		if(($scriptUrl = $this->getScriptUrl())!=='')
44
+		if(($scriptUrl=$this->getScriptUrl())!=='')
45 45
 		{
46 46
 			if($this->getPage()->getIsCallback())
47 47
 			{
48
-				$cs = $this->getPage()->getClientScript();
48
+				$cs=$this->getPage()->getClientScript();
49 49
 				$uniqueid=$this->ClientID.'_custom';
50 50
 				if(!$cs->isScriptFileRegistered($uniqueid))
51 51
 					$cs->registerScriptFile($uniqueid, $scriptUrl);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 		{
66 66
 			if($this->getPage()->getIsCallback())
67 67
 			{
68
-				$extWriter= $this->getPage()->getResponse()->createHtmlWriter();
68
+				$extWriter=$this->getPage()->getResponse()->createHtmlWriter();
69 69
 				$extWriter->write("/*<![CDATA[*/\n");
70 70
 				$this->renderChildren($extWriter);
71 71
 				$extWriter->write("\n/*]]>*/");
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TCallback.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TCallback class file.
4
- *
5
- * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @package System.Web.UI.ActiveControls
10
- */
3
+	 * TCallback class file.
4
+	 *
5
+	 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2005-2015 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.
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveHyperLink.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
 	public function setImageUrl($value)
63 63
 	{
64 64
 		parent::setImageUrl($value);
65
-		if($this->getActiveControl()->canUpdateClientSide() && $value !== '')
65
+		if($this->getActiveControl()->canUpdateClientSide() && $value!=='')
66 66
 		{
67
-			$textWriter = new TTextWriter;
68
-			$renderer = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), $textWriter);
67
+			$textWriter=new TTextWriter;
68
+			$renderer=Prado::createComponent($this->GetResponse()->getHtmlWriterType(), $textWriter);
69 69
 			$this->createImage($value)->renderControl($renderer);
70 70
 			$this->getPage()->getCallbackClient()->update($this, $textWriter->flush());
71 71
 		}
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 		if($this->getActiveControl()->canUpdateClientSide())
82 82
 		{
83 83
 			//replace &amp; with & and urldecode the url (setting the href using javascript is literal)
84
-			$url = urldecode(str_replace('&amp;', '&', $value));
84
+			$url=urldecode(str_replace('&amp;', '&', $value));
85 85
 			$this->getPage()->getCallbackClient()->setAttribute($this, 'href', $url);
86 86
 		}
87 87
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveLinkButton.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	protected function addAttributesToRender($writer)
116 116
 	{
117 117
 		parent::addAttributesToRender($writer);
118
-		$writer->addAttribute('id',$this->getClientID());
118
+		$writer->addAttribute('id', $this->getClientID());
119 119
 
120 120
 		if($this->getEnabled(true))
121 121
 		{
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 		{
137 137
 			if($this->getEnabled(true))
138 138
 			{
139
-				$nop = "javascript:;//".$this->getClientID();
139
+				$nop="javascript:;//".$this->getClientID();
140 140
 				$this->getPage()->getCallbackClient()->setAttribute($this, 'href', $nop);
141 141
 
142 142
 				$this->getActiveControl()->registerCallbackClientScript(
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveRadioButtonList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	 */
78 78
 	protected function createRepeatedControl()
79 79
 	{
80
-		$control = new TActiveRadioButtonItem;
80
+		$control=new TActiveRadioButtonItem;
81 81
 		$control->getAdapter()->setBaseActiveControl($this->getActiveControl());
82 82
 		return $control;
83 83
 	}
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
 	 * @param string checkbox id
139 139
 	 * @param string onclick js
140 140
 	 */
141
-	protected function renderInputTag($writer,$clientID,$onclick)
141
+	protected function renderInputTag($writer, $clientID, $onclick)
142 142
 	{
143
-		TRadioButton::renderInputTag($writer,$clientID,$onclick);
143
+		TRadioButton::renderInputTag($writer, $clientID, $onclick);
144 144
 	}
145 145
 }
146 146
\ No newline at end of file
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveHiddenField.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TActiveHiddenField class file.
4
- *
5
- * @author Carl G. Mathisen <[email protected]>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @version $Id$
10
- * @package System.Web.UI.ActiveControls
11
- */
3
+	 * TActiveHiddenField class file.
4
+	 *
5
+	 * @author Carl G. Mathisen <[email protected]>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
+	 * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
+	 * @version $Id$
10
+	 * @package System.Web.UI.ActiveControls
11
+	 */
12 12
 Prado::using('System.Web.UI.ActiveControls.TActiveControlAdapter');
13 13
 /**
14
- * TActiveHiddenField class
15
- *
16
- * TActiveHiddenField displays a hidden input field on a Web page.
17
- * The value of the input field can be accessed via {@link getValue Value} property.
18
- *
19
- * @author Carl G. Mathisen <[email protected]>
20
- * @package System.Web.UI.ActiveControls
21
- * @since 3.1
22
- */
14
+	 * TActiveHiddenField class
15
+	 *
16
+	 * TActiveHiddenField displays a hidden input field on a Web page.
17
+	 * The value of the input field can be accessed via {@link getValue Value} property.
18
+	 *
19
+	 * @author Carl G. Mathisen <[email protected]>
20
+	 * @package System.Web.UI.ActiveControls
21
+	 * @since 3.1
22
+	 */
23 23
 class TActiveHiddenField extends THiddenField implements ICallbackEventHandler, IActiveControl
24 24
 {
25
-    /**
25
+	/**
26 26
 	 * Creates a new callback control, sets the adapter to
27 27
 	 * TActiveControlAdapter. If you override this class, be sure to set the
28 28
 	 * adapter appropriately by, for example, by calling this constructor.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 	protected function addAttributesToRender($writer)
109 109
 	{
110 110
 		parent::addAttributesToRender($writer);
111
-		$writer->addAttribute('id',$this->getClientID());
111
+		$writer->addAttribute('id', $this->getClientID());
112 112
 		$this->getActiveControl()->registerCallbackClientScript(
113 113
 			$this->getClientClassName(), $this->getPostBackOptions());
114 114
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TCallbackResponseAdapter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
 	 * @param string writer class name.
44 44
 	 * @param THttpResponse http response handler.
45 45
 	 */
46
-	public function createNewHtmlWriter($type,$response)
46
+	public function createNewHtmlWriter($type, $response)
47 47
 	{
48
-		$writer = new TCallbackResponseWriter();
49
-		$this->_writers[] = $writer;
50
-		return parent::createNewHtmlWriter($type,$writer);
48
+		$writer=new TCallbackResponseWriter();
49
+		$this->_writers[]=$writer;
50
+		return parent::createNewHtmlWriter($type, $writer);
51 51
 	}
52 52
 
53 53
 	/**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function setResponseData($data)
67 67
 	{
68
-		$this->_data = $data;
68
+		$this->_data=$data;
69 69
 	}
70 70
 
71 71
 	/**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	{
85 85
 		if($url[0]==='/')
86 86
 			$url=$this->getRequest()->getBaseUrl().$url;
87
-		$this->_redirectUrl=str_replace('&amp;','&',$url);
87
+		$this->_redirectUrl=str_replace('&amp;', '&', $url);
88 88
 	}
89 89
 
90 90
 	/**
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 	public function __construct()
125 125
 	{
126 126
 	  	parent::__construct();
127
-		$this->_boundary = sprintf('%x',crc32(uniqid(null, true)));
127
+		$this->_boundary=sprintf('%x', crc32(uniqid(null, true)));
128 128
 	}
129 129
 
130 130
 	/**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	 */
141 141
 	public function setBoundary($value)
142 142
 	{
143
-		$this->_boundary = $value;
143
+		$this->_boundary=$value;
144 144
 	}
145 145
 
146 146
 	/**
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	 */
151 151
 	public function flush()
152 152
 	{
153
-		$content = parent::flush();
153
+		$content=parent::flush();
154 154
 		if(empty($content))
155 155
 			return "";
156 156
 		return '<!--'.$this->getBoundary().'-->'.$content.'<!--//'.$this->getBoundary().'-->';
Please login to merge, or discard this patch.