Apply fixes from StyleCI (#12117)

* Apply fixes from StyleCI

* Disable style check
This commit is contained in:
Jellyfrog
2020-09-21 14:54:51 +02:00
committed by GitHub
parent 8ec9183df5
commit 77c531527c
752 changed files with 6238 additions and 5833 deletions

View File

@ -48,7 +48,7 @@ class GraphAggregateController extends Controller
'core',
];
foreach ((array)Config::get('custom_descr', []) as $custom) {
foreach ((array) Config::get('custom_descr', []) as $custom) {
if ($custom) {
$types[] = $custom;
}
@ -57,7 +57,7 @@ class GraphAggregateController extends Controller
// handle search
if ($search = strtolower($request->get('term'))) {
$types = array_filter($types, function ($type) use ($search) {
return !Str::contains(strtolower($type), $search);
return ! Str::contains(strtolower($type), $search);
});
}
@ -69,7 +69,7 @@ class GraphAggregateController extends Controller
'text' => ucwords($type),
];
}, $types),
'pagination' => ['more' => false]
'pagination' => ['more' => false],
]);
}
}