fixed typo

This commit is contained in:
Cüneyt Şentürk 2021-01-15 12:09:23 +03:00
parent e9bf2b2b77
commit 97e66ca049
6 changed files with 11 additions and 7 deletions

View File

@ -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'];

View File

@ -28,7 +28,7 @@ class Updates extends Controller
$core = null;
$modules = array();
$modules = [];
if (isset($updates['core'])) {
$core = $updates['core'];

View File

@ -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)) {

View File

@ -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)) {

View File

@ -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;
}

View File

@ -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.