Completed
Push — php-cs-fixer ( b6f93e...b9836a )
by Fabio
07:15
created
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   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	 * Regular expression used to validate the email address
32 32
 	 * @see http://www.regular-expressions.info/email.html
33 33
 	 */
34
-	const EMAIL_REGEXP = '[a-zA-Z0-9!#$%&\'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&\'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?';
34
+	const EMAIL_REGEXP='[a-zA-Z0-9!#$%&\'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&\'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?';
35 35
 
36 36
 	/**
37 37
 	 * Gets the name of the javascript class responsible for performing validation for this control.
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 	 */
49 49
 	public function getRegularExpression()
50 50
 	{
51
-		$regex = parent::getRegularExpression();
52
-		return $regex === ''?self::EMAIL_REGEXP:$regex;
51
+		$regex=parent::getRegularExpression();
52
+		return $regex==='' ?self::EMAIL_REGEXP : $regex;
53 53
 	}
54 54
 
55 55
 	/**
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
 	 */
59 59
 	public function evaluateIsValid()
60 60
 	{
61
-		$value = $this->getValidationValue($this->getValidationTarget());
62
-		$valid = $valid = is_string($value) && strlen($value) <= 254 && parent::evaluateIsValid();
61
+		$value=$this->getValidationValue($this->getValidationTarget());
62
+		$valid=$valid=is_string($value) && strlen($value) <= 254 && parent::evaluateIsValid();
63 63
 
64 64
 		if($valid && $this->getCheckMXRecord() && function_exists('checkdnsrr'))
65 65
 		{
66
-			if($value !== '')
66
+			if($value!=='')
67 67
 			{
68
-				if(($pos = strpos($value, '@')) !== false)
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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	/**
41 41
 	 * @var boolean whether to continue buffering of output
42 42
 	 */
43
-	private $_continueBuffering = true;
43
+	private $_continueBuffering=true;
44 44
 
45 45
 
46 46
 	/**
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	public function __construct()
50 50
 	{
51 51
 		parent::__construct();
52
-		$this->EnableViewState = false;
52
+		$this->EnableViewState=false;
53 53
 	}
54 54
 
55 55
 	/**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function setContinueBuffering($value)
67 67
 	{
68
-		$this->_continueBuffering = TPropertyValue::ensureBoolean($value);
68
+		$this->_continueBuffering=TPropertyValue::ensureBoolean($value);
69 69
 	}
70 70
 
71 71
 	/**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 //$writer->write('<!-- flush -->');
78 78
 		// ajax responses can't be parsed by the client side before loaded and returned completely,
79 79
 		// so don't bother with flushing output somewhere mid-page if refreshing in a callback
80
-		if (!$this->Page->IsCallback)
80
+		if(!$this->Page->IsCallback)
81 81
 		{
82 82
 			$this->Page->flushWriter();
83 83
 //			$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.
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.
Spacing   +37 added lines, -37 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.
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	 */
96 96
 	public function setRepeatLayout($value)
97 97
 	{
98
-		if($value !== TRepeatLayout::Table)
98
+		if($value!==TRepeatLayout::Table)
99 99
 			throw new TInvalidDataValueException('ratinglist_table_layout_only');
100 100
 		else
101 101
 			parent::setRepeatLayout($value);
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
 	 */
107 107
 	public function getRating()
108 108
 	{
109
-		$rating = $this->getViewState('Rating', null);
110
-		if ($rating === null)
109
+		$rating=$this->getViewState('Rating', null);
110
+		if($rating===null)
111 111
 			return $this->getSelectedIndex() + 1;
112 112
 		else
113 113
 			return $rating;
@@ -118,9 +118,9 @@  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
 
@@ -136,9 +136,9 @@  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;
139
+		$interval=$this->getHalfRatingInterval();
140
+		$base=intval($rating) - 1;
141
+		$remainder=$rating - $base - 1;
142 142
 		return $remainder > $interval[1] ? $base + 1 : $base;
143 143
 	}
144 144
 
@@ -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
 	}
@@ -171,11 +171,11 @@  discard block
 block discarded – undo
171 171
 
172 172
 	protected function getCaptionControl()
173 173
 	{
174
-		if(($id = $this->getCaptionID()) !== '')
174
+		if(($id=$this->getCaptionID())!=='')
175 175
 		{
176
-			if($control = $this->getPage()->findControl($id))
176
+			if($control=$this->getPage()->findControl($id))
177 177
 				return $control;
178
-			if($control = $this->getNamingContainer()->findControl($id))
178
+			if($control=$this->getNamingContainer()->findControl($id))
179 179
 				return $control;
180 180
 		}
181 181
 		throw new TInvalidDataValueException(
@@ -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
 
@@ -262,9 +262,9 @@  discard block
 block discarded – undo
262 262
 	 */
263 263
 	protected function getCaptionControlID()
264 264
 	{
265
-		if(($id = $this->getCaptionID()) !== '')
265
+		if(($id=$this->getCaptionID())!=='')
266 266
 		{
267
-			if($control = $this->getParent()->findControl($id))
267
+			if($control=$this->getParent()->findControl($id))
268 268
 			{
269 269
 				if($control->getVisible(true))
270 270
 					return $control->getClientID();
@@ -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;
@@ -304,12 +304,12 @@  discard block
 block discarded – undo
304 304
 	 * @param string rating image file extension, default is '.gif'
305 305
 	 * @return array URL of publish the rating images
306 306
 	 */
307
-	protected function publishImages($style, $fileExt = '.gif')
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
 
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 	 */
319 319
 	protected function registerClientScript()
320 320
 	{
321
-		$cs = $this->getPage()->getClientScript();
321
+		$cs=$this->getPage()->getClientScript();
322 322
 		$cs->registerPradoScript('ratings');
323 323
 	}
324 324
 
@@ -326,10 +326,10 @@  discard block
 block discarded – undo
326 326
 	 * @param string asset file in the self::SCRIPT_PATH directory.
327 327
 	 * @return string asset file url.
328 328
 	 */
329
-	protected function getAssetUrl($file = '')
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.
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   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -102,15 +102,15 @@  discard block
 block discarded – undo
102 102
 	protected function addAttributesToRender($writer)
103 103
 	{
104 104
 		parent::addAttributesToRender($writer);
105
-		$border = 0;
105
+		$border=0;
106 106
 		if($this->getHasStyle())
107 107
 		{
108
-			if($this->getGridLines() !== TTableGridLines::None)
108
+			if($this->getGridLines()!==TTableGridLines::None)
109 109
 			{
110
-				if(($border = $this->getBorderWidth()) === '')
111
-					$border = 1;
110
+				if(($border=$this->getBorderWidth())==='')
111
+					$border=1;
112 112
 				else
113
-					$border = (int)$border;
113
+					$border=(int) $border;
114 114
 			}
115 115
 		}
116 116
 		$writer->addAttribute('border', "$border");
@@ -269,9 +269,9 @@  discard block
 block discarded – undo
269 269
 	public function renderBeginTag($writer)
270 270
 	{
271 271
 		parent::renderBeginTag($writer);
272
-		if(($caption = $this->getCaption()) !== '')
272
+		if(($caption=$this->getCaption())!=='')
273 273
 		{
274
-			if(($align = $this->getCaptionAlign()) !== TTableCaptionAlign::NotSet)
274
+			if(($align=$this->getCaptionAlign())!==TTableCaptionAlign::NotSet)
275 275
 				$writer->addAttribute('align', strtolower($align));
276 276
 			$writer->renderBeginTag('caption');
277 277
 			$writer->write($caption);
@@ -287,46 +287,46 @@  discard block
 block discarded – undo
287 287
 	{
288 288
 		if($this->getHasControls())
289 289
 		{
290
-			$renderTableSection = false;
290
+			$renderTableSection=false;
291 291
 			foreach($this->getControls() as $row)
292 292
 			{
293
-				if($row->getTableSection() !== TTableRowSection::Body)
293
+				if($row->getTableSection()!==TTableRowSection::Body)
294 294
 				{
295
-					$renderTableSection = true;
295
+					$renderTableSection=true;
296 296
 					break;
297 297
 				}
298 298
 			}
299 299
 			if($renderTableSection)
300 300
 			{
301
-				$currentSection = TTableRowSection::Header;
301
+				$currentSection=TTableRowSection::Header;
302 302
 				$writer->writeLine();
303 303
 				foreach($this->getControls() as $index => $row)
304 304
 				{
305
-					if(($section = $row->getTableSection()) === $currentSection)
305
+					if(($section=$row->getTableSection())===$currentSection)
306 306
 					{
307
-						if($index === 0 && $currentSection === TTableRowSection::Header)
307
+						if($index===0 && $currentSection===TTableRowSection::Header)
308 308
 							$writer->renderBeginTag('thead');
309 309
 					}
310 310
 					else
311 311
 					{
312
-						if($currentSection === TTableRowSection::Header)
312
+						if($currentSection===TTableRowSection::Header)
313 313
 						{
314 314
 							if($index > 0)
315 315
 								$writer->renderEndTag();
316
-							if($section === TTableRowSection::Body)
316
+							if($section===TTableRowSection::Body)
317 317
 								$writer->renderBeginTag('tbody');
318 318
 							else
319 319
 								$writer->renderBeginTag('tfoot');
320
-							$currentSection = $section;
320
+							$currentSection=$section;
321 321
 						}
322
-						elseif($currentSection === TTableRowSection::Body)
322
+						elseif($currentSection===TTableRowSection::Body)
323 323
 						{
324 324
 							$writer->renderEndTag();
325
-							if($section === TTableRowSection::Footer)
325
+							if($section===TTableRowSection::Footer)
326 326
 								$writer->renderBeginTag('tfoot');
327 327
 							else
328 328
 								throw new TConfigurationException('table_tablesection_outoforder');
329
-							$currentSection = $section;
329
+							$currentSection=$section;
330 330
 						}
331 331
 						else // Footer
332 332
 							throw new TConfigurationException('table_tablesection_outoforder');
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   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
 	 */
113 113
 	public function setEditItemTemplate($value)
114 114
 	{
115
-		if($value instanceof ITemplate || $value === null)
116
-			$this->_editItemTemplate = $value;
115
+		if($value instanceof ITemplate || $value===null)
116
+			$this->_editItemTemplate=$value;
117 117
 		else
118 118
 			throw new TInvalidDataTypeException('templatecolumn_template_required', 'EditItemTemplate');
119 119
 	}
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
 	 */
133 133
 	public function setItemTemplate($value)
134 134
 	{
135
-		if($value instanceof ITemplate || $value === null)
136
-			$this->_itemTemplate = $value;
135
+		if($value instanceof ITemplate || $value===null)
136
+			$this->_itemTemplate=$value;
137 137
 		else
138 138
 			throw new TInvalidDataTypeException('templatecolumn_template_required', 'ItemTemplate');
139 139
 	}
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
 	 */
153 153
 	public function setHeaderTemplate($value)
154 154
 	{
155
-		if($value instanceof ITemplate || $value === null)
156
-			$this->_headerTemplate = $value;
155
+		if($value instanceof ITemplate || $value===null)
156
+			$this->_headerTemplate=$value;
157 157
 		else
158 158
 			throw new TInvalidDataTypeException('templatecolumn_template_required', 'HeaderTemplate');
159 159
 	}
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
 	 */
173 173
 	public function setFooterTemplate($value)
174 174
 	{
175
-		if($value instanceof ITemplate || $value === null)
176
-			$this->_footerTemplate = $value;
175
+		if($value instanceof ITemplate || $value===null)
176
+			$this->_footerTemplate=$value;
177 177
 		else
178 178
 			throw new TInvalidDataTypeException('templatecolumn_template_required', 'FooterTemplate');
179 179
 	}
@@ -189,24 +189,24 @@  discard block
 block discarded – undo
189 189
 	 */
190 190
 	public function initializeCell($cell, $columnIndex, $itemType)
191 191
 	{
192
-		if($itemType === TListItemType::Item || $itemType === TListItemType::AlternatingItem || $itemType === TListItemType::SelectedItem || $itemType === TListItemType::EditItem)
192
+		if($itemType===TListItemType::Item || $itemType===TListItemType::AlternatingItem || $itemType===TListItemType::SelectedItem || $itemType===TListItemType::EditItem)
193 193
 		{
194
-			if($itemType === TListItemType::EditItem)
194
+			if($itemType===TListItemType::EditItem)
195 195
 			{
196
-				if(($classPath = $this->getEditItemRenderer()) === '' && ($template = $this->_editItemTemplate) === null)
196
+				if(($classPath=$this->getEditItemRenderer())==='' && ($template=$this->_editItemTemplate)===null)
197 197
 				{
198
-					$classPath = $this->getItemRenderer();
199
-					$template = $this->_itemTemplate;
198
+					$classPath=$this->getItemRenderer();
199
+					$template=$this->_itemTemplate;
200 200
 				}
201 201
 			}
202 202
 			else
203 203
 			{
204
-				$template = $this->_itemTemplate;
205
-				$classPath = $this->getItemRenderer();
204
+				$template=$this->_itemTemplate;
205
+				$classPath=$this->getItemRenderer();
206 206
 			}
207
-			if($classPath !== '')
207
+			if($classPath!=='')
208 208
 			{
209
-				$control = Prado::createComponent($classPath);
209
+				$control=Prado::createComponent($classPath);
210 210
 				$cell->getControls()->add($control);
211 211
 				if($control instanceof IItemDataRenderer)
212 212
 				{
@@ -214,27 +214,27 @@  discard block
 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
-			elseif($template !== null)
219
+			elseif($template!==null)
220 220
 				$template->instantiateIn($cell);
221
-			elseif($itemType !== TListItemType::EditItem)
221
+			elseif($itemType!==TListItemType::EditItem)
222 222
 				$cell->setText('&nbsp;');
223 223
 		}
224
-		elseif($itemType === TListItemType::Header)
224
+		elseif($itemType===TListItemType::Header)
225 225
 		{
226
-			if(($classPath = $this->getHeaderRenderer()) !== '')
226
+			if(($classPath=$this->getHeaderRenderer())!=='')
227 227
 				$this->initializeHeaderCell($cell, $columnIndex);
228
-			elseif($this->_headerTemplate !== null)
228
+			elseif($this->_headerTemplate!==null)
229 229
 				$this->_headerTemplate->instantiateIn($cell);
230 230
 			else
231 231
 				$this->initializeHeaderCell($cell, $columnIndex);
232 232
 		}
233
-		elseif($itemType === TListItemType::Footer)
233
+		elseif($itemType===TListItemType::Footer)
234 234
 		{
235
-			if(($classPath = $this->getFooterRenderer()) !== '')
235
+			if(($classPath=$this->getFooterRenderer())!=='')
236 236
 				$this->initializeFooterCell($cell, $columnIndex);
237
-			elseif($this->_footerTemplate !== null)
237
+			elseif($this->_footerTemplate!==null)
238 238
 				$this->_footerTemplate->instantiateIn($cell);
239 239
 			else
240 240
 				$this->initializeFooterCell($cell, $columnIndex);
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 */
249 249
 	public function dataBindColumn($sender, $param)
250 250
 	{
251
-		$item = $sender->getNamingContainer();
251
+		$item=$sender->getNamingContainer();
252 252
 		$sender->setData($item->getData());
253 253
 	}
254 254
 }
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.
framework/Web/UI/WebControls/TWizardNavigationButtonStyle.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -113,6 +113,7 @@
 block discarded – undo
113 113
 
114 114
 	/**
115 115
 	 * @param string button caption
116
+	 * @param string $value
116 117
 	 */
117 118
 	public function setButtonText($value)
118 119
 	{
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
 	public function reset()
41 41
 	{
42 42
 		parent::reset();
43
-		$this->_imageUrl = null;
44
-		$this->_buttonText = null;
45
-		$this->_buttonType = null;
43
+		$this->_imageUrl=null;
44
+		$this->_buttonText=null;
45
+		$this->_buttonType=null;
46 46
 	}
47 47
 
48 48
 	/**
@@ -56,12 +56,12 @@  discard block
 block discarded – undo
56 56
 		parent::copyFrom($style);
57 57
 		if($style instanceof TWizardNavigationButtonStyle)
58 58
 		{
59
-			if($this->_imageUrl === null && $style->_imageUrl !== null)
60
-				$this->_imageUrl = $style->_imageUrl;
61
-			if($this->_buttonText === null && $style->_buttonText !== null)
62
-				$this->_buttonText = $style->_buttonText;
63
-			if($this->_buttonType === null && $style->_buttonType !== null)
64
-				$this->_buttonType = $style->_buttonType;
59
+			if($this->_imageUrl===null && $style->_imageUrl!==null)
60
+				$this->_imageUrl=$style->_imageUrl;
61
+			if($this->_buttonText===null && $style->_buttonText!==null)
62
+				$this->_buttonText=$style->_buttonText;
63
+			if($this->_buttonType===null && $style->_buttonType!==null)
64
+				$this->_buttonType=$style->_buttonType;
65 65
 		}
66 66
 	}
67 67
 
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
 		parent::mergeWith($style);
77 77
 		if($style instanceof TWizardNavigationButtonStyle)
78 78
 		{
79
-			if($style->_imageUrl !== null)
80
-				$this->_imageUrl = $style->_imageUrl;
81
-			if($style->_buttonText !== null)
82
-				$this->_buttonText = $style->_buttonText;
83
-			if($style->_buttonType !== null)
84
-				$this->_buttonType = $style->_buttonType;
79
+			if($style->_imageUrl!==null)
80
+				$this->_imageUrl=$style->_imageUrl;
81
+			if($style->_buttonText!==null)
82
+				$this->_buttonText=$style->_buttonText;
83
+			if($style->_buttonType!==null)
84
+				$this->_buttonType=$style->_buttonType;
85 85
 		}
86 86
 	}
87 87
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 */
91 91
 	public function getImageUrl()
92 92
 	{
93
-		return $this->_imageUrl === null?'':$this->_imageUrl;
93
+		return $this->_imageUrl===null ? '' : $this->_imageUrl;
94 94
 	}
95 95
 
96 96
 	/**
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 */
99 99
 	public function setImageUrl($value)
100 100
 	{
101
-		$this->_imageUrl = $value;
101
+		$this->_imageUrl=$value;
102 102
 	}
103 103
 
104 104
 	/**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 */
107 107
 	public function getButtonText()
108 108
 	{
109
-		return $this->_buttonText === null?'':$this->_buttonText;
109
+		return $this->_buttonText===null ? '' : $this->_buttonText;
110 110
 	}
111 111
 
112 112
 	/**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 */
115 115
 	public function setButtonText($value)
116 116
 	{
117
-		$this->_buttonText = $value;
117
+		$this->_buttonText=$value;
118 118
 	}
119 119
 
120 120
 	/**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	 */
123 123
 	public function getButtonType()
124 124
 	{
125
-		return $this->_buttonType === null? TWizardNavigationButtonType::Button :$this->_buttonType;
125
+		return $this->_buttonType===null ? TWizardNavigationButtonType::Button : $this->_buttonType;
126 126
 	}
127 127
 
128 128
 	/**
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	 */
131 131
 	public function setButtonType($value)
132 132
 	{
133
-		$this->_buttonType = TPropertyValue::ensureEnum($value, 'Prado\\Web\\UI\\WebControls\\TWizardNavigationButtonType');
133
+		$this->_buttonType=TPropertyValue::ensureEnum($value, 'Prado\\Web\\UI\\WebControls\\TWizardNavigationButtonType');
134 134
 	}
135 135
 
136 136
 	/**
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
 	{
142 142
 		if($button instanceof TImageButton)
143 143
 		{
144
-			if($button->getImageUrl() === '')
144
+			if($button->getImageUrl()==='')
145 145
 				$button->setImageUrl($this->getImageUrl());
146 146
 		}
147
-		if($button->getText() === '')
147
+		if($button->getText()==='')
148 148
 			$button->setText($this->getButtonText());
149 149
 		$button->getStyle()->mergeWith($this);
150 150
 	}
Please login to merge, or discard this patch.
framework/Collections/TAttributeCollection.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -93,6 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
 	/**
95 95
 	 * @param boolean whether the keys are case-sensitive.
96
+	 * @param boolean $value
96 97
 	 */
97 98
 	public function setCaseSensitive($value)
98 99
 	{
@@ -126,6 +127,7 @@  discard block
 block discarded – undo
126 127
 	 * Removes an item from the map by its key.
127 128
 	 * This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false.
128 129
 	 * @param mixed the key of the item to be removed
130
+	 * @param string $key
129 131
 	 * @return mixed the removed value, null if no such key exists.
130 132
 	 */
131 133
 	public function remove($key)
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
  */
42 42
 class TAttributeCollection extends TMap
43 43
 {
44
-	private $_caseSensitive = false;
44
+	private $_caseSensitive=false;
45 45
 
46 46
 	/**
47 47
 	 * Returns an array with the names of all variables of this object that should NOT be serialized
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 	protected function _getZappableSleepProps(&$exprops)
53 53
 	{
54 54
 		parent::_getZappableSleepProps($exprops);
55
-		if ($this->_caseSensitive === false)
56
-			$exprops[] = "\0Prado\Collections\TAttributeCollection\0_caseSensitive";
55
+		if($this->_caseSensitive===false)
56
+			$exprops[]="\0Prado\Collections\TAttributeCollection\0_caseSensitive";
57 57
 	}
58 58
 
59 59
 	/**
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	 */
67 67
 	public function __get($name)
68 68
 	{
69
-		return $this->contains($name)?$this->itemAt($name):parent::__get($name);
69
+		return $this->contains($name) ? $this->itemAt($name) : parent::__get($name);
70 70
 	}
71 71
 
72 72
 	/**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	 */
96 96
 	public function setCaseSensitive($value)
97 97
 	{
98
-		$this->_caseSensitive = TPropertyValue::ensureBoolean($value);
98
+		$this->_caseSensitive=TPropertyValue::ensureBoolean($value);
99 99
 	}
100 100
 
101 101
 	/**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 */
107 107
 	public function itemAt($key)
108 108
 	{
109
-		return parent::itemAt($this->_caseSensitive?$key:strtolower($key));
109
+		return parent::itemAt($this->_caseSensitive ? $key : strtolower($key));
110 110
 	}
111 111
 
112 112
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 */
119 119
 	public function add($key, $value)
120 120
 	{
121
-		parent::add($this->_caseSensitive?$key:strtolower($key), $value);
121
+		parent::add($this->_caseSensitive ? $key : strtolower($key), $value);
122 122
 	}
123 123
 
124 124
 	/**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	 */
130 130
 	public function remove($key)
131 131
 	{
132
-		return parent::remove($this->_caseSensitive?$key:strtolower($key));
132
+		return parent::remove($this->_caseSensitive ? $key : strtolower($key));
133 133
 	}
134 134
 
135 135
 	/**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	 */
141 141
 	public function contains($key)
142 142
 	{
143
-		return parent::contains($this->_caseSensitive?$key:strtolower($key));
143
+		return parent::contains($this->_caseSensitive ? $key : strtolower($key));
144 144
 	}
145 145
 
146 146
 	/**
Please login to merge, or discard this patch.
framework/I18N/TGlobalization.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 	}
91 91
 
92 92
 	/**
93
-	 * @return string default culture
93
+	 * @return boolean default culture
94 94
 	 */
95 95
 	public function getTranslateDefaultCulture()
96 96
 	{
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -212,8 +212,7 @@  discard block
 block discarded – undo
212 212
 						$config['source']);
213 213
 					chmod($config['source'], PRADO_CHMOD); //make it deletable
214 214
 				}
215
-			}
216
-			else
215
+			} else
217 216
 			{
218 217
 				throw new TConfigurationException("invalid source dir '{$config['source']}'");
219 218
 			}
@@ -228,8 +227,7 @@  discard block
 block discarded – undo
228 227
 						$config['cache']);
229 228
 				chmod($config['cache'], PRADO_CHMOD); //make it deletable
230 229
 			}
231
-		}
232
-		else
230
+		} else
233 231
 		{
234 232
 			unset($config['cache']);
235 233
 		}
Please login to merge, or discard this patch.
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
 	 * Default character set is 'UTF-8'.
35 35
 	 * @var string
36 36
 	 */
37
-	private $_defaultCharset = 'UTF-8';
37
+	private $_defaultCharset='UTF-8';
38 38
 
39 39
 	/**
40 40
 	 * Default culture is 'en'.
41 41
 	 * @var string
42 42
 	 */
43
-	private $_defaultCulture = 'en';
43
+	private $_defaultCulture='en';
44 44
 
45 45
 	/**
46 46
 	 * The current charset.
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	/**
64 64
 	 * @var boolean whether we should translate the default culture
65 65
 	 */
66
-	private $_translateDefaultCulture = true;
66
+	private $_translateDefaultCulture=true;
67 67
 
68 68
 	/**
69 69
 	 * Initialize the Culture and Charset for this application.
@@ -74,19 +74,19 @@  discard block
 block discarded – undo
74 74
 	 */
75 75
 	public function init($config)
76 76
 	{
77
-		if($this->_charset === null)
78
-			$this->_charset = $this->getDefaultCharset();
79
-		if($this->_culture === null)
80
-			$this->_culture = $this->getDefaultCulture();
77
+		if($this->_charset===null)
78
+			$this->_charset=$this->getDefaultCharset();
79
+		if($this->_culture===null)
80
+			$this->_culture=$this->getDefaultCulture();
81 81
 
82
-		if($config !== null)
82
+		if($config!==null)
83 83
 		{
84
-			if($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_PHP)
85
-				$translation = isset($config['translate'])?$config['translate']:null;
84
+			if($this->getApplication()->getConfigurationType()==TApplication::CONFIG_TYPE_PHP)
85
+				$translation=isset($config['translate']) ? $config['translate'] : null;
86 86
 			else
87 87
 			{
88
-				$t = $config->getElementByTagName('translation');
89
-				$translation = ($t)?$t->getAttributes():null;
88
+				$t=$config->getElementByTagName('translation');
89
+				$translation=($t) ? $t->getAttributes() : null;
90 90
 			}
91 91
 			if($translation)
92 92
 				$this->setTranslationConfiguration($translation);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 */
108 108
 	public function setTranslateDefaultCulture($value)
109 109
 	{
110
-		$this->_translateDefaultCulture = TPropertyValue::ensureBoolean($value);
110
+		$this->_translateDefaultCulture=TPropertyValue::ensureBoolean($value);
111 111
 	}
112 112
 
113 113
 	/**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 */
124 124
 	public function setDefaultCulture($culture)
125 125
 	{
126
-		$this->_defaultCulture = str_replace('-', '_', $culture);
126
+		$this->_defaultCulture=str_replace('-', '_', $culture);
127 127
 	}
128 128
 
129 129
 	/**
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 	 */
140 140
 	public function setDefaultCharset($charset)
141 141
 	{
142
-		$this->_defaultCharset = $charset;
142
+		$this->_defaultCharset=$charset;
143 143
 	}
144 144
 
145 145
 	/**
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	 */
156 156
 	public function setCulture($culture)
157 157
 	{
158
-		$this->_culture = str_replace('-', '_', $culture);
158
+		$this->_culture=str_replace('-', '_', $culture);
159 159
 	}
160 160
 
161 161
 	/**
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	 */
172 172
 	public function setCharset($charset)
173 173
 	{
174
-		$this->_charset = $charset;
174
+		$this->_charset=$charset;
175 175
 	}
176 176
 
177 177
 	/**
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 	 */
180 180
 	public function getTranslationConfiguration()
181 181
 	{
182
-		return (!$this->_translateDefaultCulture && ($this->getDefaultCulture() == $this->getCulture()))
182
+		return (!$this->_translateDefaultCulture && ($this->getDefaultCulture()==$this->getCulture()))
183 183
 			? null
184 184
 			: $this->_translation;
185 185
 	}
@@ -200,14 +200,14 @@  discard block
 block discarded – undo
200 200
 	 */
201 201
 	protected function setTranslationConfiguration($config)
202 202
 	{
203
-		if($config['type'] == 'XLIFF' || $config['type'] == 'gettext' || $config['type'] == 'PHP')
203
+		if($config['type']=='XLIFF' || $config['type']=='gettext' || $config['type']=='PHP')
204 204
 		{
205 205
 			if($config['source'])
206 206
 			{
207
-				$config['source'] = Prado::getPathOfNamespace($config['source']);
207
+				$config['source']=Prado::getPathOfNamespace($config['source']);
208 208
 				if(!is_dir($config['source']))
209 209
 				{
210
-					if(@mkdir($config['source']) === false)
210
+					if(@mkdir($config['source'])===false)
211 211
 					throw new TConfigurationException('globalization_source_path_failed',
212 212
 						$config['source']);
213 213
 					chmod($config['source'], PRADO_CHMOD); //make it deletable
@@ -220,10 +220,10 @@  discard block
 block discarded – undo
220 220
 		}
221 221
 		if(isset($config['cache']) && TPropertyValue::ensureBoolean($config['cache']))
222 222
 		{
223
-			$config['cache'] = $this->getApplication()->getRunTimePath() . '/i18n';
223
+			$config['cache']=$this->getApplication()->getRunTimePath().'/i18n';
224 224
 			if(!is_dir($config['cache']))
225 225
 			{
226
-				if(@mkdir($config['cache']) === false)
226
+				if(@mkdir($config['cache'])===false)
227 227
 					throw new TConfigurationException('globalization_cache_path_failed',
228 228
 						$config['cache']);
229 229
 				chmod($config['cache'], PRADO_CHMOD); //make it deletable
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		{
234 234
 			unset($config['cache']);
235 235
 		}
236
-		$this->_translation = $config;
236
+		$this->_translation=$config;
237 237
 	}
238 238
 
239 239
 	/**
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 	 */
250 250
 	public function setTranslationCatalogue($value)
251 251
 	{
252
-		$this->_translation['catalogue'] = $value;
252
+		$this->_translation['catalogue']=$value;
253 253
 	}
254 254
 
255 255
 	/**
@@ -258,13 +258,13 @@  discard block
 block discarded – undo
258 258
 	 * @param string $culture the Culture string
259 259
 	 * @return array variants of the culture.
260 260
 	 */
261
-	public function getCultureVariants($culture = null)
261
+	public function getCultureVariants($culture=null)
262 262
 	{
263
-		if($culture === null) $culture = $this->getCulture();
264
-		$variants = explode('_', $culture);
265
-		$result = [];
263
+		if($culture===null) $culture=$this->getCulture();
264
+		$variants=explode('_', $culture);
265
+		$result=[];
266 266
 		for(; count($variants) > 0; array_pop($variants))
267
-			$result[] = implode('_', $variants);
267
+			$result[]=implode('_', $variants);
268 268
 		return $result;
269 269
 	}
270 270
 
@@ -287,17 +287,17 @@  discard block
 block discarded – undo
287 287
 	 * @param string culture string, null to use current culture
288 288
 	 * @return array list of possible localized resource files.
289 289
 	 */
290
-	public function getLocalizedResource($file, $culture = null)
290
+	public function getLocalizedResource($file, $culture=null)
291 291
 	{
292
-		$files = [];
293
-		$variants = $this->getCultureVariants($culture);
294
-		$path = pathinfo($file);
292
+		$files=[];
293
+		$variants=$this->getCultureVariants($culture);
294
+		$path=pathinfo($file);
295 295
 		foreach($variants as $variant)
296
-			$files[] = $path['dirname'] . DIRECTORY_SEPARATOR . $variant . DIRECTORY_SEPARATOR . $path['basename'];
297
-		$filename = substr($path['basename'], 0, strrpos($path['basename'], '.'));
296
+			$files[]=$path['dirname'].DIRECTORY_SEPARATOR.$variant.DIRECTORY_SEPARATOR.$path['basename'];
297
+		$filename=substr($path['basename'], 0, strrpos($path['basename'], '.'));
298 298
 		foreach($variants as $variant)
299
-			$files[] = $path['dirname'] . DIRECTORY_SEPARATOR . $filename . '.' . $variant . '.' . $path['extension'];
300
-		$files[] = $file;
299
+			$files[]=$path['dirname'].DIRECTORY_SEPARATOR.$filename.'.'.$variant.'.'.$path['extension'];
300
+		$files[]=$file;
301 301
 		return $files;
302 302
 	}
303 303
 
Please login to merge, or discard this patch.
framework/Data/SqlMap/Configuration/TResultMap.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,8 +164,7 @@
 block discarded – undo
164 164
 				return $handler->createNewInstance();
165 165
 			else
166 166
 				return $registry->createInstanceOf($this->getClass());
167
-		}
168
-		catch (TSqlMapException $e)
167
+		} catch (TSqlMapException $e)
169 168
 		{
170 169
 			throw new TSqlMapException(
171 170
 				'sqlmap_unable_to_create_new_instance',
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	public function __construct()
56 56
 	{
57
-		$this->_columns = new TMap;
57
+		$this->_columns=new TMap;
58 58
 	}
59 59
 
60 60
 	/**
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 */
71 71
 	public function setID($value)
72 72
 	{
73
-		$this->_ID = $value;
73
+		$this->_ID=$value;
74 74
 	}
75 75
 
76 76
 	/**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 */
87 87
 	public function setClass($value)
88 88
 	{
89
-		$this->_class = $value;
89
+		$this->_class=$value;
90 90
 	}
91 91
 
92 92
 	/**
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	 */
111 111
 	public function setExtends($value)
112 112
 	{
113
-		$this->_extends = $value;
113
+		$this->_extends=$value;
114 114
 	}
115 115
 
116 116
 	/**
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 */
127 127
 	public function setGroupBy($value)
128 128
 	{
129
-		$this->_groupBy = $value;
129
+		$this->_groupBy=$value;
130 130
 	}
131 131
 
132 132
 	/**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 	 */
143 143
 	public function setDiscriminator(TDiscriminator $value)
144 144
 	{
145
-		$this->_discriminator = $value;
145
+		$this->_discriminator=$value;
146 146
 	}
147 147
 
148 148
 	/**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	 */
152 152
 	public function addResultProperty(TResultProperty $property)
153 153
 	{
154
-		$this->_columns[$property->getProperty()] = $property;
154
+		$this->_columns[$property->getProperty()]=$property;
155 155
 	}
156 156
 
157 157
 	/**
@@ -162,15 +162,15 @@  discard block
 block discarded – undo
162 162
 	 */
163 163
 	public function createInstanceOfResult($registry)
164 164
 	{
165
-		$handler = $registry->getTypeHandler($this->getClass());
165
+		$handler=$registry->getTypeHandler($this->getClass());
166 166
 		try
167 167
 		{
168
-			if($handler !== null)
168
+			if($handler!==null)
169 169
 				return $handler->createNewInstance();
170 170
 			else
171 171
 				return $registry->createInstanceOf($this->getClass());
172 172
 		}
173
-		catch (TSqlMapException $e)
173
+		catch(TSqlMapException $e)
174 174
 		{
175 175
 			throw new TSqlMapException(
176 176
 				'sqlmap_unable_to_create_new_instance',
@@ -186,16 +186,16 @@  discard block
 block discarded – undo
186 186
 	 */
187 187
 	public function resolveSubMap($registry, $row)
188 188
 	{
189
-		$subMap = $this;
190
-		if(($disc = $this->getDiscriminator()) !== null)
189
+		$subMap=$this;
190
+		if(($disc=$this->getDiscriminator())!==null)
191 191
 		{
192
-			$value = $disc->getMapping()->getPropertyValue($registry, $row);
193
-			$subMap = $disc->getSubMap((string)$value);
192
+			$value=$disc->getMapping()->getPropertyValue($registry, $row);
193
+			$subMap=$disc->getSubMap((string) $value);
194 194
 
195
-			if($subMap === null)
196
-				$subMap = $this;
197
-			elseif($subMap !== $this)
198
-				$subMap = $subMap->resolveSubMap($registry, $row);
195
+			if($subMap===null)
196
+				$subMap=$this;
197
+			elseif($subMap!==$this)
198
+				$subMap=$subMap->resolveSubMap($registry, $row);
199 199
 		}
200 200
 		return $subMap;
201 201
 	}
Please login to merge, or discard this patch.