diff --git a/README.md b/README.md index 972e514..98377a7 100644 --- a/README.md +++ b/README.md @@ -49,4 +49,4 @@ You may now run it with the artisan migrate command: $ php artisan migrate --seed -After running this command the filled countries table will be available \ No newline at end of file +After running this command the filled countries table will be available diff --git a/src/Webpatser/Countries/Countries.php b/src/Webpatser/Countries/Countries.php index ca21d19..9ab1f94 100644 --- a/src/Webpatser/Countries/Countries.php +++ b/src/Webpatser/Countries/Countries.php @@ -40,7 +40,7 @@ public function __construct() protected function getCountries() { //Get the countries from the JSON file - if (sizeof($this->countries) == 0){ + if (empty($this->countries)){ $this->countries = json_decode(file_get_contents(__DIR__ . '/Models/countries.json'), true); }