Completed
Push — php-cs-fixer ( b6f93e )
by Fabio
07:29
created
framework/Web/UI/WebControls/TCaptchaValidator.php 3 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	}
80 80
 
81 81
 	/**
82
-	 * @return TCaptchaControl the CAPTCHA control to be validated against
82
+	 * @return TCaptcha the CAPTCHA control to be validated against
83 83
 	 * @throws TConfigurationException if the CAPTCHA cannot be found according to {@link setCaptchaControl CaptchaControl}
84 84
 	 */
85 85
 	protected function findCaptchaControl()
@@ -115,6 +115,9 @@  discard block
 block discarded – undo
115 115
 		return $options;
116 116
 	}
117 117
 
118
+	/**
119
+	 * @param string $token
120
+	 */
118 121
 	private function generateTokenHash($token)
119 122
 	{
120 123
 		for($h=0,$i=strlen($token)-1;$i>=0;--$i)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,8 +107,7 @@
 block discarded – undo
107 107
 		{
108 108
 			$options['TokenHash']=$this->generateTokenHash($control->getToken());
109 109
 			$options['CaseSensitive']=true;
110
-		}
111
-		else
110
+		} else
112 111
 		{
113 112
 			$options['TokenHash']=$this->generateTokenHash(strtoupper($control->getToken()));
114 113
 			$options['CaseSensitive']=false;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
 
120 120
 	private function generateTokenHash($token)
121 121
 	{
122
-		for($h=0,$i=strlen($token)-1;$i>=0;--$i)
122
+		for($h=0, $i=strlen($token) - 1; $i >= 0; --$i)
123 123
 			$h+=ord($token[$i]);
124 124
 		return $h;
125 125
 	}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCheckBox.php 3 patches
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
 	/**
119 119
 	 * Returns the value of the property that needs validation.
120
-	 * @return mixed the property value to be validated
120
+	 * @return boolean the property value to be validated
121 121
 	 */
122 122
 	public function getValidationPropertyValue()
123 123
 	{
@@ -184,6 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
 	/**
186 186
 	 * @param TTextAlign the alignment of the text caption. Valid values include Left and Right.
187
+	 * @param TTextAlign $value
187 188
 	 */
188 189
 	public function setTextAlign($value)
189 190
 	{
@@ -244,6 +245,7 @@  discard block
 block discarded – undo
244 245
 	/**
245 246
 	 * Sets a value indicating whether clicking on the checkbox will post the page.
246 247
 	 * @param boolean whether clicking on the checkbox will post the page.
248
+	 * @param boolean $value
247 249
 	 */
248 250
 	public function setAutoPostBack($value)
249 251
 	{
@@ -261,6 +263,7 @@  discard block
 block discarded – undo
261 263
 	/**
262 264
 	 * Sets the value indicating whether postback event trigger by this checkbox will cause input validation.
263 265
 	 * @param boolean whether postback event trigger by this checkbox will cause input validation.
266
+	 * @param boolean $value
264 267
 	 */
265 268
 	public function setCausesValidation($value)
266 269
 	{
@@ -277,6 +280,7 @@  discard block
 block discarded – undo
277 280
 
278 281
 	/**
279 282
 	 * @param string the group of validators which the checkbox causes validation upon postback
283
+	 * @param string $value
280 284
 	 */
281 285
 	public function setValidationGroup($value)
282 286
 	{
@@ -410,6 +414,7 @@  discard block
 block discarded – undo
410 414
 
411 415
 	/**
412 416
 	 * @param boolean whether to render javascript.
417
+	 * @param boolean $value
413 418
 	 */
414 419
 	public function setEnableClientScript($value)
415 420
 	{
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 	 */
302 302
 	public function getSurroundingTagID()
303 303
 	{
304
-	return $this->getSpanNeeded() ? $this->getClientID() . '_parent' : $this->getClientID();
304
+	return $this->getSpanNeeded() ? $this->getClientID().'_parent' : $this->getClientID();
305 305
 	}
306 306
 
307 307
 	/**
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
 
481 481
 		if(($accesskey=$this->getAccessKey())!=='')
482 482
 			$writer->addAttribute('accesskey', $accesskey);
483
-		if(($tabindex=$this->getTabIndex())>0)
483
+		if(($tabindex=$this->getTabIndex()) > 0)
484 484
 			$writer->addAttribute('tabindex', "$tabindex");
485 485
 		if($attributes=$this->getViewState('InputAttributes', null))
486 486
 			$writer->addAttributes($attributes);
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
 	 */
494 494
 	protected function renderClientControlScript($writer)
495 495
 	{
496
-		$cs = $this->getPage()->getClientScript();
496
+		$cs=$this->getPage()->getClientScript();
497 497
 		$cs->registerPostBackControl($this->getClientClassName(), $this->getPostBackOptions());
498 498
 	}
499 499
 
@@ -513,10 +513,10 @@  discard block
 block discarded – undo
513 513
 	 */
514 514
 	protected function getPostBackOptions()
515 515
 	{
516
-		$options['ID'] = $this->getClientID();
517
-		$options['ValidationGroup'] = $this->getValidationGroup();
518
-		$options['CausesValidation'] = $this->getCausesValidation();
519
-		$options['EventTarget'] = $this->getUniqueID();
516
+		$options['ID']=$this->getClientID();
517
+		$options['ValidationGroup']=$this->getValidationGroup();
518
+		$options['CausesValidation']=$this->getCausesValidation();
519
+		$options['EventTarget']=$this->getUniqueID();
520 520
 		return $options;
521 521
 	}
522 522
 }
523 523
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -328,8 +328,7 @@  discard block
 block discarded – undo
328 328
 				$writer->addAttributes($attributes);
329 329
 			if($value!==null)
330 330
 				$attributes->add('value', $value);
331
-		}
332
-		else
331
+		} else
333 332
 			$onclick='';
334 333
 	if($needspan=$this->getSpanNeeded())
335 334
 	{
@@ -343,14 +342,12 @@  discard block
 block discarded – undo
343 342
 			{
344 343
 				$this->renderLabel($writer, $clientID, $text);
345 344
 				$this->renderInputTag($writer, $clientID, $onclick);
346
-			}
347
-			else
345
+			} else
348 346
 			{
349 347
 				$this->renderInputTag($writer, $clientID, $onclick);
350 348
 				$this->renderLabel($writer, $clientID, $text);
351 349
 			}
352
-		}
353
-		else
350
+		} else
354 351
 			$this->renderInputTag($writer, $clientID, $onclick);
355 352
 		if($needspan)
356 353
 			$writer->renderEndTag();
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCompareValidator.php 3 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -186,6 +186,8 @@
 block discarded – undo
186 186
 	 * Parse the pair of values into the appropriate value type.
187 187
 	 * @param string value one
188 188
 	 * @param string second value
189
+	 * @param string $value1
190
+	 * @param string $value2
189 191
 	 * @return array appropriate type of the value pair, array($value1, $value2);
190 192
 	 */
191 193
 	protected function getComparisonValues($value1, $value2)
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -164,13 +164,13 @@  discard block
 block discarded – undo
164 164
 		else
165 165
 			$value2=$this->getValueToCompare();
166 166
 
167
-		$values = $this->getComparisonValues($value, $value2);
167
+		$values=$this->getComparisonValues($value, $value2);
168 168
 		switch($this->getOperator())
169 169
 		{
170 170
 			case TValidationCompareOperator::Equal:
171
-				return $values[0] == $values[1];
171
+				return $values[0]==$values[1];
172 172
 			case TValidationCompareOperator::NotEqual:
173
-				return $values[0] != $values[1];
173
+				return $values[0]!=$values[1];
174 174
 			case TValidationCompareOperator::GreaterThan:
175 175
 				return $values[0] > $values[1];
176 176
 			case TValidationCompareOperator::GreaterThanEqual:
@@ -199,10 +199,10 @@  discard block
 block discarded – undo
199 199
 			case TValidationDataType::Float:
200 200
 				return [floatval($value1), floatval($value2)];
201 201
 			case TValidationDataType::Date:
202
-				$dateFormat = $this->getDateFormat();
202
+				$dateFormat=$this->getDateFormat();
203 203
 				if($dateFormat!=='')
204 204
 				{
205
-					$formatter = new TSimpleDateFormatter($dateFormat);
205
+					$formatter=new TSimpleDateFormatter($dateFormat);
206 206
 					return [$formatter->parse($value1), $formatter->parse($value2)];
207 207
 				}
208 208
 				else
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 	 */
218 218
 	protected function getClientScriptOptions()
219 219
 	{
220
-		$options = parent::getClientScriptOptions();
220
+		$options=parent::getClientScriptOptions();
221 221
 		if(($name=$this->getControlToCompare())!=='')
222 222
 		{
223 223
 			if(($control=$this->findControl($name))!==null)
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -160,8 +160,7 @@  discard block
 block discarded – undo
160 160
 				throw new TInvalidDataValueException('comparevalidator_controltocompare_invalid');
161 161
 			if(($value2=$this->getValidationValue($control2))==='')
162 162
 				return false;
163
-		}
164
-		else
163
+		} else
165 164
 			$value2=$this->getValueToCompare();
166 165
 
167 166
 		$values = $this->getComparisonValues($value, $value2);
@@ -204,8 +203,7 @@  discard block
 block discarded – undo
204 203
 				{
205 204
 					$formatter = new TSimpleDateFormatter($dateFormat);
206 205
 					return [$formatter->parse($value1), $formatter->parse($value2)];
207
-				}
208
-				else
206
+				} else
209 207
 					return [strtotime($value1), strtotime($value2)];
210 208
 		}
211 209
 		return [$value1, $value2];
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataTypeValidator.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -82,6 +82,7 @@
 block discarded – undo
82 82
 	/**
83 83
 	 * Determine if the given value is of a particular type using RegExp.
84 84
 	 * @param string value to check
85
+	 * @param string $value
85 86
 	 * @return boolean true if value fits the type expression.
86 87
 	 */
87 88
 	protected function evaluateDataTypeCheck($value)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
 			case TValidationDataType::Float:
98 98
 				return preg_match('/^[-+]?([0-9]*\.)?[0-9]+([eE][-+]?[0-9]+)?$/', trim($value));
99 99
 			case TValidationDataType::Date:
100
-				$dateFormat = $this->getDateFormat();
100
+				$dateFormat=$this->getDateFormat();
101 101
 				if(strlen($dateFormat))
102 102
 				{
103
-					$formatter = new TSimpleDateFormatter($dateFormat);
103
+					$formatter=new TSimpleDateFormatter($dateFormat);
104 104
 					return $formatter->isValidDate($value);
105 105
 				}
106 106
 				else
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 */
116 116
 	protected function getClientScriptOptions()
117 117
 	{
118
-		$options = parent::getClientScriptOptions();
118
+		$options=parent::getClientScriptOptions();
119 119
 		$options['DataType']=$this->getDataType();
120 120
 		if(($dateFormat=$this->getDateFormat())!=='')
121 121
 			$options['DateFormat']=$dateFormat;
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TEmailAddressValidator.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
 	/**
57 57
 	 * Returns an array of javascript validator options.
58
-	 * @return array javascript validator options.
58
+	 * @return boolean javascript validator options.
59 59
 	 */
60 60
 	public function evaluateIsValid()
61 61
 	{
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	public function getRegularExpression()
50 50
 	{
51 51
 		$regex=parent::getRegularExpression();
52
-		return $regex===''?self::EMAIL_REGEXP:$regex;
52
+		return $regex==='' ?self::EMAIL_REGEXP : $regex;
53 53
 	}
54 54
 
55 55
 	/**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	public function evaluateIsValid()
60 60
 	{
61 61
 		$value=$this->getValidationValue($this->getValidationTarget());
62
-		$valid=$valid=is_string($value) && strlen($value)<=254 && parent::evaluateIsValid();
62
+		$valid=$valid=is_string($value) && strlen($value) <= 254 && parent::evaluateIsValid();
63 63
 
64 64
 		if($valid && $this->getCheckMXRecord() && function_exists('checkdnsrr'))
65 65
 		{
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
 			{
68 68
 				if(($pos=strpos($value, '@'))!==false)
69 69
 				{
70
-					$domain=substr($value, $pos+1);
71
-					return $domain===''?false:checkdnsrr($domain, 'MX');
70
+					$domain=substr($value, $pos + 1);
71
+					return $domain==='' ?false:checkdnsrr($domain, 'MX');
72 72
 				}
73 73
 				else
74 74
 					return false;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@
 block discarded – undo
69 69
 				{
70 70
 					$domain=substr($value, $pos+1);
71 71
 					return $domain===''?false:checkdnsrr($domain, 'MX');
72
-				}
73
-				else
72
+				} else
74 73
 					return false;
75 74
 			}
76 75
 		}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TFlushOutput.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 	}
50 50
 
51 51
 	/**
52
-	 * @return Tells whether buffering of output can continue after this point
52
+	 * @return boolean whether buffering of output can continue after this point
53 53
 	 */
54 54
 	public function getContinueBuffering()
55 55
 	{
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	public function __construct()
46 46
 	{
47 47
 		parent::__construct();
48
-		$this->EnableViewState = false;
48
+		$this->EnableViewState=false;
49 49
 	}
50 50
 
51 51
 	/**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	 */
62 62
 	public function setContinueBuffering($value)
63 63
 	{
64
-		$this->_continueBuffering = TPropertyValue::ensureBoolean($value);
64
+		$this->_continueBuffering=TPropertyValue::ensureBoolean($value);
65 65
 	}
66 66
 
67 67
 	/**
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 //$writer->write('<!-- flush -->');
74 74
 		// ajax responses can't be parsed by the client side before loaded and returned completely,
75 75
 		// so don't bother with flushing output somewhere mid-page if refreshing in a callback
76
-		if (!$this->Page->IsCallback)
76
+		if(!$this->Page->IsCallback)
77 77
 		{
78 78
 			$this->Page->flushWriter();
79 79
 //			$this->Application->flushOutput($this->ContinueBuffering);
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TRatingList.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -132,6 +132,7 @@
 block discarded – undo
132 132
 
133 133
 	/**
134 134
 	 * @param float rating value
135
+	 * @param double $rating
135 136
 	 * @return int rating as integer
136 137
 	 */
137 138
 	protected function getRatingIndex($rating)
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
 	/**
30 30
 	 * Script path relative to the TClientScriptManager::SCRIPT_PATH
31 31
 	 */
32
-	const SCRIPT_PATH = 'ratings';
32
+	const SCRIPT_PATH='ratings';
33 33
 
34 34
 	/**
35 35
 	 * @var array list of published rating images.
36 36
 	 */
37
-	private $_ratingImages = [];
37
+	private $_ratingImages=[];
38 38
 
39 39
 	/**
40 40
 	 * Sets the default repeat direction to horizontal.
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
 	 */
107 107
 	public function getRating()
108 108
 	{
109
-		$rating = $this->getViewState('Rating', null);
110
-		if ($rating === null)
111
-			return $this->getSelectedIndex()+1;
109
+		$rating=$this->getViewState('Rating', null);
110
+		if($rating===null)
111
+			return $this->getSelectedIndex() + 1;
112 112
 		else
113 113
 			return $rating;
114 114
 	}
@@ -118,15 +118,15 @@  discard block
 block discarded – undo
118 118
 	 */
119 119
 	public function setRating($value)
120 120
 	{
121
-		$value = TPropertyValue::ensureFloat($value);
121
+		$value=TPropertyValue::ensureFloat($value);
122 122
 		$this->setViewState('Rating', $value, null);
123
-		$index = $this->getRatingIndex($value);
123
+		$index=$this->getRatingIndex($value);
124 124
 		parent::setSelectedIndex($index);
125 125
 	}
126 126
 
127 127
 	public function setSelectedIndex($value)
128 128
 	{
129
-		$this->setRating($value+1);
129
+		$this->setRating($value + 1);
130 130
 		parent::setSelectedIndex($value);
131 131
 	}
132 132
 
@@ -136,10 +136,10 @@  discard block
 block discarded – undo
136 136
 	 */
137 137
 	protected function getRatingIndex($rating)
138 138
 	{
139
-		$interval = $this->getHalfRatingInterval();
140
-		$base = intval($rating)-1;
141
-		$remainder = $rating-$base-1;
142
-		return $remainder > $interval[1] ? $base+1 : $base;
139
+		$interval=$this->getHalfRatingInterval();
140
+		$base=intval($rating) - 1;
141
+		$remainder=$rating - $base - 1;
142
+		return $remainder > $interval[1] ? $base + 1 : $base;
143 143
 	}
144 144
 
145 145
 	/**
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
 	 */
148 148
 	public function onSelectedIndexChanged($param)
149 149
 	{
150
-		$value = $this->getRating();
151
-		$value = TPropertyValue::ensureInteger($value);
150
+		$value=$this->getRating();
151
+		$value=TPropertyValue::ensureInteger($value);
152 152
 		$this->setRating($value);
153 153
 		parent::onSelectedIndexChanged($param);
154 154
 	}
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 	 */
220 220
 	protected function getRatingStyleCssClass()
221 221
 	{
222
-		return 'TRatingList_' . $this->getRatingStyle();
222
+		return 'TRatingList_'.$this->getRatingStyle();
223 223
 	}
224 224
 
225 225
 	/**
@@ -246,14 +246,14 @@  discard block
 block discarded – undo
246 246
 	 */
247 247
 	protected function getPostBackOptions()
248 248
 	{
249
-		$options = parent::getPostBackOptions();
250
-		$options['AutoPostBack'] = $this->getAutoPostBack();
251
-		$options['ReadOnly'] = $this->getReadOnly();
252
-		$options['Style'] = $this->getRatingStyleCssClass();
253
-		$options['CaptionID'] = $this->getCaptionControlID();
254
-		$options['SelectedIndex'] = $this->getSelectedIndex();
255
-		$options['Rating'] = $this->getRating();
256
-		$options['HalfRating'] = $this->getHalfRatingInterval();
249
+		$options=parent::getPostBackOptions();
250
+		$options['AutoPostBack']=$this->getAutoPostBack();
251
+		$options['ReadOnly']=$this->getReadOnly();
252
+		$options['Style']=$this->getRatingStyleCssClass();
253
+		$options['CaptionID']=$this->getCaptionControlID();
254
+		$options['SelectedIndex']=$this->getSelectedIndex();
255
+		$options['Rating']=$this->getRating();
256
+		$options['HalfRating']=$this->getHalfRatingInterval();
257 257
 		return $options;
258 258
 	}
259 259
 
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 	{
283 283
 		parent::onPreRender($param);
284 284
 		$this->publishStyle($this->getRatingStyle());
285
-		$this->_ratingImages = $this->publishImages($this->getRatingStyle());
285
+		$this->_ratingImages=$this->publishImages($this->getRatingStyle());
286 286
 		$this->registerClientScript();
287 287
 	}
288 288
 
@@ -292,8 +292,8 @@  discard block
 block discarded – undo
292 292
 	 */
293 293
 	protected function publishStyle($style)
294 294
 	{
295
-		$cs = $this->getPage()->getClientScript();
296
-		$url = $this->getAssetUrl($style . '.css');
295
+		$cs=$this->getPage()->getClientScript();
296
+		$url=$this->getAssetUrl($style.'.css');
297 297
 		if(!$cs->isStyleSheetFileRegistered($url))
298 298
 			$cs->registerStyleSheetFile($url, $url);
299 299
 		return $url;
@@ -306,10 +306,10 @@  discard block
 block discarded – undo
306 306
 	 */
307 307
 	protected function publishImages($style, $fileExt='.gif')
308 308
 	{
309
-		$types = ['blank', 'selected', 'half', 'combined'];
310
-		$files = [];
309
+		$types=['blank', 'selected', 'half', 'combined'];
310
+		$files=[];
311 311
 		foreach($types as $type)
312
-			$files[$type] = $this->getAssetUrl("{$style}_{$type}{$fileExt}");
312
+			$files[$type]=$this->getAssetUrl("{$style}_{$type}{$fileExt}");
313 313
 		return $files;
314 314
 	}
315 315
 
@@ -328,8 +328,8 @@  discard block
 block discarded – undo
328 328
 	 */
329 329
 	protected function getAssetUrl($file='')
330 330
 	{
331
-		$base = $this->getPage()->getClientScript()->getPradoScriptAssetUrl();
332
-		return $base . '/' . self::SCRIPT_PATH . '/' . $file;
331
+		$base=$this->getPage()->getClientScript()->getPradoScriptAssetUrl();
332
+		return $base.'/'.self::SCRIPT_PATH.'/'.$file;
333 333
 	}
334 334
 
335 335
 	/**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,8 +268,7 @@
 block discarded – undo
268 268
 			{
269 269
 				if($control->getVisible(true))
270 270
 					return $control->getClientID();
271
-			}
272
-			else
271
+			} else
273 272
 				return $id;
274 273
 		}
275 274
 		return '';
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTable.php 3 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -144,6 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
 	/**
146 146
 	 * @param string table caption
147
+	 * @param string $value
147 148
 	 */
148 149
 	public function setCaption($value)
149 150
 	{
@@ -160,6 +161,7 @@  discard block
 block discarded – undo
160 161
 
161 162
 	/**
162 163
 	 * @param TTableCaptionAlign table caption alignment.
164
+	 * @param TTableCaptionAlign $value
163 165
 	 */
164 166
 	public function setCaptionAlign($value)
165 167
 	{
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 				if(($border=$this->getBorderWidth())==='')
111 111
 					$border=1;
112 112
 				else
113
-					$border=(int)$border;
113
+					$border=(int) $border;
114 114
 			}
115 115
 		}
116 116
 		$writer->addAttribute('border', "$border");
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 					{
312 312
 						if($currentSection===TTableRowSection::Header)
313 313
 						{
314
-							if($index>0)
314
+							if($index > 0)
315 315
 								$writer->renderEndTag();
316 316
 							if($section===TTableRowSection::Body)
317 317
 								$writer->renderBeginTag('tbody');
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -306,8 +306,7 @@  discard block
 block discarded – undo
306 306
 					{
307 307
 						if($index===0 && $currentSection===TTableRowSection::Header)
308 308
 							$writer->renderBeginTag('thead');
309
-					}
310
-					else
309
+					} else
311 310
 					{
312 311
 						if($currentSection===TTableRowSection::Header)
313 312
 						{
@@ -318,8 +317,7 @@  discard block
 block discarded – undo
318 317
 							else
319 318
 								$writer->renderBeginTag('tfoot');
320 319
 							$currentSection=$section;
321
-						}
322
-						elseif($currentSection===TTableRowSection::Body)
320
+						} elseif($currentSection===TTableRowSection::Body)
323 321
 						{
324 322
 							$writer->renderEndTag();
325 323
 							if($section===TTableRowSection::Footer)
@@ -327,16 +325,14 @@  discard block
 block discarded – undo
327 325
 							else
328 326
 								throw new TConfigurationException('table_tablesection_outoforder');
329 327
 							$currentSection=$section;
330
-						}
331
-						else // Footer
328
+						} else // Footer
332 329
 							throw new TConfigurationException('table_tablesection_outoforder');
333 330
 					}
334 331
 					$row->renderControl($writer);
335 332
 					$writer->writeLine();
336 333
 				}
337 334
 				$writer->renderEndTag();
338
-			}
339
-			else
335
+			} else
340 336
 			{
341 337
 				$writer->writeLine();
342 338
 				foreach($this->getControls() as $row)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTemplateColumn.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 	}
119 119
 
120 120
 	/**
121
-	 * @return ITemplate the item template
121
+	 * @return string the item template
122 122
 	 */
123 123
 	public function getItemTemplate()
124 124
 	{
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
 					$control->setItemType($itemType);
215 215
 				}
216 216
 				if($control instanceof \Prado\IDataRenderer)
217
-					$control->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']);
217
+					$control->attachEventHandler('OnDataBinding', [$this, 'dataBindColumn']);
218 218
 			}
219 219
 			elseif($template!==null)
220 220
 				$template->instantiateIn($cell);
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -198,8 +198,7 @@  discard block
 block discarded – undo
198 198
 					$classPath=$this->getItemRenderer();
199 199
 					$template=$this->_itemTemplate;
200 200
 				}
201
-			}
202
-			else
201
+			} else
203 202
 			{
204 203
 				$template=$this->_itemTemplate;
205 204
 				$classPath=$this->getItemRenderer();
@@ -215,13 +214,11 @@  discard block
 block discarded – undo
215 214
 				}
216 215
 				if($control instanceof \Prado\IDataRenderer)
217 216
 					$control->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']);
218
-			}
219
-			elseif($template!==null)
217
+			} elseif($template!==null)
220 218
 				$template->instantiateIn($cell);
221 219
 			elseif($itemType!==TListItemType::EditItem)
222 220
 				$cell->setText('&nbsp;');
223
-		}
224
-		elseif($itemType===TListItemType::Header)
221
+		} elseif($itemType===TListItemType::Header)
225 222
 		{
226 223
 			if(($classPath=$this->getHeaderRenderer())!=='')
227 224
 				$this->initializeHeaderCell($cell, $columnIndex);
@@ -229,8 +226,7 @@  discard block
 block discarded – undo
229 226
 				$this->_headerTemplate->instantiateIn($cell);
230 227
 			else
231 228
 				$this->initializeHeaderCell($cell, $columnIndex);
232
-		}
233
-		elseif($itemType===TListItemType::Footer)
229
+		} elseif($itemType===TListItemType::Footer)
234 230
 		{
235 231
 			if(($classPath=$this->getFooterRenderer())!=='')
236 232
 				$this->initializeFooterCell($cell, $columnIndex);
Please login to merge, or discard this patch.