Completed
Push — prado-3.3 ( 93ffb3...b1ee51 )
by Fabio
19:32
created
framework/I18N/core/CultureInfo.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -200,6 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
 	/**
202 202
 	* Gets the CultureInfo that for this culture string
203
+	* @param string $culture
203 204
 	* @return CultureInfo invariant culture info is "en".
204 205
 	*/
205 206
 	public static function getInstance($culture)
@@ -228,6 +229,7 @@  discard block
 block discarded – undo
228 229
 	 * Set the culture for the current instance. The culture indentifier
229 230
 	 * must be of the form "<language>_(country/region)".
230 231
 	 * @param string culture identifier, e.g. "fr_FR_EURO".
232
+	 * @param string $culture
231 233
 	 */
232 234
 	protected function setCulture($culture)
233 235
 	{
@@ -243,6 +245,7 @@  discard block
 block discarded – undo
243 245
 	/**
244 246
 	 * Load the ICU culture data for the specific culture identifier.
245 247
 	 * @param string the culture identifier.
248
+	 * @param string $culture
246 249
 	 */
247 250
 	protected function loadCultureData($culture)
248 251
 	{
@@ -283,6 +286,7 @@  discard block
 block discarded – undo
283 286
 	 * The data files are cached in a static variable inside
284 287
 	 * this function.
285 288
 	 * @param string the ICU data filename
289
+	 * @param string $filename
286 290
 	 * @return array ICU data
287 291
 	 */
288 292
 	protected function &getData($filename)
@@ -386,6 +390,7 @@  discard block
 block discarded – undo
386 390
 	/**
387 391
 	 * Set the date time format information.
388 392
 	 * @param DateTimeFormatInfo the new date time format info.
393
+	 * @param DateTimeFormatInfo $dateTimeFormat
389 394
 	 */
390 395
 	function setDateTimeFormat($dateTimeFormat)
391 396
 	{
@@ -493,6 +498,7 @@  discard block
 block discarded – undo
493 498
 	/**
494 499
 	 * Set the number format information.
495 500
 	 * @param NumberFormatInfo the new number format info.
501
+	 * @param NumberFormatInfo $numberFormat
496 502
 	 */
497 503
 	function setNumberFormat($numberFormat)
498 504
 	{
Please login to merge, or discard this patch.
framework/I18N/core/DateTimeFormatInfo.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -340,6 +340,7 @@
 block discarded – undo
340 340
 	/**
341 341
 	 * A string containing the name of the era.
342 342
 	 * @param int era The integer representing the era.
343
+	 * @param integer $era
343 344
 	 * @return string the era name.
344 345
 	 */
345 346
 	function getEra($era)
Please login to merge, or discard this patch.
framework/I18N/core/Gettext/MO.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * _read
87 87
      *
88 88
      * @access  private
89
-     * @return  mixed
89
+     * @return  string|null
90 90
      * @param   int     $bytes
91 91
      */
92 92
     function _read($bytes = 1)
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * Load MO file
166 166
      *
167 167
      * @access   public
168
-     * @return   mixed   Returns true on success or PEAR_Error on failure.
168
+     * @return   boolean   Returns true on success or PEAR_Error on failure.
169 169
      * @param    string  $file
170 170
      */
171 171
     function load($file = null)
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
      * Save MO file
262 262
      *
263 263
      * @access  public
264
-     * @return  mixed   Returns true on success or PEAR_Error on failure.
264
+     * @return  boolean   Returns true on success or PEAR_Error on failure.
265 265
      * @param   string  $file
266 266
      */
267 267
     function save($file = null)
Please login to merge, or discard this patch.
framework/I18N/core/Gettext/PO.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * Load PO file
68 68
      *
69 69
      * @access  public
70
-     * @return  mixed   Returns true on success or PEAR_Error on failure.
70
+     * @return  boolean   Returns true on success or PEAR_Error on failure.
71 71
      * @param   string  $file
72 72
      */
73 73
     function load($file = null)
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * Save PO file
117 117
      *
118 118
      * @access  public
119
-     * @return  mixed   Returns true on success or PEAR_Error on failure.
119
+     * @return  boolean   Returns true on success or PEAR_Error on failure.
120 120
      * @param   string  $file
121 121
      */
122 122
     function save($file = null)
Please login to merge, or discard this patch.
framework/I18N/core/Gettext/TGettext.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      *
119 119
      * @static
120 120
      * @access  public
121
-     * @return  mixed   Returns true on success or PEAR_Error on failure.
121
+     * @return  boolean   Returns true on success or PEAR_Error on failure.
122 122
      * @param   string  $pofile path to GNU PO file
123 123
      * @param   string  $mofile path to GNU MO file
124 124
      */
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      * toMO
261 261
      *
262 262
      * @access  protected
263
-     * @return  object  File_Gettext_MO
263
+     * @return  TGettext_MO  File_Gettext_MO
264 264
      */
265 265
     function toMO()
266 266
     {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      * toPO
275 275
      *
276 276
      * @access  protected
277
-     * @return  object      File_Gettext_PO
277
+     * @return  TGettext_PO      File_Gettext_PO
278 278
      */
279 279
     function toPO()
280 280
     {
Please login to merge, or discard this patch.
framework/I18N/core/IMessageSource.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -109,6 +109,7 @@
 block discarded – undo
109 109
 	/**
110 110
 	 * Set the culture for this particular message source.
111 111
 	 * @param string the Culture name.
112
+	 * @return void
112 113
 	 */
113 114
 	function setCulture($culture);
114 115
 	
Please login to merge, or discard this patch.
framework/I18N/core/MessageCache.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,9 +99,7 @@
 block discarded – undo
99 99
 	 * Get the data from the cache.
100 100
 	 * @param string $catalogue The translation section.
101 101
 	 * @param string $culture The translation locale, e.g. "en_AU".
102
-	 * @param string $filename If the source is a file, this file's modified
103
-	 * time is newer than the cache's modified time, no cache hit.
104
-	 * @return mixed Boolean FALSE if no cache hit. Otherwise, translation
102
+	 * @return false|string Boolean FALSE if no cache hit. Otherwise, translation
105 103
 	 * table data for the specified section and locale.
106 104
 	 */
107 105
 	public function get($catalogue, $culture, $lastmodified=0)
Please login to merge, or discard this patch.
framework/I18N/core/MessageFormat.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,6 +111,7 @@  discard block
 block discarded – undo
111 111
 	/** 
112 112
 	 * Sets the charset for message output.
113 113
 	 * @param string charset, default is UTF-8
114
+	 * @param string $charset
114 115
 	 */
115 116
 	public function setCharset($charset)
116 117
 	{
@@ -171,9 +172,9 @@  discard block
 block discarded – undo
171 172
 
172 173
 	/**
173 174
 	 * Do string translation.
174
-	 * @param string the string to translate.
175
+	 * @param string string string to translate.
175 176
 	 * @param array a list of string to substitute.
176
-	 * @param string get the translation from a particular message
177
+	 * @param string string the translation from a particular message
177 178
 	 * catalogue.
178 179
 	 * @return string translated string.
179 180
 	 */
Please login to merge, or discard this patch.
framework/I18N/core/MessageSource.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -252,6 +252,7 @@  discard block
 block discarded – undo
252 252
 	/**
253 253
 	 * Set the culture for this message source.
254 254
 	 * @param string culture name
255
+	 * @param string $culture
255 256
 	 */
256 257
 	public function setCulture($culture)
257 258
 	{
@@ -270,6 +271,7 @@  discard block
 block discarded – undo
270 271
 	/**
271 272
 	 * Get the last modified unix-time for this particular catalogue+variant.
272 273
 	 * @param string catalogue+variant
274
+	 * @param string $source
273 275
 	 * @return int last modified in unix-time format.
274 276
 	 */
275 277
 	protected function getLastModified($source)
@@ -281,6 +283,7 @@  discard block
 block discarded – undo
281 283
 	 * Load the message for a particular catalogue+variant.
282 284
 	 * This methods needs to implemented by subclasses.
283 285
 	 * @param string catalogue+variant.
286
+	 * @param string $variant
284 287
 	 * @return array of translation messages. 
285 288
 	 */
286 289
 	protected function &loadData($variant)
@@ -301,6 +304,7 @@  discard block
 block discarded – undo
301 304
 	/**
302 305
 	 * Determine if the source is valid.
303 306
 	 * @param string catalogue+variant
307
+	 * @param string $source
304 308
 	 * @return boolean true if valid, false otherwise. 
305 309
 	 */
306 310
 	protected function isValidSource($source)
@@ -312,6 +316,7 @@  discard block
 block discarded – undo
312 316
 	 * Get all the variants of a particular catalogue.
313 317
 	 * This method must be implemented by subclasses.
314 318
 	 * @param string catalogue name
319
+	 * @param string $catalogue
315 320
 	 * @return array list of all variants for this catalogue. 
316 321
 	 */	
317 322
 	protected function getCatalogueList($catalogue)
Please login to merge, or discard this patch.