@@ -107,7 +107,7 @@ |
||
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
110 | - * @return TControl control to be validated. Null if no control is found. |
|
110 | + * @return \Prado\Web\UI\TControl|null control to be validated. Null if no control is found. |
|
111 | 111 | */ |
112 | 112 | public function getValidationTarget() |
113 | 113 | { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @return TListItemType item type. |
|
72 | + * @return string item type. |
|
73 | 73 | */ |
74 | 74 | public function getItemType() |
75 | 75 | { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | /** |
39 | 39 | * Creates a control used for repetition (used as a template). |
40 | - * @return TControl the control to be repeated |
|
40 | + * @return TRadioButtonItem the control to be repeated |
|
41 | 41 | */ |
42 | 42 | protected function createRepeatedControl() |
43 | 43 | { |
@@ -125,7 +125,7 @@ |
||
125 | 125 | /** |
126 | 126 | * Returns the value to be validated. |
127 | 127 | * This methid is required by \Prado\Web\UI\IValidatable interface. |
128 | - * @return mixed the value of the property to be validated. |
|
128 | + * @return string the value of the property to be validated. |
|
129 | 129 | */ |
130 | 130 | public function getValidationPropertyValue() |
131 | 131 | { |
@@ -182,7 +182,7 @@ |
||
182 | 182 | * Returns the value of the TSlider control. |
183 | 183 | * This method is required by {@link \Prado\IDataRenderer}. |
184 | 184 | * It is the same as {@link getValue()}. |
185 | - * @return string the value of the TSlider control. |
|
185 | + * @return double the value of the TSlider control. |
|
186 | 186 | * @see getValue |
187 | 187 | */ |
188 | 188 | public function getData() |
@@ -483,7 +483,7 @@ |
||
483 | 483 | $step = ($maxValue - $minValue) / self::MAX_STEPS; |
484 | 484 | } |
485 | 485 | $values = []; |
486 | - for ($i = $minValue;$i <= $maxValue;$i += $step) { |
|
486 | + for ($i = $minValue; $i <= $maxValue; $i += $step) { |
|
487 | 487 | $values[] = $i; |
488 | 488 | } |
489 | 489 | // Add max if it's not in the array because of step |
@@ -125,7 +125,7 @@ |
||
125 | 125 | /** |
126 | 126 | * Returns the value to be validated. |
127 | 127 | * This methid is required by \Prado\Web\UI\IValidatable interface. |
128 | - * @return mixed the value of the property to be validated. |
|
128 | + * @return string the value of the property to be validated. |
|
129 | 129 | */ |
130 | 130 | public function getValidationPropertyValue() |
131 | 131 | { |
@@ -125,7 +125,7 @@ |
||
125 | 125 | /** |
126 | 126 | * Returns the value to be validated. |
127 | 127 | * This methid is required by \Prado\Web\UI\IValidatable interface. |
128 | - * @return mixed the value of the property to be validated. |
|
128 | + * @return string the value of the property to be validated. |
|
129 | 129 | */ |
130 | 130 | public function getValidationPropertyValue() |
131 | 131 | { |
@@ -116,7 +116,7 @@ |
||
116 | 116 | $flag = false; |
117 | 117 | if ($n === count($list2)) { |
118 | 118 | sort($list, SORT_NUMERIC); |
119 | - for ($i = 0;$i < $n;++$i) { |
|
119 | + for ($i = 0; $i < $n; ++$i) { |
|
120 | 120 | if ($list[$i] !== $list2[$i]) { |
121 | 121 | $flag = true; |
122 | 122 | break; |
@@ -19,7 +19,6 @@ |
||
19 | 19 | namespace Prado\I18N\core; |
20 | 20 | |
21 | 21 | use DOMDocument; |
22 | -use DOMXPath; |
|
23 | 22 | use Prado\Exceptions\TException; |
24 | 23 | use Prado\Exceptions\TIOException; |
25 | 24 |
@@ -523,7 +523,7 @@ |
||
523 | 523 | </body> |
524 | 524 | </file> |
525 | 525 | </xliff> |
526 | -EOD; |
|
526 | +eod; |
|
527 | 527 | return $xml; |
528 | 528 | } |
529 | 529 | } |
@@ -468,6 +468,9 @@ |
||
468 | 468 | return false; |
469 | 469 | } |
470 | 470 | |
471 | + /** |
|
472 | + * @param string $catalogue |
|
473 | + */ |
|
471 | 474 | protected function createMessageTemplate($catalogue) |
472 | 475 | { |
473 | 476 | if ($catalogue === null) { |
@@ -66,6 +66,9 @@ |
||
66 | 66 | return $control; |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @return string |
|
71 | + */ |
|
69 | 72 | protected function getDefaultControlValue($container, $column, $record) |
70 | 73 | { |
71 | 74 | $control = $container->findControl(self::DEFAULT_ID); |
@@ -172,11 +172,11 @@ |
||
172 | 172 | { |
173 | 173 | $value = $this->getRecordPropertyValue($column, $record); |
174 | 174 | $hours = []; |
175 | - for ($i = 0;$i < 24;$i++) { |
|
175 | + for ($i = 0; $i < 24; $i++) { |
|
176 | 176 | $hours[] = str_pad($i, 2, '0', STR_PAD_LEFT); |
177 | 177 | } |
178 | 178 | $mins = []; |
179 | - for ($i = 0;$i < 60;$i++) { |
|
179 | + for ($i = 0; $i < 60; $i++) { |
|
180 | 180 | $mins[] = str_pad($i, 2, '0', STR_PAD_LEFT); |
181 | 181 | } |
182 | 182 | $hour = (int) (@date('H')); |