Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed Jun 14, 2018
1 parent 92bfa55 commit 5407fe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/helpers/GetCurrentX.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public static function getCurrentMethod() : string

public static function getCurrentModule()
{
$modulepath = self::getModulePath();
return cache()->remember('crudbooster_modules_'.$modulepath, 2, function () use ($modulepath) {
$module = app('CbModulesRegistery')->getModule($modulepath);
return $module?: ModulesRepo::getByPath($modulepath);
$modulePath = self::getModulePath();
return cache()->remember('crudbooster_modules_'.$modulePath, 2, function () use ($modulePath) {
$module = app('CbModulesRegistery')->getModule($modulePath);
return $module?: ModulesRepo::getByPath($modulePath);
});
}

Expand Down

0 comments on commit 5407fe1

Please sign in to comment.