@@ -123,7 +123,6 @@ discard block |
||
123 | 123 | * Constructor |
124 | 124 | * |
125 | 125 | * @param array $options Associative array of options |
126 | - * @param boolean $doNotTestCacheValidity If set to true, the cache validity won't be tested |
|
127 | 126 | * @throws Zend_Cache_Exception |
128 | 127 | * @return void |
129 | 128 | */ |
@@ -205,7 +204,6 @@ discard block |
||
205 | 204 | /** |
206 | 205 | * Specific setter for the 'regexps' option (with some additional tests) |
207 | 206 | * |
208 | - * @param array $options Associative array |
|
209 | 207 | * @throws Zend_Cache_Exception |
210 | 208 | * @return void |
211 | 209 | */ |
@@ -237,7 +235,7 @@ discard block |
||
237 | 235 | * |
238 | 236 | * @param string $id (optional) A cache id (if you set a value here, maybe you have to use Output frontend instead) |
239 | 237 | * @param boolean $doNotDie For unit testing only ! |
240 | - * @return boolean True if the cache is hit (false else) |
|
238 | + * @return boolean|null True if the cache is hit (false else) |
|
241 | 239 | */ |
242 | 240 | public function start($id = false, $doNotDie = false) |
243 | 241 | { |
@@ -335,7 +333,7 @@ discard block |
||
335 | 333 | /** |
336 | 334 | * Make an id depending on REQUEST_URI and superglobal arrays (depending on options) |
337 | 335 | * |
338 | - * @return mixed|false a cache id (string), false if the cache should have not to be used |
|
336 | + * @return false|string a cache id (string), false if the cache should have not to be used |
|
339 | 337 | */ |
340 | 338 | protected function _makeId() |
341 | 339 | { |
@@ -358,7 +356,7 @@ discard block |
||
358 | 356 | * @param string $arrayName Superglobal array name |
359 | 357 | * @param bool $bool1 If true, cache is still on even if there are some variables in the superglobal array |
360 | 358 | * @param bool $bool2 If true, we have to use the content of the superglobal array to make a partial id |
361 | - * @return mixed|false Partial id (string) or false if the cache should have not to be used |
|
359 | + * @return false|string Partial id (string) or false if the cache should have not to be used |
|
362 | 360 | */ |
363 | 361 | protected function _makePartialId($arrayName, $bool1, $bool2) |
364 | 362 | { |
@@ -673,7 +673,7 @@ |
||
673 | 673 | * |
674 | 674 | * @param float|integer|Zend_Currency $value Compares the currency with this value |
675 | 675 | * @param string|Zend_Currency $currency The currency to compare this value from |
676 | - * @return Zend_Currency |
|
676 | + * @return integer |
|
677 | 677 | */ |
678 | 678 | public function compare($value, $currency = null) |
679 | 679 | { |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | /** |
378 | 378 | * Subtracts a timestamp |
379 | 379 | * |
380 | - * @param integer|string|array|Zend_Date $timestamp Timestamp to sub |
|
380 | + * @param integer $timestamp Timestamp to sub |
|
381 | 381 | * @return Zend_Date Provides fluid interface |
382 | 382 | * @throws Zend_Date_Exception |
383 | 383 | */ |
@@ -1231,8 +1231,8 @@ discard block |
||
1231 | 1231 | * |
1232 | 1232 | * @param string $calc Calculation to make |
1233 | 1233 | * @param string|integer $date Date for calculation |
1234 | - * @param string|integer $comp Second date for calculation |
|
1235 | - * @param boolean|integer $dst Use dst correction if option is set |
|
1234 | + * @param integer $comp Second date for calculation |
|
1235 | + * @param string|false $dst Use dst correction if option is set |
|
1236 | 1236 | * @return integer|string|Zend_Date new timestamp or Zend_Date depending on calculation |
1237 | 1237 | */ |
1238 | 1238 | private function _assign($calc, $date, $comp = 0, $dst = false) |
@@ -2677,7 +2677,7 @@ discard block |
||
2677 | 2677 | * For example: |
2678 | 2678 | * 15.May.2000 <-> 15.June.2000 Equals only for Day or Year... all other will return false |
2679 | 2679 | * |
2680 | - * @param string|integer|array|Zend_Date $date Date or datepart to equal with |
|
2680 | + * @param Zend_Date $date Date or datepart to equal with |
|
2681 | 2681 | * @param string $part OPTIONAL Part of the date to compare, if null the timestamp is used |
2682 | 2682 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
2683 | 2683 | * @return boolean |
@@ -2699,7 +2699,7 @@ discard block |
||
2699 | 2699 | * For example: |
2700 | 2700 | * 15.May.2000 <-> 13.June.1999 will return true for day, year and date, but not for month |
2701 | 2701 | * |
2702 | - * @param string|integer|array|Zend_Date $date Date or datepart to compare with |
|
2702 | + * @param Zend_Date $date Date or datepart to compare with |
|
2703 | 2703 | * @param string $part OPTIONAL Part of the date to compare, if null the timestamp is used |
2704 | 2704 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
2705 | 2705 | * @return boolean |
@@ -2722,7 +2722,7 @@ discard block |
||
2722 | 2722 | * 15.May.2000 <-> 13.June.1999 will return true for month but false for day, year and date |
2723 | 2723 | * Returns if the given date is later |
2724 | 2724 | * |
2725 | - * @param string|integer|array|Zend_Date $date Date or datepart to compare with |
|
2725 | + * @param Zend_Date $date Date or datepart to compare with |
|
2726 | 2726 | * @param string $part OPTIONAL Part of the date to compare, if null the timestamp is used |
2727 | 2727 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
2728 | 2728 | * @return boolean |
@@ -2835,7 +2835,7 @@ discard block |
||
2835 | 2835 | * For example: dd.MMMM.yyTHH:mm' and 'ss sec'-> 10.May.07T25:11 and 44 sec => 1h11min44sec + 1 day |
2836 | 2836 | * Returned is the new date object and the existing date is left as it was before |
2837 | 2837 | * |
2838 | - * @param string|integer|array|Zend_Date $time Time to set |
|
2838 | + * @param string $time Time to set |
|
2839 | 2839 | * @param string $format OPTIONAL Timeformat for parsing input |
2840 | 2840 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
2841 | 2841 | * @return Zend_Date Provides fluid interface |
@@ -2997,7 +2997,7 @@ discard block |
||
2997 | 2997 | * For example: MMMM.yy HH:mm-> May.07 22:11 => 01.May.07 00:00 |
2998 | 2998 | * Returned is the new date object and the existing time is left as it was before |
2999 | 2999 | * |
3000 | - * @param string|integer|array|Zend_Date $date Date to set |
|
3000 | + * @param string $date Date to set |
|
3001 | 3001 | * @param string $format OPTIONAL Date format for parsing |
3002 | 3002 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
3003 | 3003 | * @return Zend_Date Provides fluid interface |
@@ -3364,7 +3364,7 @@ discard block |
||
3364 | 3364 | /** |
3365 | 3365 | * Check a given year for leap year. |
3366 | 3366 | * |
3367 | - * @param integer|array|Zend_Date $year Year to check |
|
3367 | + * @param Zend_Date $year Year to check |
|
3368 | 3368 | * @return boolean |
3369 | 3369 | */ |
3370 | 3370 | public static function checkLeapYear($year) |
@@ -3460,7 +3460,6 @@ discard block |
||
3460 | 3460 | * |
3461 | 3461 | * @param string $calc Calculation to make |
3462 | 3462 | * @param string|integer|array|Zend_Date $date Date or Part to calculate |
3463 | - * @param string $part Datepart for Calculation |
|
3464 | 3463 | * @param string|Zend_Locale $locale Locale for parsing input |
3465 | 3464 | * @return integer|string new date |
3466 | 3465 | * @throws Zend_Date_Exception |
@@ -3501,6 +3500,8 @@ discard block |
||
3501 | 3500 | * @param string $calc Calculation to make |
3502 | 3501 | * @param string|integer|Zend_Date $value Datevalue to calculate with, if null the actual value is taken |
3503 | 3502 | * @param string|Zend_Locale $locale Locale for parsing input |
3503 | + * @param string $type |
|
3504 | + * @param string $parameter |
|
3504 | 3505 | * @return integer|Zend_Date new date |
3505 | 3506 | * @throws Zend_Date_Exception |
3506 | 3507 | */ |
@@ -3558,7 +3559,6 @@ discard block |
||
3558 | 3559 | * use set() instead. |
3559 | 3560 | * Returned is the new date object |
3560 | 3561 | * |
3561 | - * @param string|integer|array|Zend_Date $date Year to set |
|
3562 | 3562 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
3563 | 3563 | * @return Zend_Date Provides fluid interface |
3564 | 3564 | * @throws Zend_Date_Exception |
@@ -3577,7 +3577,6 @@ discard block |
||
3577 | 3577 | * use add() instead. |
3578 | 3578 | * Returned is the new date object |
3579 | 3579 | * |
3580 | - * @param string|integer|array|Zend_Date $date Year to add |
|
3581 | 3580 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
3582 | 3581 | * @return Zend_Date Provides fluid interface |
3583 | 3582 | * @throws Zend_Date_Exception |
@@ -3596,7 +3595,6 @@ discard block |
||
3596 | 3595 | * use sub() instead. |
3597 | 3596 | * Returned is the new date object |
3598 | 3597 | * |
3599 | - * @param string|integer|array|Zend_Date $date Year to sub |
|
3600 | 3598 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
3601 | 3599 | * @return Zend_Date Provides fluid interface |
3602 | 3600 | * @throws Zend_Date_Exception |
@@ -3864,7 +3862,6 @@ discard block |
||
3864 | 3862 | * Returned is the new date object |
3865 | 3863 | * Example: setDay('Montag', 'de_AT'); will set the monday of this week as day. |
3866 | 3864 | * |
3867 | - * @param string|integer|array|Zend_Date $month Day to set |
|
3868 | 3865 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
3869 | 3866 | * @return Zend_Date Provides fluid interface |
3870 | 3867 | * @throws Zend_Date_Exception |
@@ -3882,7 +3879,6 @@ discard block |
||
3882 | 3879 | * If a localized dayname is given it will be parsed with the default locale or the optional |
3883 | 3880 | * set locale. |
3884 | 3881 | * |
3885 | - * @param string|integer|array|Zend_Date $month Day to add |
|
3886 | 3882 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
3887 | 3883 | * @return Zend_Date Provides fluid interface |
3888 | 3884 | * @throws Zend_Date_Exception |
@@ -3900,7 +3896,6 @@ discard block |
||
3900 | 3896 | * If a localized dayname is given it will be parsed with the default locale or the optional |
3901 | 3897 | * set locale. |
3902 | 3898 | * |
3903 | - * @param string|integer|array|Zend_Date $month Day to sub |
|
3904 | 3899 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
3905 | 3900 | * @return Zend_Date Provides fluid interface |
3906 | 3901 | * @throws Zend_Date_Exception |
@@ -4012,7 +4007,6 @@ discard block |
||
4012 | 4007 | * Returned is the new date object. |
4013 | 4008 | * Example: setWeekday(3); will set the wednesday of this week as day. |
4014 | 4009 | * |
4015 | - * @param string|integer|array|Zend_Date $month Weekday to set |
|
4016 | 4010 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
4017 | 4011 | * @return Zend_Date Provides fluid interface |
4018 | 4012 | * @throws Zend_Date_Exception |
@@ -4032,7 +4026,6 @@ discard block |
||
4032 | 4026 | * Example: addWeekday(3); will add the difference of days from the begining of the month until |
4033 | 4027 | * wednesday. |
4034 | 4028 | * |
4035 | - * @param string|integer|array|Zend_Date $month Weekday to add |
|
4036 | 4029 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
4037 | 4030 | * @return Zend_Date Provides fluid interface |
4038 | 4031 | * @throws Zend_Date_Exception |
@@ -4052,7 +4045,6 @@ discard block |
||
4052 | 4045 | * Example: subWeekday(3); will subtract the difference of days from the begining of the month until |
4053 | 4046 | * wednesday. |
4054 | 4047 | * |
4055 | - * @param string|integer|array|Zend_Date $month Weekday to sub |
|
4056 | 4048 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
4057 | 4049 | * @return Zend_Date Provides fluid interface |
4058 | 4050 | * @throws Zend_Date_Exception |
@@ -4373,7 +4365,7 @@ discard block |
||
4373 | 4365 | * Returned is the new date object |
4374 | 4366 | * Example: 04.May.1993 13:07:25 -> addSecond(65); -> 04.May.1993 13:08:30 |
4375 | 4367 | * |
4376 | - * @param string|integer|array|Zend_Date $second Second to add |
|
4368 | + * @param integer $second Second to add |
|
4377 | 4369 | * @param string|Zend_Locale $locale (Optional) Locale for parsing input |
4378 | 4370 | * @return Zend_Date Provides fluid interface |
4379 | 4371 | * @throws Zend_Date_Exception |
@@ -4390,7 +4382,7 @@ discard block |
||
4390 | 4382 | * Returned is the new date object |
4391 | 4383 | * Example: 04.May.1993 13:07:25 -> subSecond(10); -> 04.May.1993 13:07:15 |
4392 | 4384 | * |
4393 | - * @param string|integer|array|Zend_Date $second Second to sub |
|
4385 | + * @param integer $second Second to sub |
|
4394 | 4386 | * @param string|Zend_Locale $locale (Optional) Locale for parsing input |
4395 | 4387 | * @return Zend_Date Provides fluid interface |
4396 | 4388 | * @throws Zend_Date_Exception |
@@ -4456,7 +4448,7 @@ discard block |
||
4456 | 4448 | /** |
4457 | 4449 | * Returns the milliseconds of the date object |
4458 | 4450 | * |
4459 | - * @return string |
|
4451 | + * @return integer |
|
4460 | 4452 | */ |
4461 | 4453 | public function getMilliSecond() |
4462 | 4454 | { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * be hard-coded to use time(). For example, this makes it possible to test isYesterday() in Date.php. |
115 | 115 | * |
116 | 116 | * @param integer $sync OPTIONAL time syncronisation value |
117 | - * @return integer timestamp |
|
117 | + * @return double timestamp |
|
118 | 118 | */ |
119 | 119 | protected function _getTime($sync = null) |
120 | 120 | { |
@@ -1072,7 +1072,6 @@ discard block |
||
1072 | 1072 | /** |
1073 | 1073 | * Internal method to check if the given cache supports tags |
1074 | 1074 | * |
1075 | - * @param Zend_Cache $cache |
|
1076 | 1075 | */ |
1077 | 1076 | protected static function _getTagSupportForCache() |
1078 | 1077 | { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * |
58 | 58 | * @param string $method |
59 | 59 | * @param array $args |
60 | - * @return mixed |
|
60 | + * @return null|Exception |
|
61 | 61 | */ |
62 | 62 | public function __call($method, array $args) |
63 | 63 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * Set the default autoloader implementation |
139 | 139 | * |
140 | 140 | * @param string|array $callback PHP callback |
141 | - * @return void |
|
141 | + * @return Zend_Loader_Autoloader |
|
142 | 142 | */ |
143 | 143 | public function setDefaultAutoloader($callback) |
144 | 144 | { |
@@ -371,8 +371,8 @@ discard block |
||
371 | 371 | /** |
372 | 372 | * Add an autoloader to the beginning of the stack |
373 | 373 | * |
374 | - * @param object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
375 | - * @param string|array $namespace Specific namespace(s) under which to register callback |
|
374 | + * @param Zend_Loader_Autoloader_Resource $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
375 | + * @param string $namespace Specific namespace(s) under which to register callback |
|
376 | 376 | * @return Zend_Loader_Autoloader |
377 | 377 | */ |
378 | 378 | public function unshiftAutoloader($callback, $namespace = '') |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | /** |
395 | 395 | * Append an autoloader to the autoloader stack |
396 | 396 | * |
397 | - * @param object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
397 | + * @param string[] $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
398 | 398 | * @param string|array $namespace Specific namespace(s) under which to register callback |
399 | 399 | * @return Zend_Loader_Autoloader |
400 | 400 | */ |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | /** |
418 | 418 | * Remove an autoloader from the autoloader stack |
419 | 419 | * |
420 | - * @param object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
420 | + * @param string[] $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
421 | 421 | * @param null|string|array $namespace Specific namespace(s) from which to remove autoloader |
422 | 422 | * @return Zend_Loader_Autoloader |
423 | 423 | */ |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | * Internal autoloader implementation |
468 | 468 | * |
469 | 469 | * @param string $class |
470 | - * @return bool |
|
470 | + * @return string|false |
|
471 | 471 | */ |
472 | 472 | protected function _autoload($class) |
473 | 473 | { |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | * requested within HTTP |
324 | 324 | * |
325 | 325 | * @param string|Zend_Locale $locale Locale to set |
326 | - * @param float $quality The quality to set from 0 to 1 |
|
326 | + * @param integer $quality The quality to set from 0 to 1 |
|
327 | 327 | * @throws Zend_Locale_Exception When a autolocale was given |
328 | 328 | * @throws Zend_Locale_Exception When a unknown locale was given |
329 | 329 | * @return void |
@@ -688,7 +688,7 @@ discard block |
||
688 | 688 | * |
689 | 689 | * @param string $value Name to get detailed information about |
690 | 690 | * @param string $locale (Optional) Locale for language translation |
691 | - * @return array |
|
691 | + * @return string|false |
|
692 | 692 | * @deprecated |
693 | 693 | */ |
694 | 694 | public static function getLanguageTranslation($value, $locale = null) |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | * |
703 | 703 | * @param string $value Name to get detailed information about |
704 | 704 | * @param string $locale (Optional) locale for script translation |
705 | - * @return array |
|
705 | + * @return string|false |
|
706 | 706 | * @deprecated |
707 | 707 | */ |
708 | 708 | public static function getScriptTranslation($value, $locale = null) |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | * |
717 | 717 | * @param string $value Name to get detailed information about |
718 | 718 | * @param string|Zend_Locale $locale (Optional) Locale for country translation |
719 | - * @return array |
|
719 | + * @return string|false |
|
720 | 720 | * @deprecated |
721 | 721 | */ |
722 | 722 | public static function getCountryTranslation($value, $locale = null) |
@@ -731,7 +731,7 @@ discard block |
||
731 | 731 | * |
732 | 732 | * @param string $value Name to get detailed information about |
733 | 733 | * @param string|Zend_Locale $locale (Optional) Locale for territory translation |
734 | - * @return array |
|
734 | + * @return string|false |
|
735 | 735 | * @deprecated |
736 | 736 | */ |
737 | 737 | public static function getTerritoryTranslation($value, $locale = null) |
@@ -1084,7 +1084,6 @@ discard block |
||
1084 | 1084 | * |
1085 | 1085 | * Standard Searchorder is Browser, Environment, Default |
1086 | 1086 | * |
1087 | - * @param string $searchorder (Optional) Searchorder |
|
1088 | 1087 | * @return array Returns an array of all detected locales |
1089 | 1088 | */ |
1090 | 1089 | public static function getOrder($order = null) |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * Internal function for checking the locale |
277 | 277 | * |
278 | - * @param string|Zend_Locale $locale Locale to check |
|
278 | + * @param string $locale Locale to check |
|
279 | 279 | * @return string |
280 | 280 | */ |
281 | 281 | private static function _checkLocale($locale) |
@@ -1501,7 +1501,6 @@ discard block |
||
1501 | 1501 | /** |
1502 | 1502 | * Internal method to check if the given cache supports tags |
1503 | 1503 | * |
1504 | - * @param Zend_Cache $cache |
|
1505 | 1504 | */ |
1506 | 1505 | private static function _getTagSupportForCache() |
1507 | 1506 | { |
@@ -292,7 +292,6 @@ discard block |
||
292 | 292 | * ##0.00 -> 12345.12345 -> 12345.12 |
293 | 293 | * ##,##0.00 -> 12345.12345 -> 12,345.12 |
294 | 294 | * |
295 | - * @param string $input Localized number string |
|
296 | 295 | * @param array $options Options: number_format, locale, precision. See {@link setOptions()} for details. |
297 | 296 | * @return string locale formatted number |
298 | 297 | * @throws Zend_Locale_Exception |
@@ -488,6 +487,9 @@ discard block |
||
488 | 487 | return (string) $format; |
489 | 488 | } |
490 | 489 | |
490 | + /** |
|
491 | + * @param string $value |
|
492 | + */ |
|
491 | 493 | private static function _seperateFormat($format, $value, $precision) |
492 | 494 | { |
493 | 495 | if (iconv_strpos($format, ';') !== false) { |
@@ -644,7 +646,6 @@ discard block |
||
644 | 646 | /** |
645 | 647 | * Alias for getNumber |
646 | 648 | * |
647 | - * @param string $value Number to localize |
|
648 | 649 | * @param array $options Options: locale, precision. See {@link setOptions()} for details. |
649 | 650 | * @return float |
650 | 651 | */ |
@@ -671,7 +672,6 @@ discard block |
||
671 | 672 | * Returns if a float was found |
672 | 673 | * Alias for isNumber() |
673 | 674 | * |
674 | - * @param string $input Localized number string |
|
675 | 675 | * @param array $options Options: locale. See {@link setOptions()} for details. |
676 | 676 | * @return boolean Returns true if a number was found |
677 | 677 | */ |
@@ -719,7 +719,6 @@ discard block |
||
719 | 719 | /** |
720 | 720 | * Returns if a integer was found |
721 | 721 | * |
722 | - * @param string $input Localized number string |
|
723 | 722 | * @param array $options Options: locale. See {@link setOptions()} for details. |
724 | 723 | * @return boolean Returns true if a integer was found |
725 | 724 | */ |
@@ -1103,7 +1102,7 @@ discard block |
||
1103 | 1102 | * @param string $number Date string (modified) |
1104 | 1103 | * @param array $monthlist List of month names |
1105 | 1104 | * |
1106 | - * @return int|false Position of replaced string (false if nothing replaced) |
|
1105 | + * @return string Position of replaced string (false if nothing replaced) |
|
1107 | 1106 | */ |
1108 | 1107 | protected static function _replaceMonth(&$number, $monthlist) |
1109 | 1108 | { |