@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * Initialize a new DateFormat. |
| 91 | - * @param null|CultureInfo|DateTimeFormatInfo|string $formatInfo either, null, a CultureInfo instance, |
|
| 91 | + * @param string $formatInfo either, null, a CultureInfo instance, |
|
| 92 | 92 | * a DateTimeFormatInfo instance, or a locale. |
| 93 | 93 | * @return DateFormat instance |
| 94 | 94 | */ |
@@ -109,9 +109,9 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Format a date according to the pattern. |
| 112 | - * @param mixed $time the time as integer or string in strtotime format. |
|
| 112 | + * @param string $time the time as integer or string in strtotime format. |
|
| 113 | 113 | * @param mixed $pattern |
| 114 | - * @param mixed $charset |
|
| 114 | + * @param string $charset |
|
| 115 | 115 | * @return string formatted date time. |
| 116 | 116 | */ |
| 117 | 117 | public function format($time, $pattern = 'F', $charset = 'UTF-8') |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * @access public |
| 123 | 123 | * @param string $pofile path to GNU PO file |
| 124 | 124 | * @param string $mofile path to GNU MO file |
| 125 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
| 125 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
| 126 | 126 | */ |
| 127 | 127 | public static function poFile2moFile($pofile, $mofile) |
| 128 | 128 | { |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | * toMO |
| 263 | 263 | * |
| 264 | 264 | * @access protected |
| 265 | - * @return object File_Gettext_MO |
|
| 265 | + * @return TGettext_MO File_Gettext_MO |
|
| 266 | 266 | */ |
| 267 | 267 | public function toMO() |
| 268 | 268 | { |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | * toPO |
| 277 | 277 | * |
| 278 | 278 | * @access protected |
| 279 | - * @return object File_Gettext_PO |
|
| 279 | + * @return TGettext_PO File_Gettext_PO |
|
| 280 | 280 | */ |
| 281 | 281 | public function toPO() |
| 282 | 282 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @access private |
| 88 | 88 | * @param int $bytes $bytes |
| 89 | - * @return mixed |
|
| 89 | + * @return string|null |
|
| 90 | 90 | */ |
| 91 | 91 | public function _read($bytes = 1) |
| 92 | 92 | { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | * |
| 166 | 166 | * @access public |
| 167 | 167 | * @param string $file $file |
| 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 | */ |
| 170 | 170 | public function load($file = null) |
| 171 | 171 | { |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | * |
| 261 | 261 | * @access public |
| 262 | 262 | * @param string $file $file |
| 263 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
| 263 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
| 264 | 264 | */ |
| 265 | 265 | public function save($file = null) |
| 266 | 266 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @access public |
| 70 | 70 | * @param string $file $file |
| 71 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
| 71 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
| 72 | 72 | */ |
| 73 | 73 | public function load($file = null) |
| 74 | 74 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * |
| 125 | 125 | * @access public |
| 126 | 126 | * @param string $file $file |
| 127 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
| 127 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
| 128 | 128 | */ |
| 129 | 129 | public function save($file = null) |
| 130 | 130 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * Creates the DB connection. |
| 63 | 63 | * @param string $connectionID the module ID for TDataSourceConfig |
| 64 | 64 | * @throws TConfigurationException if module ID is invalid or empty |
| 65 | - * @return TDbConnection the created DB connection |
|
| 65 | + * @return \Prado\Data\TDbConnection the created DB connection |
|
| 66 | 66 | */ |
| 67 | 67 | protected function createDbConnection($connectionID) |
| 68 | 68 | { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | /** |
| 141 | 141 | * Get all the variants of a particular catalogue. |
| 142 | 142 | * @param string $catalogue catalogue name |
| 143 | - * @return array list of all variants for this catalogue. |
|
| 143 | + * @return string[] list of all variants for this catalogue. |
|
| 144 | 144 | */ |
| 145 | 145 | protected function getCatalogueList($catalogue) |
| 146 | 146 | { |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | /** |
| 195 | 195 | * Update the catalogue last modified time. |
| 196 | 196 | * @param mixed $cat_id |
| 197 | - * @param mixed $variant |
|
| 197 | + * @param string $variant |
|
| 198 | 198 | * @return bool true if updated, false otherwise. |
| 199 | 199 | */ |
| 200 | 200 | private function updateCatalogueTime($cat_id, $variant) |
@@ -195,6 +195,9 @@ discard block |
||
| 195 | 195 | return false; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | + /** |
|
| 199 | + * @param string $MOFile |
|
| 200 | + */ |
|
| 198 | 201 | private function getPOFile($MOFile) |
| 199 | 202 | { |
| 200 | 203 | $filebase = substr($MOFile, 0, strlen($MOFile) - strlen($this->dataExt)); |
@@ -423,6 +426,9 @@ discard block |
||
| 423 | 426 | return $catalogue; |
| 424 | 427 | } |
| 425 | 428 | |
| 429 | + /** |
|
| 430 | + * @param string $catalogue |
|
| 431 | + */ |
|
| 426 | 432 | protected function createMessageTemplate($catalogue) |
| 427 | 433 | { |
| 428 | 434 | if ($catalogue === null) { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * with a string that represent a culture/locale. Similarly, passing |
| 86 | 86 | * a CultureInfo or NumberFormatInfo instance will instantiated a instance |
| 87 | 87 | * for that particular culture. |
| 88 | - * @param null|CultureInfo|NumberFormatInfo|string $formatInfo either null, a CultureInfo, a NumberFormatInfo, or string |
|
| 88 | + * @param string $formatInfo either null, a CultureInfo, a NumberFormatInfo, or string |
|
| 89 | 89 | * @return NumberFormat |
| 90 | 90 | */ |
| 91 | 91 | public function __construct($formatInfo = null) |
@@ -106,13 +106,13 @@ discard block |
||
| 106 | 106 | * For the number for a certain pattern. The valid patterns are |
| 107 | 107 | * 'c', 'd', 'e', 'p' or a custom pattern, such as "#.000" for |
| 108 | 108 | * 3 decimal places. |
| 109 | - * @param mixed $number the number to format. |
|
| 109 | + * @param string $number the number to format. |
|
| 110 | 110 | * @param string $pattern the format pattern, either, 'c', 'd', 'e', 'p' |
| 111 | 111 | * or a custom pattern. E.g. "#.000" will format the number to |
| 112 | 112 | * 3 decimal places. |
| 113 | 113 | * @param string $currency 3-letter ISO 4217 code. For example, the code |
| 114 | 114 | * "USD" represents the US Dollar and "EUR" represents the Euro currency. |
| 115 | - * @param mixed $charset |
|
| 115 | + * @param string $charset |
|
| 116 | 116 | * @return string formatted number string |
| 117 | 117 | */ |
| 118 | 118 | public function format($number, $pattern = 'd', $currency = 'USD', $charset = 'UTF-8') |
@@ -496,8 +496,8 @@ |
||
| 496 | 496 | /** |
| 497 | 497 | * |
| 498 | 498 | * @access private |
| 499 | - * @param mixed $id |
|
| 500 | - * @param mixed $data |
|
| 499 | + * @param string $id |
|
| 500 | + * @param string $data |
|
| 501 | 501 | */ |
| 502 | 502 | protected function _memoryCacheAdd($id, $data) |
| 503 | 503 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * You should override this method if you want a different way of |
| 71 | 71 | * setting the Culture and/or Charset for your application. |
| 72 | 72 | * If you override this method, call parent::init($xml) first. |
| 73 | - * @param mixed $config application configuration |
|
| 73 | + * @param \Prado\TXmlElement|null $config application configuration |
|
| 74 | 74 | */ |
| 75 | 75 | public function init($config) |
| 76 | 76 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * @return string default culture |
|
| 99 | + * @return boolean default culture |
|
| 100 | 100 | */ |
| 101 | 101 | public function getTranslateDefaultCulture() |
| 102 | 102 | { |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | * Note that you still need to verify the existance of these files. |
| 287 | 287 | * @param string $file filename |
| 288 | 288 | * @param string $culture culture string, null to use current culture |
| 289 | - * @return array list of possible localized resource files. |
|
| 289 | + * @return string[] list of possible localized resource files. |
|
| 290 | 290 | */ |
| 291 | 291 | public function getLocalizedResource($file, $culture = null) |
| 292 | 292 | { |