Skip to content

Commit

Permalink
Update Countries.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Assmay authored Sep 8, 2022
1 parent 41ec8b3 commit 577ee4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function all()

public function getByName(string $name, string $separator=',')
{
$result = [];
$countries_name = explode($separator, $name);
$countries_name = array_map('trim', $countries_name);
foreach ($this->all() as $country) {
Expand Down

0 comments on commit 577ee4e

Please sign in to comment.