Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

Commit

Permalink
Fixed most of the docblocks/unused namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dlsniper authored and fabpot committed Dec 19, 2012
1 parent 25bae2d commit acea86c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
8 changes: 5 additions & 3 deletions Locale.php
Expand Up @@ -43,7 +43,7 @@ class Locale extends \Locale
* *
* @return array The country names with their codes as keys * @return array The country names with their codes as keys
* *
* @throws RuntimeException When the resource bundles cannot be loaded * @throws \RuntimeException When the resource bundles cannot be loaded
*/ */
public static function getDisplayCountries($locale) public static function getDisplayCountries($locale)
{ {
Expand Down Expand Up @@ -98,7 +98,7 @@ public static function getCountries()
* *
* @return array The language names with their codes as keys * @return array The language names with their codes as keys
* *
* @throws RuntimeException When the resource bundles cannot be loaded * @throws \RuntimeException When the resource bundles cannot be loaded
*/ */
public static function getDisplayLanguages($locale) public static function getDisplayLanguages($locale)
{ {
Expand Down Expand Up @@ -148,8 +148,10 @@ public static function getLanguages()
* Returns the locale names for a locale * Returns the locale names for a locale
* *
* @param string $locale The locale to use for the locale names * @param string $locale The locale to use for the locale names
*
* @return array The locale names with their codes as keys * @return array The locale names with their codes as keys
* @throws RuntimeException When the resource bundles cannot be loaded *
* @throws \RuntimeException When the resource bundles cannot be loaded
*/ */
public static function getDisplayLocales($locale) public static function getDisplayLocales($locale)
{ {
Expand Down
6 changes: 4 additions & 2 deletions Stub/StubCollator.php
Expand Up @@ -74,6 +74,8 @@ public function __construct($locale)
* *
* @param string $locale The locale code * @param string $locale The locale code
* *
* @return StubCollator
*
* @throws MethodArgumentValueNotImplementedException When $locale different than 'en' is passed * @throws MethodArgumentValueNotImplementedException When $locale different than 'en' is passed
*/ */
public static function create($locale) public static function create($locale)
Expand All @@ -84,8 +86,8 @@ public static function create($locale)
/** /**
* Sort array maintaining index association * Sort array maintaining index association
* *
* @param array &$array Input array * @param array &$array Input array
* @param array $sortFlag Flags for sorting, can be one of the following: * @param integer $sortFlag Flags for sorting, can be one of the following:
* StubCollator::SORT_REGULAR - compare items normally (don't change types) * StubCollator::SORT_REGULAR - compare items normally (don't change types)
* StubCollator::SORT_NUMERIC - compare items numerically * StubCollator::SORT_NUMERIC - compare items numerically
* StubCollator::SORT_STRING - compare items as strings * StubCollator::SORT_STRING - compare items as strings
Expand Down
8 changes: 5 additions & 3 deletions Stub/StubIntlDateFormatter.php
Expand Up @@ -91,7 +91,7 @@ class StubIntlDateFormatter
private $pattern; private $pattern;


/** /**
* @var DateTimeZone * @var \DateTimeZone
*/ */
private $dateTimeZone; private $dateTimeZone;


Expand Down Expand Up @@ -150,6 +150,8 @@ public function __construct($locale, $datetype, $timetype, $timezone = null, $ca
* One of the calendar constants. * One of the calendar constants.
* @param string $pattern Optional pattern to use when formatting * @param string $pattern Optional pattern to use when formatting
* *
* @return StubIntlDateFormatter
*
* @see http://www.php.net/manual/en/intldateformatter.create.php * @see http://www.php.net/manual/en/intldateformatter.create.php
* @see http://userguide.icu-project.org/formatparse/datetime * @see http://userguide.icu-project.org/formatparse/datetime
* *
Expand All @@ -169,7 +171,7 @@ public static function create($locale, $datetype, $timetype, $timezone = null, $
* *
* @see http://www.php.net/manual/en/intldateformatter.format.php * @see http://www.php.net/manual/en/intldateformatter.format.php
* *
* @throws NotImplementedException If one of the formatting characters is not implemented * @throws MethodArgumentValueNotImplementedException If one of the formatting characters is not implemented
*/ */
public function format($timestamp) public function format($timestamp)
{ {
Expand Down Expand Up @@ -494,7 +496,7 @@ public function setTimeZoneId($timeZoneId)
* *
* @param int $timestamp * @param int $timestamp
* *
* @return DateTime * @return \DateTime
*/ */
protected function createDateTime($timestamp) protected function createDateTime($timestamp)
{ {
Expand Down
1 change: 1 addition & 0 deletions Stub/StubLocale.php
Expand Up @@ -430,6 +430,7 @@ public static function getScript($locale)
* @see http://www.php.net/manual/en/locale.lookup.php * @see http://www.php.net/manual/en/locale.lookup.php
* *
* @throws \RuntimeException When the intl extension is not loaded * @throws \RuntimeException When the intl extension is not loaded
* @throws MethodNotImplementedException
*/ */
public static function lookup(array $langtag, $locale, $canonicalize = false, $default = null) public static function lookup(array $langtag, $locale, $canonicalize = false, $default = null)
{ {
Expand Down
4 changes: 3 additions & 1 deletion Stub/StubNumberFormatter.php
Expand Up @@ -266,6 +266,8 @@ public function __construct($locale = 'en', $style = null, $pattern = null)
* NumberFormat::PATTERN_RULEBASED. It must conform to the syntax * NumberFormat::PATTERN_RULEBASED. It must conform to the syntax
* described in the ICU DecimalFormat or ICU RuleBasedNumberFormat documentation * described in the ICU DecimalFormat or ICU RuleBasedNumberFormat documentation
* *
* @return StubNumberFormatter
*
* @see http://www.php.net/manual/en/numberformatter.create.php * @see http://www.php.net/manual/en/numberformatter.create.php
* @see http://www.icu-project.org/apiref/icu4c/classDecimalFormat.html#_details * @see http://www.icu-project.org/apiref/icu4c/classDecimalFormat.html#_details
* @see http://www.icu-project.org/apiref/icu4c/classRuleBasedNumberFormat.html#_details * @see http://www.icu-project.org/apiref/icu4c/classRuleBasedNumberFormat.html#_details
Expand Down Expand Up @@ -324,7 +326,7 @@ public function formatCurrency($value, $currency)
* *
* @see http://www.php.net/manual/en/numberformatter.format.php * @see http://www.php.net/manual/en/numberformatter.format.php
* *
* @throws RuntimeException If the method is called with the class $style 'CURRENCY' * @throws \RuntimeException If the method is called with the class $style 'CURRENCY'
* @throws MethodArgumentNotImplementedException If the $type is different than TYPE_DEFAULT * @throws MethodArgumentNotImplementedException If the $type is different than TYPE_DEFAULT
*/ */
public function format($value, $type = self::TYPE_DEFAULT) public function format($value, $type = self::TYPE_DEFAULT)
Expand Down

0 comments on commit acea86c

Please sign in to comment.