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

Commit

Permalink
Enhancement: Return early
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Sep 17, 2019
1 parent 204c076 commit 42858a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Faker/Provider/nl_NL/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function company()
}

if (0 !== static::numberBetween(0, 1)) {
$companyName = $companyName . ' ' . static::randomElement(static::$companySuffix);
return $companyName . ' ' . static::randomElement(static::$companySuffix);
}

return $companyName;
Expand Down

0 comments on commit 42858a7

Please sign in to comment.