mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-21 16:01:56 +02:00
Enhancement: Return early
This commit is contained in:
parent
204c07637b
commit
42858a7c92
@ -83,7 +83,7 @@ class Company extends \Faker\Provider\Company
|
||||
}
|
||||
|
||||
if (0 !== static::numberBetween(0, 1)) {
|
||||
$companyName = $companyName . ' ' . static::randomElement(static::$companySuffix);
|
||||
return $companyName . ' ' . static::randomElement(static::$companySuffix);
|
||||
}
|
||||
|
||||
return $companyName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user