Completed
Push — intl ( b391f2...20c33e )
by Fabio
08:04
created
framework/Web/UI/ActiveControls/TCallbackClientSide.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 	}
205 205
 
206 206
 	/**
207
-	 * @return boolean true to post the inputs of the form on callback, default
207
+	 * @return string true to post the inputs of the form on callback, default
208 208
 	 * is post the inputs on callback.
209 209
 	 */
210 210
 	public function getPostState()
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 	}
223 223
 
224 224
 	/**
225
-	 * @return integer callback request timeout.
225
+	 * @return string callback request timeout.
226 226
 	 */
227 227
 	public function getRequestTimeOut()
228 228
 	{
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 	}
251 251
 
252 252
 	/**
253
-	 * @return boolean client-side viewstate will be updated on callback
253
+	 * @return boolean|string client-side viewstate will be updated on callback
254 254
 	 * response if true. Default is true.
255 255
 	 */
256 256
 	public function getEnablePageStateUpdate()
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TWizard.php 1 patch
Braces   +13 added lines, -26 removed lines patch added patch discarded remove patch
@@ -806,8 +806,7 @@  discard block
 block discarded – undo
806 806
 				$this->_navigation->renderControl($writer);
807 807
 				$writer->write("\n</td></tr></table>\n");
808 808
 				$this->renderEndTag($writer);
809
-			}
810
-			else
809
+			} else
811 810
 			{
812 811
 				$this->applyControlProperties();
813 812
 				$this->renderBeginTag($writer);
@@ -905,8 +904,7 @@  discard block
 block discarded – undo
905 904
 				{
906 905
 					$container->setVisible(true);
907 906
 					$showStandard=false;
908
-				}
909
-				else
907
+				} else
910 908
 					$container->setVisible(false);
911 909
 			}
912 910
 		}
@@ -1031,11 +1029,9 @@  discard block
 block discarded – undo
1031 1029
 					return TWizardStepType::Finish;
1032 1030
 				else
1033 1031
 					return TWizardStepType::Step;
1034
-			}
1035
-			else
1032
+			} else
1036 1033
 				return $type;
1037
-		}
1038
-		else
1034
+		} else
1039 1035
 			return $type;
1040 1036
 	}
1041 1037
 
@@ -1102,8 +1098,7 @@  discard block
 block discarded – undo
1102 1098
 				$this->_sideBarDataList->setSelectedItemIndex($this->getActiveStepIndex());
1103 1099
 				$this->_sideBarDataList->dataBind();
1104 1100
 			}
1105
-		}
1106
-		else
1101
+		} else
1107 1102
 		{
1108 1103
 			$this->_sideBar=new TPanel;
1109 1104
 			$this->getControls()->add($this->_sideBar);
@@ -1140,8 +1135,7 @@  discard block
 block discarded – undo
1140 1135
 			{
1141 1136
 				if(!$this->_activeStepIndexSet && $this->allowNavigationToStep($newStepIndex))
1142 1137
 					$this->setActiveStepIndex($newStepIndex);
1143
-			}
1144
-			else
1138
+			} else
1145 1139
 				$this->setActiveStepIndex($stepIndex);
1146 1140
 		}
1147 1141
 	}
@@ -1285,8 +1279,7 @@  discard block
 block discarded – undo
1285 1279
 				$previousStepIndex=$history->pop();
1286 1280
 				if($activeStepIndex===$previousStepIndex && $history->getCount()>0)
1287 1281
 					$previousStepIndex=$history->pop();
1288
-			}
1289
-			else
1282
+			} else
1290 1283
 			{
1291 1284
 				$previousStepIndex=$history->peek();
1292 1285
 				if($activeStepIndex===$previousStepIndex && $history->getCount()>1)
@@ -1297,8 +1290,7 @@  discard block
 block discarded – undo
1297 1290
 				}
1298 1291
 			}
1299 1292
 			return $activeStepIndex===$previousStepIndex ? -1 : $previousStepIndex;
1300
-		}
1301
-		else
1293
+		} else
1302 1294
 			return -1;
1303 1295
 	}
1304 1296
 
@@ -1362,8 +1354,7 @@  discard block
 block discarded – undo
1362 1354
 					$navParam->setNextStepIndex($index+1);
1363 1355
 				$this->onNextButtonClick($navParam);
1364 1356
 				$handled=true;
1365
-			}
1366
-			else if(strcasecmp($command,self::CMD_PREVIOUS)===0)
1357
+			} else if(strcasecmp($command,self::CMD_PREVIOUS)===0)
1367 1358
 			{
1368 1359
 				if($type!==TWizardStepType::Finish && $type!==TWizardStepType::Step)
1369 1360
 					throw new TInvalidDataValueException('wizard_command_invalid',self::CMD_PREVIOUS);
@@ -1372,8 +1363,7 @@  discard block
 block discarded – undo
1372 1363
 					$navParam->setNextStepIndex($prevIndex);
1373 1364
 				$this->onPreviousButtonClick($navParam);
1374 1365
 				$handled=true;
1375
-			}
1376
-			else if(strcasecmp($command,self::CMD_COMPLETE)===0)
1366
+			} else if(strcasecmp($command,self::CMD_COMPLETE)===0)
1377 1367
 			{
1378 1368
 				if($type!==TWizardStepType::Finish)
1379 1369
 					throw new TInvalidDataValueException('wizard_command_invalid',self::CMD_COMPLETE);
@@ -1381,8 +1371,7 @@  discard block
 block discarded – undo
1381 1371
 					$navParam->setNextStepIndex($index+1);
1382 1372
 				$this->onCompleteButtonClick($navParam);
1383 1373
 				$handled=true;
1384
-			}
1385
-			else if(strcasecmp($command,self::CMD_MOVETO)===0)
1374
+			} else if(strcasecmp($command,self::CMD_MOVETO)===0)
1386 1375
 			{
1387 1376
 				if($this->_cancelNavigation)  // may be set in onSideBarButtonClick
1388 1377
 					$navParam->setCancelNavigation(true);
@@ -1398,8 +1387,7 @@  discard block
 block discarded – undo
1398 1387
 						}
1399 1388
 					if ($requestedIndex<0)
1400 1389
 						throw new TConfigurationException('wizard_step_invalid');
1401
-				}
1402
-				else
1390
+				} else
1403 1391
 					$requestedIndex=TPropertyValue::ensureInteger($requestedStep);
1404 1392
 				$navParam->setNextStepIndex($requestedIndex);
1405 1393
 				$handled=true;
@@ -1416,8 +1404,7 @@  discard block
 block discarded – undo
1416 1404
 							$this->getPreviousStepIndex(true);  // pop out the previous move from history
1417 1405
 						$this->setActiveStepIndex($nextStepIndex);
1418 1406
 					}
1419
-				}
1420
-				else
1407
+				} else
1421 1408
 					$this->setActiveStepIndex($index);
1422 1409
 				return true;
1423 1410
 			}
Please login to merge, or discard this patch.
bin/prado-cli.php 1 patch
Doc Comments   +25 added lines patch added patch discarded remove patch
@@ -143,6 +143,10 @@  discard block
 block discarded – undo
143 143
 	 */
144 144
 	abstract public function performAction($args);
145 145
 
146
+	/**
147
+	 * @param string $dir
148
+	 * @param integer $mask
149
+	 */
146 150
 	protected function createDirectory($dir, $mask)
147 151
 	{
148 152
 		if(!is_dir($dir))
@@ -154,6 +158,9 @@  discard block
 block discarded – undo
154 158
 			chmod($dir, $mask);
155 159
 	}
156 160
 
161
+	/**
162
+	 * @param string $filename
163
+	 */
157 164
 	protected function createFile($filename, $content)
158 165
 	{
159 166
 		if(!is_file($filename))
@@ -302,6 +309,9 @@  discard block
 block discarded – undo
302 309
 ';
303 310
 	}
304 311
 
312
+	/**
313
+	 * @param string $appName
314
+	 */
305 315
 	protected function renderConfigFile($appName)
306 316
 	{
307 317
 		return <<<EOD
@@ -515,6 +525,9 @@  discard block
 block discarded – undo
515 525
 		return false;
516 526
 	}
517 527
 
528
+	/**
529
+	 * @param string $app_dir
530
+	 */
518 531
 	protected function getActiveRecordConfig($app_dir)
519 532
 	{
520 533
 		if(false === ($xml=$this->getXmlFile($app_dir)))
@@ -530,6 +543,9 @@  discard block
 block discarded – undo
530 543
 		return false;
531 544
 	}
532 545
 
546
+	/**
547
+	 * @param string $app_dir
548
+	 */
533 549
 	protected function getOutputFile($app_dir, $namespace)
534 550
 	{
535 551
 		if(is_file($namespace) && strpos($namespace, $app_dir)===0)
@@ -591,6 +607,9 @@  discard block
 block discarded – undo
591 607
 		return $prop;
592 608
 	}
593 609
 
610
+	/**
611
+	 * @param string $class
612
+	 */
594 613
 	protected function generateClass($properties, $tablename, $class)
595 614
 	{
596 615
 		$props = implode("\n", $properties);
@@ -686,6 +705,9 @@  discard block
 block discarded – undo
686 705
         return true;
687 706
     }
688 707
 
708
+    /**
709
+     * @param string $l
710
+     */
689 711
     public function generate($l)
690 712
     {
691 713
 		$input = explode(" ", trim($l));
@@ -724,6 +746,9 @@  discard block
 block discarded – undo
724 746
         return false;
725 747
     }
726 748
 
749
+    /**
750
+     * @param string $app_dir
751
+     */
727 752
     protected function getActiveRecordConfig($app_dir) {
728 753
         if (false === ($xml = $this->getXmlFile($app_dir)))
729 754
             return false;
Please login to merge, or discard this patch.
framework/Util/TSimpleDateFormatter.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,6 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * Constructor, create a new date time formatter.
66 66
 	 * @param string formatting pattern.
67 67
 	 * @param string pattern and value charset
68
+	 * @param string $pattern
68 69
 	 */
69 70
 	public function __construct($pattern, $charset='UTF-8')
70 71
 	{
@@ -98,6 +99,7 @@  discard block
 block discarded – undo
98 99
 
99 100
 	/**
100 101
 	 * @param string formatting charset.
102
+	 * @param string $charset
101 103
 	 */
102 104
 	public function setCharset($charset)
103 105
 	{
@@ -172,7 +174,7 @@  discard block
 block discarded – undo
172 174
 	/**
173 175
 	 * Gets the time stamp from string or integer.
174 176
 	 * @param string|int date to parse
175
-	 * @return array date info array
177
+	 * @return \DateTime date info array
176 178
 	 */
177 179
 	private function getDate($value)
178 180
 	{
@@ -324,6 +326,7 @@  discard block
 block discarded – undo
324 326
 
325 327
 	/**
326 328
 	 * Calculate the length of a string, may be consider iconv_strlen?
329
+	 * @param string $string
327 330
 	 */
328 331
 	private function length($string)
329 332
 	{
@@ -349,6 +352,9 @@  discard block
 block discarded – undo
349 352
 
350 353
 	/**
351 354
 	 * Returns true if char at position equals a particular char.
355
+	 * @param string $string
356
+	 * @param integer $pos
357
+	 * @param string $char
352 358
 	 */
353 359
 	private function charEqual($string, $pos, $char)
354 360
 	{
@@ -361,6 +367,10 @@  discard block
 block discarded – undo
361 367
 	 * @param int starting position
362 368
 	 * @param int minimum integer length
363 369
 	 * @param int maximum integer length
370
+	 * @param string $str
371
+	 * @param integer $i
372
+	 * @param integer|null $minlength
373
+	 * @param integer|null $maxlength
364 374
 	 * @return string integer portion of the string, null otherwise
365 375
 	 */
366 376
 	private function getInteger($str,$i,$minlength,$maxlength)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDatePicker.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,6 +110,7 @@  discard block
 block discarded – undo
110 110
 	/**
111 111
 	 * Sets the format of the date string.
112 112
 	 * @param string the format of the date string
113
+	 * @param string $value
113 114
 	 */
114 115
 	public function setDateFormat($value)
115 116
 	{
@@ -249,6 +250,7 @@  discard block
 block discarded – undo
249 250
 
250 251
 	/**
251 252
 	 * @param integer date picker starting year, default is 2000.
253
+	 * @param integer $value
252 254
 	 */
253 255
 	public function setFromYear($value)
254 256
 	{
@@ -358,6 +360,7 @@  discard block
 block discarded – undo
358 360
 
359 361
 	/**
360 362
 	 * @param string date string
363
+	 * @param string $value
361 364
 	 */
362 365
 	public function setDate($value)
363 366
 	{
@@ -481,7 +484,7 @@  discard block
 block discarded – undo
481 484
 	 * Loads date from drop down list data.
482 485
 	 * @param string the key that can be used to retrieve data from the input data collection
483 486
 	 * @param array the input data collection
484
-	 * @return array the date selected
487
+	 * @return string the date selected
485 488
 	 */
486 489
 	protected function getDateFromPostData($key, $values)
487 490
 	{
@@ -587,7 +590,7 @@  discard block
 block discarded – undo
587 590
 	}
588 591
 
589 592
 	/**
590
-	 * @return DateTimeFormatInfo date time format information for the current culture.
593
+	 * @return \Prado\I18N\core\DateTimeFormatInfo date time format information for the current culture.
591 594
 	 */
592 595
 	protected function getLocalizedCalendarInfo()
593 596
 	{
@@ -637,6 +640,7 @@  discard block
 block discarded – undo
637 640
 	 * Renders the calendar drop down list depending on the DateFormat pattern.
638 641
 	 * @param THtmlWriter the Html writer to render the drop down lists.
639 642
 	 * @param array the current selected date
643
+	 * @param \DateTime $date
640 644
 	 */
641 645
 	protected function renderCalendarSelections($writer, $date)
642 646
 	{
@@ -741,6 +745,7 @@  discard block
 block discarded – undo
741 745
 	 * "MMMM" will return the month names, "MM" or "MMM" return abbr. month names
742 746
 	 * and "M" return month digits.
743 747
 	 * @param DateTimeFormatInfo localized date format information.
748
+	 * @param \Prado\I18N\core\DateTimeFormatInfo $info
744 749
 	 * @return array localized month names.
745 750
 	 */
746 751
 	protected function getLocalizedMonthNames($info)
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/InputBuilder/TSqliteScaffoldInput.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
 				$dt->format('j'),
102 102
 				$dt->format('Y')
103 103
 			);
104
-		}
105
-		else
104
+		} else
106 105
 			return parent::getDateTimeValue($container, $column, $record);
107 106
 	}
108 107
 }
Please login to merge, or discard this patch.