Completed
Push — php-cs-fixer ( b6f93e...b9836a )
by Fabio
07:15
created
framework/Web/UI/JuiControls/TJuiControlAdapter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
 	/**
82 82
 	 * Publish the jQuery-ui style Css asset file.
83
-	 * @param file name
83
+	 * @param file string
84 84
 	 * @return string Css file url.
85 85
 	 */
86 86
 	public function publishJuiStyle($file)
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
  */
28 28
 class TJuiControlAdapter extends TActiveControlAdapter
29 29
 {
30
-	const CSS_PATH = 'themes';
31
-	const BASE_CSS_FILENAME = 'jquery-ui.css';
30
+	const CSS_PATH='themes';
31
+	const BASE_CSS_FILENAME='jquery-ui.css';
32 32
 
33 33
 	/**
34 34
 	 * Replace default StateTracker with {@link TJuiCallbackPageStateTracker} for
@@ -71,10 +71,10 @@  discard block
 block discarded – undo
71 71
 	 * @param string jQuery asset file in the jquery-ui directory.
72 72
 	 * @return string jQuery asset url.
73 73
 	 */
74
-	protected function getAssetUrl($file = '')
74
+	protected function getAssetUrl($file='')
75 75
 	{
76
-		$base = $this->getPage()->getClientScript()->getPradoScriptAssetUrl('jquery-ui');
77
-		return $base . '/' . $file;
76
+		$base=$this->getPage()->getClientScript()->getPradoScriptAssetUrl('jquery-ui');
77
+		return $base.'/'.$file;
78 78
 	}
79 79
 
80 80
 	/**
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
 	 */
85 85
 	public function publishJuiStyle($file)
86 86
 	{
87
-		$url = $this->getAssetUrl(self::CSS_PATH . '/' . $this->getJuiBaseStyle() . '/' . $file);
88
-		$cs = $this->getPage()->getClientScript();
87
+		$url=$this->getAssetUrl(self::CSS_PATH.'/'.$this->getJuiBaseStyle().'/'.$file);
88
+		$cs=$this->getPage()->getClientScript();
89 89
 		if(!$cs->isStyleSheetFileRegistered($url))
90 90
 			$cs->registerStyleSheetFile($url, $url);
91 91
 		return $url;
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiEventParameter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 	 * Gets a control instance named after a returned control id.
68 68
 	 * Example: if a $param->draggable control id is returned from clientside,
69 69
 	 * calling $param->DraggableControl will return the control instance
70
-	 * @return mixed control or null if not set.
70
+	 * @return null|TControl control or null if not set.
71 71
 	 */
72 72
 	public function __get($name)
73 73
 	{
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
 	 */
53 53
 	public function getControl($id)
54 54
 	{
55
-		$control = null;
56
-		$service = Prado::getApplication()->getService();
57
-		if ($service instanceof TPageService)
55
+		$control=null;
56
+		$service=Prado::getApplication()->getService();
57
+		if($service instanceof TPageService)
58 58
 		{
59 59
 			// Find the control
60 60
 			// Warning, this will not work if you have a '_' in your control Id !
61
-			$controlId = str_replace(TControl::CLIENT_ID_SEPARATOR, TControl::ID_SEPARATOR, $id);
62
-			$control = $service->getRequestedPage()->findControl($controlId);
61
+			$controlId=str_replace(TControl::CLIENT_ID_SEPARATOR, TControl::ID_SEPARATOR, $id);
62
+			$control=$service->getRequestedPage()->findControl($controlId);
63 63
 		}
64 64
 		return $control;
65 65
 	}
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	public function __get($name)
74 74
 	{
75
-		$pos = strpos($name, 'Control', 1);
76
-		$name = strtolower(substr($name, 0, $pos));
75
+		$pos=strpos($name, 'Control', 1);
76
+		$name=strtolower(substr($name, 0, $pos));
77 77
 
78
-		$cp = $this->getCallbackParameter();
79
-		if(!isset($cp->$name) || $cp->$name == '')
78
+		$cp=$this->getCallbackParameter();
79
+		if(!isset($cp->$name) || $cp->$name=='')
80 80
 			return null;
81 81
 
82 82
 		return $this->getControl($cp->$name);
Please login to merge, or discard this patch.
framework/Web/UI/TCompositeLiteral.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 	}
60 60
 
61 61
 	/**
62
-	 * @return TComponent container of this component. It serves as the evaluation context of expressions and statements.
62
+	 * @return \Prado\TComponent container of this component. It serves as the evaluation context of expressions and statements.
63 63
 	 */
64 64
 	public function getContainer()
65 65
 	{
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
  */
24 24
 class TCompositeLiteral extends \Prado\TComponent implements IRenderable, IBindable
25 25
 {
26
-	const TYPE_EXPRESSION = 0;
27
-	const TYPE_STATEMENTS = 1;
28
-	const TYPE_DATABINDING = 2;
26
+	const TYPE_EXPRESSION=0;
27
+	const TYPE_STATEMENTS=1;
28
+	const TYPE_DATABINDING=2;
29 29
 	private $_container;
30
-	private $_items = [];
31
-	private $_expressions = [];
32
-	private $_statements = [];
33
-	private $_bindings = [];
30
+	private $_items=[];
31
+	private $_expressions=[];
32
+	private $_statements=[];
33
+	private $_bindings=[];
34 34
 
35 35
 	/**
36 36
 	 * Constructor.
@@ -38,23 +38,23 @@  discard block
 block discarded – undo
38 38
 	 */
39 39
 	public function __construct($items)
40 40
 	{
41
-		$this->_items = [];
42
-		$this->_expressions = [];
43
-		$this->_statements = [];
41
+		$this->_items=[];
42
+		$this->_expressions=[];
43
+		$this->_statements=[];
44 44
 		foreach($items as $id => $item)
45 45
 		{
46 46
 			if(is_array($item))
47 47
 			{
48
-				if($item[0] === self::TYPE_EXPRESSION)
49
-					$this->_expressions[$id] = $item[1];
50
-				elseif($item[0] === self::TYPE_STATEMENTS)
51
-					$this->_statements[$id] = $item[1];
52
-				elseif($item[0] === self::TYPE_DATABINDING)
53
-					$this->_bindings[$id] = $item[1];
54
-				$this->_items[$id] = '';
48
+				if($item[0]===self::TYPE_EXPRESSION)
49
+					$this->_expressions[$id]=$item[1];
50
+				elseif($item[0]===self::TYPE_STATEMENTS)
51
+					$this->_statements[$id]=$item[1];
52
+				elseif($item[0]===self::TYPE_DATABINDING)
53
+					$this->_bindings[$id]=$item[1];
54
+				$this->_items[$id]='';
55 55
 			}
56 56
 			else
57
-				$this->_items[$id] = $item;
57
+				$this->_items[$id]=$item;
58 58
 		}
59 59
 	}
60 60
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 */
72 72
 	public function setContainer(\Prado\TComponent $value)
73 73
 	{
74
-		$this->_container = $value;
74
+		$this->_container=$value;
75 75
 	}
76 76
 
77 77
 	/**
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	public function evaluateDynamicContent()
81 81
 	{
82
-		$context = $this->_container === null?$this:$this->_container;
82
+		$context=$this->_container===null ? $this : $this->_container;
83 83
 		foreach($this->_expressions as $id => $expression)
84
-			$this->_items[$id] = $context->evaluateExpression($expression);
84
+			$this->_items[$id]=$context->evaluateExpression($expression);
85 85
 		foreach($this->_statements as $id => $statement)
86
-			$this->_items[$id] = $context->evaluateStatements($statement);
86
+			$this->_items[$id]=$context->evaluateStatements($statement);
87 87
 	}
88 88
 
89 89
 	/**
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
 	 */
93 93
 	public function dataBind()
94 94
 	{
95
-		$context = $this->_container === null?$this:$this->_container;
95
+		$context=$this->_container===null ? $this : $this->_container;
96 96
 		foreach($this->_bindings as $id => $binding)
97
-			$this->_items[$id] = $context->evaluateExpression($binding);
97
+			$this->_items[$id]=$context->evaluateExpression($binding);
98 98
 	}
99 99
 
100 100
 	/**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
 				elseif($item[0] === self::TYPE_DATABINDING)
53 53
 					$this->_bindings[$id] = $item[1];
54 54
 				$this->_items[$id] = '';
55
-			}
56
-			else
55
+			} else
57 56
 				$this->_items[$id] = $item;
58 57
 		}
59 58
 	}
Please login to merge, or discard this patch.
framework/Web/UI/TTemplateManager.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -68,6 +68,7 @@
 block discarded – undo
68 68
 
69 69
 	/**
70 70
 	 * Loads the template from the specified file.
71
+	 * @param string $fileName
71 72
 	 * @return ITemplate template parsed from the specified file, null if the file doesn't exist.
72 73
 	 */
73 74
 	public function getTemplateByFileName($fileName)
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
 				$cache->set(self::TEMPLATE_CACHE_PREFIX . $fileName, [$template,$timestamps]);
108 108
 				return $template;
109 109
 			}
110
-		}
111
-		else
110
+		} else
112 111
 			return null;
113 112
 	}
114 113
 
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 	/**
40 40
 	 * Template file extension
41 41
 	 */
42
-	const TEMPLATE_FILE_EXT = '.tpl';
42
+	const TEMPLATE_FILE_EXT='.tpl';
43 43
 	/**
44 44
 	 * Prefix of the cache variable name for storing parsed templates
45 45
 	 */
46
-	const TEMPLATE_CACHE_PREFIX = 'prado:template:';
46
+	const TEMPLATE_CACHE_PREFIX='prado:template:';
47 47
 
48 48
 	/**
49 49
 	 * Initializes the module.
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public function getTemplateByClassName($className)
64 64
 	{
65
-		$class = new \ReflectionClass($className);
66
-		$tplFile = dirname($class->getFileName()) . DIRECTORY_SEPARATOR . $class->getShortName() . self::TEMPLATE_FILE_EXT;
65
+		$class=new \ReflectionClass($className);
66
+		$tplFile=dirname($class->getFileName()).DIRECTORY_SEPARATOR.$class->getShortName().self::TEMPLATE_FILE_EXT;
67 67
 		return $this->getTemplateByFileName($tplFile);
68 68
 	}
69 69
 
@@ -73,38 +73,38 @@  discard block
 block discarded – undo
73 73
 	 */
74 74
 	public function getTemplateByFileName($fileName)
75 75
 	{
76
-		if(($fileName = $this->getLocalizedTemplate($fileName)) !== null)
76
+		if(($fileName=$this->getLocalizedTemplate($fileName))!==null)
77 77
 		{
78 78
 			Prado::trace("Loading template $fileName", '\Prado\Web\UI\TTemplateManager');
79
-			if(($cache = $this->getApplication()->getCache()) === null)
79
+			if(($cache=$this->getApplication()->getCache())===null)
80 80
 				return new TTemplate(file_get_contents($fileName), dirname($fileName), $fileName);
81 81
 			else
82 82
 			{
83
-				$array = $cache->get(self::TEMPLATE_CACHE_PREFIX . $fileName);
83
+				$array=$cache->get(self::TEMPLATE_CACHE_PREFIX.$fileName);
84 84
 				if(is_array($array))
85 85
 				{
86
-					list($template, $timestamps) = $array;
87
-					if($this->getApplication()->getMode() === TApplicationMode::Performance)
86
+					list($template, $timestamps)=$array;
87
+					if($this->getApplication()->getMode()===TApplicationMode::Performance)
88 88
 						return $template;
89
-					$cacheValid = true;
89
+					$cacheValid=true;
90 90
 					foreach($timestamps as $tplFile => $timestamp)
91 91
 					{
92 92
 						if(!is_file($tplFile) || filemtime($tplFile) > $timestamp)
93 93
 						{
94
-							$cacheValid = false;
94
+							$cacheValid=false;
95 95
 							break;
96 96
 						}
97 97
 					}
98 98
 					if($cacheValid)
99 99
 						return $template;
100 100
 				}
101
-				$template = new TTemplate(file_get_contents($fileName), dirname($fileName), $fileName);
102
-				$includedFiles = $template->getIncludedFiles();
103
-				$timestamps = [];
104
-				$timestamps[$fileName] = filemtime($fileName);
101
+				$template=new TTemplate(file_get_contents($fileName), dirname($fileName), $fileName);
102
+				$includedFiles=$template->getIncludedFiles();
103
+				$timestamps=[];
104
+				$timestamps[$fileName]=filemtime($fileName);
105 105
 				foreach($includedFiles as $includedFile)
106
-					$timestamps[$includedFile] = filemtime($includedFile);
107
-				$cache->set(self::TEMPLATE_CACHE_PREFIX . $fileName, [$template,$timestamps]);
106
+					$timestamps[$includedFile]=filemtime($includedFile);
107
+				$cache->set(self::TEMPLATE_CACHE_PREFIX.$fileName, [$template, $timestamps]);
108 108
 				return $template;
109 109
 			}
110 110
 		}
@@ -119,11 +119,11 @@  discard block
 block discarded – undo
119 119
 	 */
120 120
 	protected function getLocalizedTemplate($filename)
121 121
 	{
122
-		if(($app = $this->getApplication()->getGlobalization(false)) === null)
123
-			return is_file($filename)?$filename:null;
122
+		if(($app=$this->getApplication()->getGlobalization(false))===null)
123
+			return is_file($filename) ? $filename : null;
124 124
 		foreach($app->getLocalizedResource($filename) as $file)
125 125
 		{
126
-			if(($file = realpath($file)) !== false && is_file($file))
126
+			if(($file=realpath($file))!==false && is_file($file))
127 127
 				return $file;
128 128
 		}
129 129
 		return null;
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/IDataSource.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -22,5 +22,9 @@
 block discarded – undo
22 22
 {
23 23
 	public function getView($viewName);
24 24
 	public function getViewNames();
25
+
26
+	/**
27
+	 * @return void
28
+	 */
25 29
 	public function onDataSourceChanged($param);
26 30
 }
27 31
\ No newline at end of file
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/IItemDataRenderer.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * Sets the zero-based index for the item.
37 37
 	 * If the item is not in the item collection (e.g. it is a header item), -1 should be used.
38 38
 	 * @param integer zero-based index of the item.
39
+	 * @return void
39 40
 	 */
40 41
 	public function setItemIndex($value);
41 42
 
@@ -46,6 +47,7 @@  discard block
 block discarded – undo
46 47
 
47 48
 	/**
48 49
 	 * @param TListItemType the item type.
50
+	 * @return void
49 51
 	 */
50 52
 	public function setItemType($value);
51 53
 }
52 54
\ No newline at end of file
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/IStyleable.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@
 block discarded – undo
32 32
 	public function getStyle();
33 33
 	/**
34 34
 	 * Removes all styles associated with the object
35
+	 * @return void
35 36
 	 */
36 37
 	public function clearStyle();
37 38
 }
38 39
\ No newline at end of file
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TBulletedList.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -216,6 +216,7 @@
 block discarded – undo
216 216
 	 * This method is invoked when the {@link getDisplayMode DisplayMode} is 'LinkButton'
217 217
 	 * and end-users click on one of the buttons.
218 218
 	 * @param TBulletedListEventParameter event parameter.
219
+	 * @param TBulletedListEventParameter $param
219 220
 	 */
220 221
 	public function onClick($param)
221 222
 	{
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	{
63 63
 		if($this->getCausesValidation())
64 64
 			$this->getPage()->validate($this->getValidationGroup());
65
-		$this->onClick(new TBulletedListEventParameter((int)$param));
65
+		$this->onClick(new TBulletedListEventParameter((int) $param));
66 66
 	}
67 67
 
68 68
 	/**
@@ -99,32 +99,32 @@  discard block
 block discarded – undo
99 99
 	 */
100 100
 	protected function addAttributesToRender($writer)
101 101
 	{
102
-		$needStart = false;
102
+		$needStart=false;
103 103
 		switch($this->getBulletStyle())
104 104
 		{
105 105
 			case TBulletStyle::None:
106 106
 				$writer->addStyleAttribute('list-style-type', 'none');
107
-				$needStart = true;
107
+				$needStart=true;
108 108
 				break;
109 109
 			case TBulletStyle::Numbered:
110 110
 				$writer->addStyleAttribute('list-style-type', 'decimal');
111
-				$needStart = true;
111
+				$needStart=true;
112 112
 				break;
113 113
 			case TBulletStyle::LowerAlpha:
114 114
 				$writer->addStyleAttribute('list-style-type', 'lower-alpha');
115
-				$needStart = true;
115
+				$needStart=true;
116 116
 				break;
117 117
 			case TBulletStyle::UpperAlpha:
118 118
 				$writer->addStyleAttribute('list-style-type', 'upper-alpha');
119
-				$needStart = true;
119
+				$needStart=true;
120 120
 				break;
121 121
 			case TBulletStyle::LowerRoman:
122 122
 				$writer->addStyleAttribute('list-style-type', 'lower-roman');
123
-				$needStart = true;
123
+				$needStart=true;
124 124
 				break;
125 125
 			case TBulletStyle::UpperRoman:
126 126
 				$writer->addStyleAttribute('list-style-type', 'upper-roman');
127
-				$needStart = true;
127
+				$needStart=true;
128 128
 				break;
129 129
 			case TBulletStyle::Disc:
130 130
 				$writer->addStyleAttribute('list-style-type', 'disc');
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
 				$writer->addStyleAttribute('list-style-type', 'square');
137 137
 				break;
138 138
 			case TBulletStyle::CustomImage:
139
-				$url = $this->getBulletImageUrl();
139
+				$url=$this->getBulletImageUrl();
140 140
 				$writer->addStyleAttribute('list-style-image', "url($url)");
141 141
 				break;
142 142
 		}
143
-		if($needStart && ($start = $this->getFirstBulletNumber()) != 1)
143
+		if($needStart && ($start=$this->getFirstBulletNumber())!=1)
144 144
 			$writer->addAttribute('start', "$start");
145 145
 		parent::addAttributesToRender($writer);
146 146
 	}
@@ -259,8 +259,8 @@  discard block
 block discarded – undo
259 259
 	 */
260 260
 	public function renderContents($writer)
261 261
 	{
262
-		$this->_isEnabled = $this->getEnabled(true);
263
-		$this->_postBackOptions = $this->getPostBackOptions();
262
+		$this->_isEnabled=$this->getEnabled(true);
263
+		$this->_postBackOptions=$this->getPostBackOptions();
264 264
 		$writer->writeLine();
265 265
 		foreach($this->getItems() as $index => $item)
266 266
 		{
@@ -315,10 +315,10 @@  discard block
 block discarded – undo
315 315
 		else
316 316
 		{
317 317
 			$writer->addAttribute('href', $item->getValue());
318
-			if(($target = $this->getTarget()) !== '')
318
+			if(($target=$this->getTarget())!=='')
319 319
 				$writer->addAttribute('target', $target);
320 320
 		}
321
-		if(($accesskey = $this->getAccessKey()) !== '')
321
+		if(($accesskey=$this->getAccessKey())!=='')
322 322
 			$writer->addAttribute('accesskey', $accesskey);
323 323
 		$writer->renderBeginTag('a');
324 324
 		$writer->write(THttpUtility::htmlEncode($item->getText()));
@@ -331,13 +331,13 @@  discard block
 block discarded – undo
331 331
 			$writer->addAttribute('disabled', 'disabled');
332 332
 		else
333 333
 		{
334
-			$this->_currentRenderItemIndex = $index;
335
-			$writer->addAttribute('id', $this->getClientID() . $index);
336
-			$writer->addAttribute('href', "javascript:;//" . $this->getClientID() . $index);
337
-			$cs = $this->getPage()->getClientScript();
334
+			$this->_currentRenderItemIndex=$index;
335
+			$writer->addAttribute('id', $this->getClientID().$index);
336
+			$writer->addAttribute('href', "javascript:;//".$this->getClientID().$index);
337
+			$cs=$this->getPage()->getClientScript();
338 338
 			$cs->registerPostBackControl($this->getClientClassName(), $this->getPostBackOptions());
339 339
 		}
340
-		if(($accesskey = $this->getAccessKey()) !== '')
340
+		if(($accesskey=$this->getAccessKey())!=='')
341 341
 			$writer->addAttribute('accesskey', $accesskey);
342 342
 		$writer->renderBeginTag('a');
343 343
 		$writer->write(THttpUtility::htmlEncode($item->getText()));
@@ -349,19 +349,19 @@  discard block
 block discarded – undo
349 349
 	 */
350 350
 	protected function getPostBackOptions()
351 351
 	{
352
-		$options['ValidationGroup'] = $this->getValidationGroup();
353
-		$options['CausesValidation'] = $this->getCausesValidation();
354
-		$options['EventTarget'] = $this->getUniqueID();
355
-		$options['EventParameter'] = $this->_currentRenderItemIndex;
356
-		$options['ID'] = $this->getClientID() . $this->_currentRenderItemIndex;
357
-		$options['StopEvent'] = true;
352
+		$options['ValidationGroup']=$this->getValidationGroup();
353
+		$options['CausesValidation']=$this->getCausesValidation();
354
+		$options['EventTarget']=$this->getUniqueID();
355
+		$options['EventParameter']=$this->_currentRenderItemIndex;
356
+		$options['ID']=$this->getClientID().$this->_currentRenderItemIndex;
357
+		$options['StopEvent']=true;
358 358
 		return $options;
359 359
 	}
360 360
 
361 361
 	protected function canCauseValidation()
362 362
 	{
363
-		$group = $this->getValidationGroup();
364
-		$hasValidators = $this->getPage()->getValidators($group)->getCount() > 0;
363
+		$group=$this->getValidationGroup();
364
+		$hasValidators=$this->getPage()->getValidators($group)->getCount() > 0;
365 365
 		return $this->getCausesValidation() && $hasValidators;
366 366
 	}
367 367
 
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TBulletedListEventParameter.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -31,6 +31,7 @@
 block discarded – undo
31 31
 	/**
32 32
 	 * Constructor.
33 33
 	 * @param integer index of the item clicked
34
+	 * @param integer $index
34 35
 	 */
35 36
 	public function __construct($index)
36 37
 	{
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 	 */
35 35
 	public function __construct($index)
36 36
 	{
37
-		$this->_index = $index;
37
+		$this->_index=$index;
38 38
 	}
39 39
 
40 40
 	/**
Please login to merge, or discard this patch.