From fac01c5ca3352859ed518b4e1802d7107ddbfb66 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Wed, 14 Oct 2020 19:28:22 +0300 Subject: [PATCH 1/2] change helper name --- .../src/Support/Command/{getAdmins.php => getAdminUsers.php} | 2 +- .../default/visiosoft/profile-module/src/Support/_helpers.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename addons/default/visiosoft/profile-module/src/Support/Command/{getAdmins.php => getAdminUsers.php} (93%) diff --git a/addons/default/visiosoft/profile-module/src/Support/Command/getAdmins.php b/addons/default/visiosoft/profile-module/src/Support/Command/getAdminUsers.php similarity index 93% rename from addons/default/visiosoft/profile-module/src/Support/Command/getAdmins.php rename to addons/default/visiosoft/profile-module/src/Support/Command/getAdminUsers.php index 9c01b9c29..5e5dd4079 100644 --- a/addons/default/visiosoft/profile-module/src/Support/Command/getAdmins.php +++ b/addons/default/visiosoft/profile-module/src/Support/Command/getAdminUsers.php @@ -2,7 +2,7 @@ use Anomaly\UsersModule\Role\Contract\RoleRepositoryInterface; -class getAdmins +class getAdminUsers { public function handle() { diff --git a/addons/default/visiosoft/profile-module/src/Support/_helpers.php b/addons/default/visiosoft/profile-module/src/Support/_helpers.php index 276134d40..6991cd3b8 100644 --- a/addons/default/visiosoft/profile-module/src/Support/_helpers.php +++ b/addons/default/visiosoft/profile-module/src/Support/_helpers.php @@ -1,10 +1,10 @@ Date: Fri, 16 Oct 2020 15:21:35 +0300 Subject: [PATCH 2/2] fixed declared functions --- .../default/visiosoft/profile-module/src/Support/_helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/default/visiosoft/profile-module/src/Support/_helpers.php b/addons/default/visiosoft/profile-module/src/Support/_helpers.php index 6991cd3b8..e9cc6fde7 100644 --- a/addons/default/visiosoft/profile-module/src/Support/_helpers.php +++ b/addons/default/visiosoft/profile-module/src/Support/_helpers.php @@ -4,7 +4,7 @@ use Visiosoft\ProfileModule\Support\Command\getAdminUsers; if (!function_exists('get_admins')) { - function getAdmins() { + function get_admins() { return dispatch_now(new getAdminUsers()); } } \ No newline at end of file