1
0
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:
Andreas Möller 2019-08-28 23:18:37 +02:00
parent 204c07637b
commit 42858a7c92
No known key found for this signature in database
GPG Key ID: 9FB20A0BAF60E11F

View File

@ -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;