From 8d8857e552ba585eeb0b4942991aaa1003d44228 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sun, 7 Apr 2019 18:09:29 -0500 Subject: [PATCH] Turn closure into static --- app/Support/Countries.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Support/Countries.php b/app/Support/Countries.php index bbd477b5..47151f95 100644 --- a/app/Support/Countries.php +++ b/app/Support/Countries.php @@ -2,6 +2,8 @@ namespace App\Support; +use League\ISO3166\ISO3166; + /** * Class Countries */ @@ -14,8 +16,8 @@ class Countries */ public static function getSelectList() { - $countries = collect((new \League\ISO3166\ISO3166())->all()) - ->mapWithKeys(function ($item, $key) { + $countries = collect((new ISO3166())->all()) + ->mapWithKeys(static function ($item, $key) { return [strtolower($item['alpha2']) => $item['name']]; });