Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2018-08-08 10:14:26 +00:00
committed by StyleCI Bot
parent 3b76605892
commit 4cc8353760
4 changed files with 9 additions and 8 deletions

View File

@@ -85,6 +85,7 @@ class LanguageController extends Controller
$values = scandir($path); //Extracts names of directories present in lang directory
$values = array_slice($values, 2); // skips array element $value[0] = '.' & $value[1] = '..'
$sysLanguage = \Cache::get('language');
return \Datatable::collection(new Collection($values))
->addColumn('language', function ($model) {
if ($model == Config::get('app.fallback_locale')) {
@@ -96,7 +97,7 @@ class LanguageController extends Controller
->addColumn('id', function ($model) {
return $model;
})
->addColumn('status', function ($model) use ($sysLanguage){
->addColumn('status', function ($model) use ($sysLanguage) {
if ($sysLanguage === $model) {
return "<span style='color:green'>".Lang::trans('lang.active').'</span>';
} else {