1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-04-19 23:12:01 +02:00

Fix: DocBlock

This commit is contained in:
Andreas Möller 2020-10-22 22:04:25 +02:00
parent bd1b776934
commit 8e22dd7ef2
No known key found for this signature in database
GPG Key ID: 9FB20A0BAF60E11F
7 changed files with 13 additions and 12 deletions

View File

@ -35,7 +35,7 @@ class Luhn
/**
* @param $partialNumber
* @return string
* @return string|int
*/
public static function computeCheckDigit($partialNumber)
{

View File

@ -39,7 +39,7 @@ class Barcode extends Base
* @param string $input ISBN without check-digit
* @throws \LengthException When wrong input length passed
*
* @return integer Check digit
* @return integer|string Check digit
*/
protected static function isbnChecksum($input)
{

View File

@ -173,9 +173,9 @@ class Base
/**
* Returns randomly ordered subsequence of $count elements from a provided array
*
* @param array $array Array to take elements from. Defaults to a-c
* @param integer $count Number of elements to take.
* @param boolean $allowDuplicates Allow elements to be picked several times. Defaults to false
* @param array|\Traversable $array Array to take elements from. Defaults to a-c
* @param integer $count Number of elements to take.
* @param boolean $allowDuplicates Allow elements to be picked several times. Defaults to false
* @throws \LengthException When requesting more elements than provided
*
* @return array New array with $count elements from $array
@ -190,6 +190,7 @@ class Base
}
}
/** @var array $arr */
$arr = count($traversables) ? $traversables : $array;
$allKeys = array_keys($arr);
@ -223,7 +224,7 @@ class Base
/**
* Returns a random element from a passed array
*
* @param array $array
* @param array|\Traversable $array
* @return mixed
*/
public static function randomElement($array = ['a', 'b', 'c'])

View File

@ -32,7 +32,7 @@ class PhoneNumber extends Base
* @link http://en.wikipedia.org/wiki/International_Mobile_Station_Equipment_Identity
* @link http://imei-number.com/imei-validation-check/
* @example '720084494799532'
* @return int $imei
* @return string $imei
*/
public function imei()
{

File diff suppressed because one or more lines are too long

View File

@ -56,7 +56,7 @@ class Company extends \Faker\Provider\Company
/**
* Register of the National Economy, local entity number
* @link http://pl.wikipedia.org/wiki/REGON
* @return 14 digit number
* @return string 14 digit number
*/
public static function regonLocal()
{

View File

@ -83,7 +83,7 @@ class Person extends \Faker\Provider\Person
*
* Unisex academic degree
*
* @var string
* @var array<string>
*/
protected static $title = ['mgr','inż.', 'dr', 'doc.'];