fixed typo
This commit is contained in:
parent
e9bf2b2b77
commit
97e66ca049
@ -60,7 +60,7 @@ class Transfers extends Controller
|
||||
$request = request();
|
||||
|
||||
if (isset($request['sort']) && array_key_exists($request['sort'], $special_key)) {
|
||||
$sort_order = array();
|
||||
$sort_order = [];
|
||||
|
||||
foreach ($data as $key => $value) {
|
||||
$sort = $request['sort'];
|
||||
|
@ -28,7 +28,7 @@ class Updates extends Controller
|
||||
|
||||
$core = null;
|
||||
|
||||
$modules = array();
|
||||
$modules = [];
|
||||
|
||||
if (isset($updates['core'])) {
|
||||
$core = $updates['core'];
|
||||
|
@ -33,8 +33,9 @@ class Currencies extends Controller
|
||||
$current = Currency::pluck('code')->toArray();
|
||||
|
||||
// Prepare codes
|
||||
$codes = array();
|
||||
$codes = [];
|
||||
$currencies = MoneyCurrency::getCurrencies();
|
||||
|
||||
foreach ($currencies as $key => $item) {
|
||||
// Don't show if already available
|
||||
if (in_array($key, $current)) {
|
||||
|
@ -45,8 +45,9 @@ class Currencies extends Controller
|
||||
$current = Currency::pluck('code')->toArray();
|
||||
|
||||
// Prepare codes
|
||||
$codes = array();
|
||||
$codes = [];
|
||||
$currencies = MoneyCurrency::getCurrencies();
|
||||
|
||||
foreach ($currencies as $key => $item) {
|
||||
// Don't show if already available
|
||||
if (in_array($key, $current)) {
|
||||
@ -108,8 +109,9 @@ class Currencies extends Controller
|
||||
$current = Currency::pluck('code')->toArray();
|
||||
|
||||
// Prepare codes
|
||||
$codes = array();
|
||||
$codes = [];
|
||||
$currencies = MoneyCurrency::getCurrencies();
|
||||
|
||||
foreach ($currencies as $key => $item) {
|
||||
// Don't show if already available
|
||||
if (($key != $currency->code) && in_array($key, $current)) {
|
||||
|
@ -37,8 +37,9 @@ class Currencies extends Controller
|
||||
$current = Currency::orderBy('code')->pluck('code')->toArray();
|
||||
|
||||
// Prepare codes
|
||||
$codes = array();
|
||||
$codes = [];
|
||||
$money_currencies = MoneyCurrency::getCurrencies();
|
||||
|
||||
foreach ($money_currencies as $key => $item) {
|
||||
$codes[$key] = $key;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ trait DateTime
|
||||
if (in_array($group, $use_zones)) {
|
||||
// Initialize the group if necessary.
|
||||
if (!isset($groups[$group])) {
|
||||
$groups[$group] = array();
|
||||
$groups[$group] = [];
|
||||
}
|
||||
|
||||
// Only add options where a locale exists.
|
||||
|
Loading…
x
Reference in New Issue
Block a user