Remove trailing whitespace in admin module

This commit is contained in:
Kijin Sung 2023-01-17 20:59:21 +09:00
parent a9f72a5cd2
commit 1dca4adf42
21 changed files with 230 additions and 230 deletions

View file

@ -11,7 +11,7 @@ use ModuleModel;
class AdminMenu
{
public const ADMIN_MENU_NAME = '__ADMINMENU_V17__';
public const DEFAULT_MENU_STRUCTURE = [
'dashboard' => [],
'menu' => [
@ -56,16 +56,16 @@ class AdminMenu
{
return self::ADMIN_MENU_NAME;
}
public static function getAdminMenuLang()
{
static $lang = null;
if ($lang === null)
{
$lang = \Rhymix\Framework\Cache::get('admin_menu_langs:' . Context::getLangType());
}
if ($lang === null)
{
$lang = [];
@ -81,7 +81,7 @@ class AdminMenu
}
}
}
\Rhymix\Framework\Cache::set('admin_menu_langs:' . Context::getLangType(), $lang, 0, true);
}
@ -94,7 +94,7 @@ class AdminMenu
{
return;
}
$oMenuAdminModel = MenuAdminModel::getInstance();
$output = $oMenuAdminModel->getMenuByTitle(self::ADMIN_MENU_NAME);
@ -180,7 +180,7 @@ class AdminMenu
$args->hover_btn = '';
$args->active_btn = '';
$args->group_srls = $admin_group_srl;
$moduleActionInfo = array();
foreach (self::DEFAULT_MENU_STRUCTURE as $key => $items)
{
@ -188,7 +188,7 @@ class AdminMenu
{
continue;
}
foreach ($items as $item)
{
list($module_name, $menu_name) = explode('.', $item);
@ -196,7 +196,7 @@ class AdminMenu
{
$moduleActionInfo[$module_name] = ModuleModel::getModuleActionXml($module_name);
}
$args->menu_item_srl = getNextSequence();
$args->parent_srl = $gnbDBList["'" . $key . "'"];
$args->name = '{$lang->menu_gnb_sub[\'' . $menu_name . '\']}';
@ -216,7 +216,7 @@ class AdminMenu
/**
* Return parent old menu key by child menu
*
*
* @return string
*/
protected static function _getOldGnbKey($menuName)

View file

@ -11,7 +11,7 @@ class Favorite
{
/**
* Get admin favorite list
*
*
* @param bool $add_module_info
* @return BaseObject
*/
@ -44,7 +44,7 @@ class Favorite
/**
* Check if a module is already favorite
*
*
* @param string $module
* @return BaseObject
*/
@ -71,7 +71,7 @@ class Favorite
/**
* Insert a favorite.
*
*
* @param string $module
* @param string $type
* @return DBResultHelper
@ -88,7 +88,7 @@ class Favorite
/**
* Delete a favorite.
*
*
* @param int $favorite_srl
* @return DBResultHelper
*/
@ -102,7 +102,7 @@ class Favorite
/**
* Delete all favorites.
*
*
* @return DBResultHelper
*/
public static function deleteAllFavorites(): DBResultHelper
@ -114,7 +114,7 @@ class Favorite
/**
* Delete all favorites that don't point to an existing module.
*
*
* @return BaseObject
*/
public static function deleteInvalidFavorites(): BaseObject

View file

@ -8,7 +8,7 @@ class Icon
{
/**
* Get favicon URL for a domain.
*
*
* @param int $domain_srl
* @return string
*/
@ -19,7 +19,7 @@ class Icon
/**
* Get mobile icon URL for a domain.
*
*
* @param int $domain_srl
* @return string
*/
@ -30,7 +30,7 @@ class Icon
/**
* Check if an icon file exists, and if so, return its URL.
*
*
* @param int $domain_srl
* @param string $icon_name
* @return string
@ -50,7 +50,7 @@ class Icon
/**
* Get the default image for a domain.
*
*
* @param int $domain_srl
* @param int &$width
* @param int &$height
@ -74,7 +74,7 @@ class Icon
/**
* Save an icon for a domain.
*
*
* @param int $domain_srl
* @param string $icon_name
* @param array $fileinfo
@ -115,7 +115,7 @@ class Icon
/**
* Save the default image for a domain.
*
*
* @param int $domain_srl
* @param array $file_info
* @return bool