diff --git a/module/dev/ui/api.html.php b/module/dev/ui/api.html.php index b45c1164ff..48561bf241 100644 --- a/module/dev/ui/api.html.php +++ b/module/dev/ui/api.html.php @@ -17,7 +17,7 @@ foreach($lang->dev->featureBar['api'] as $key => $label) ( 'text' => $label, 'active' => ($selectedModule == $key || ($key == 'index' and $selectedModule != 'restapi')), - 'url' => inlink('api', "module=$key"), + 'url' => inlink('api', "module=$key") ); } @@ -43,7 +43,7 @@ $fnBuildAPIContent = function() use($selectedModule, $apis) ( h::td($param['var']), h::td($param['type']), - h::td($param['desc']), + h::td($param['desc']) ); } } @@ -68,7 +68,7 @@ $fnBuildAPIContent = function() use($selectedModule, $apis) ( h::td($paramName), h::td($paramType), - h::td(html($paramDesc)), + h::td(html($paramDesc)) ); } } @@ -81,7 +81,7 @@ $fnBuildAPIContent = function() use($selectedModule, $apis) ( setClass('detail-title font-bold'), !empty($api['post']) ? 'GET/POST' : 'GET', - ' ' . helper::createLink($selectedModule, $methodName, $params, 'json'), + ' ' . helper::createLink($selectedModule, $methodName, $params, 'json') ), div ( @@ -96,7 +96,7 @@ $fnBuildAPIContent = function() use($selectedModule, $apis) h::th($lang->dev->type), h::th($lang->dev->desc), ), - isset($api['param']) ? $paramTR : h::tr(h::td(set::colspan(3), $lang->dev->noParam)), + isset($api['param']) ? $paramTR : h::tr(h::td(set::colspan(3), $lang->dev->noParam)) ), isset($config->dev->postParams[$selectedModule][$methodName]) ? h::table ( @@ -106,11 +106,11 @@ $fnBuildAPIContent = function() use($selectedModule, $apis) ( h::th($lang->dev->params), h::th($lang->dev->type), - h::th($lang->dev->desc), + h::th($lang->dev->desc) ), - $postTR, - ) : null, - ), + $postTR + ) : null + ) ); } @@ -131,7 +131,7 @@ h::css(" featureBar ( set::items($featureBarItems), - icon(set('title', $lang->dev->apiTips), 'help'), + icon(set('title', $lang->dev->apiTips), 'help') ); sidebar @@ -148,5 +148,5 @@ sidebar div ( setClass('bg-white p-3'), - $selectedModule ? div(setClass("module-content"), $fnBuildAPIContent()) : null, + $selectedModule ? div(setClass("module-content"), $fnBuildAPIContent()) : null ); diff --git a/module/dev/ui/db.html.php b/module/dev/ui/db.html.php index 55b785864a..681882b4f4 100644 --- a/module/dev/ui/db.html.php +++ b/module/dev/ui/db.html.php @@ -25,7 +25,7 @@ $fnBuildContent = function() use ($fields, $selectedTable) h::td($field['name']), h::td($field['type']), h::td(isset($field['options']['max']) ? $field['options']['max'] : ''), - h::td($field['null']), + h::td($field['null']) ); $i++; } @@ -46,11 +46,11 @@ $fnBuildContent = function() use ($fields, $selectedTable) h::th($lang->dev->fields['desc']), h::th($lang->dev->fields['type']), h::th($lang->dev->fields['length']), - h::th($lang->dev->fields['null']), + h::th($lang->dev->fields['null']) ) ), - h::tbody($trItems), - ), + h::tbody($trItems) + ) ); }; @@ -79,5 +79,5 @@ sidebar div ( setClass('bg-white'), - $selectedTable ? $fnBuildContent() : null, + $selectedTable ? $fnBuildContent() : null ); diff --git a/module/dev/ui/editor.html.php b/module/dev/ui/editor.html.php index aefdcdadf1..386f4641fe 100644 --- a/module/dev/ui/editor.html.php +++ b/module/dev/ui/editor.html.php @@ -14,5 +14,5 @@ div ( setClass('bg-white text-center p-10'), $lang->dev->noteEditor, - common::hasPriv('editor', 'turnon') ? btn(set::url($this->createLink('editor', 'turnon', 'status=1')), setClass('btn primary ajax-submit'), $lang->dev->switchList[1]) : null, + common::hasPriv('editor', 'turnon') ? btn(set::url($this->createLink('editor', 'turnon', 'status=1')), setClass('btn primary ajax-submit'), $lang->dev->switchList[1]) : null ); diff --git a/module/dev/ui/langitem.html.php b/module/dev/ui/langitem.html.php index 1804f9e5e0..2c6495126e 100644 --- a/module/dev/ui/langitem.html.php +++ b/module/dev/ui/langitem.html.php @@ -47,7 +47,7 @@ $fnShowCompareItems = function() use ($isCurrentLang, $originalLangs, $moduleNam setClass('input-group-addon flex-center'), set::title($config->custom->commonLang[$subLang]), $config->custom->commonLang[$subLang], - input(set::type('hidden'), set::name("{$itemKey}[]"), set::value($subLang)), + input(set::type('hidden'), set::name("{$itemKey}[]"), set::value($subLang)) ); } else @@ -82,7 +82,7 @@ $fnShowCompareItems = function() use ($isCurrentLang, $originalLangs, $moduleNam ( setClass('input-group'), icon(setClass('text-primary'), 'angle-right'), - (($originalLangChanged and is_array($customedLang)) or (!$originalLangChanged and is_array($defaultValue))) ? $fnBuildSubItems($originalLangChanged ? $customedLang : $defaultValue, $originalLangChanged, $itemKey) : input(set::name($itemKey), setClass('shadow-primary-hover'), set::placeholder($originalLang), set::value($customedLang)), + (($originalLangChanged and is_array($customedLang)) or (!$originalLangChanged and is_array($defaultValue))) ? $fnBuildSubItems($originalLangChanged ? $customedLang : $defaultValue, $originalLangChanged, $itemKey) : input(set::name($itemKey), setClass('shadow-primary-hover'), set::placeholder($originalLang), set::value($customedLang)) ) ); } @@ -131,8 +131,8 @@ if(in_array($type, $config->dev->navTypes)) setClass("search-box search-example"), input(setClass('search-input'), set::type('search')), to::suffix(icon('search')), - set::suffixWidth('18'), - ), + set::suffixWidth('18') + ) ), treeEditor(set(array('items' => $menuTree, 'canEdit' => false, 'canDelete' => false, 'canSplit' => false))) ); @@ -147,7 +147,7 @@ form array ( 'submit', - array('url' => inlink('resetLang', "type={$type}&module={$moduleName}&method={$method}&language={$language}"), 'text' => $lang->restore, 'class' => 'btn reset-btn ajax-submit', 'data-confirm' => $lang->dev->confirmRestore), + array('url' => inlink('resetLang', "type={$type}&module={$moduleName}&method={$method}&language={$language}"), 'text' => $lang->restore, 'class' => 'btn reset-btn ajax-submit', 'data-confirm' => $lang->dev->confirmRestore) ) ), div @@ -155,11 +155,11 @@ form setClass('title-content flex'), $isCurrentLang ? null : div(setClass('title'), $lang->dev->currentLang), div(setClass('title'), $lang->dev->defaultValue), - div(setClass('title title-input'), $lang->dev->modifyValue), + div(setClass('title title-input'), $lang->dev->modifyValue) ), div ( setClass("form-item-content form-active-primary"), - $fnShowCompareItems(), - ), + $fnShowCompareItems() + ) ); diff --git a/module/dev/ui/restapi.html.php b/module/dev/ui/restapi.html.php index e76e351356..246ef21c63 100644 --- a/module/dev/ui/restapi.html.php +++ b/module/dev/ui/restapi.html.php @@ -17,7 +17,7 @@ foreach($lang->dev->featureBar['api'] as $key => $label) ( 'text' => $label, 'active' => ($selectedModule == $key || ($key == 'index' and $selectedModule != 'restapi')), - 'url' => inlink('api', "module=$key"), + 'url' => inlink('api', "module=$key") ); } @@ -58,7 +58,7 @@ $fnGetHeaderContent = function($api) h::td($param['field']), h::td('String'), h::td($lang->api->boolList[$param['required']]), - h::td(html($param['desc'])), + h::td(html($param['desc'])) ); } @@ -74,10 +74,10 @@ $fnGetHeaderContent = function($api) h::th($lang->api->req->name), h::th($lang->api->req->type), h::th($lang->api->req->required), - h::th($lang->api->req->desc), + h::th($lang->api->req->desc) ) ), - h::tbody($headerTr), + h::tbody($headerTr) ); return $content; }; @@ -95,7 +95,7 @@ $fnGetQueryContent = function($api) h::td($param['field']), h::td('String'), h::td($lang->api->boolList[$param['required']]), - h::td(html($param['desc'])), + h::td(html($param['desc'])) ); } @@ -111,10 +111,10 @@ $fnGetQueryContent = function($api) h::th($lang->api->req->name), h::th($lang->api->req->type), h::th($lang->api->req->required), - h::th($lang->api->req->desc), + h::th($lang->api->req->desc) ) ), - h::tbody($queryTr), + h::tbody($queryTr) ); return $content; }; @@ -139,10 +139,10 @@ $fnGetParamsContent = function($api) use(&$parseTree, $typeList) h::th($lang->api->req->name), h::th($lang->api->req->type), h::th($lang->api->req->required), - h::th($lang->api->req->desc), + h::th($lang->api->req->desc) ) ), - h::tbody($paramsTr), + h::tbody($paramsTr) ); if(!empty($api->paramsExample)) { @@ -172,10 +172,10 @@ $fnGetResponseContent = function($api) use($parseTree, $typeList) h::th($lang->api->req->name), h::th($lang->api->req->type), h::th($lang->api->req->required), - h::th($lang->api->req->desc), + h::th($lang->api->req->desc) ) ), - h::tbody($responseTr), + h::tbody($responseTr) ); if(!empty($api->responseExample)) { @@ -192,7 +192,7 @@ $fnBuildAPIContent = function() use($api, $fnGetHeaderContent, $fnGetQueryConten ( setClass('panel-heading'), div(setClass('http-method label'), $api->method), - div(setClass('path'), set::title($api->path), $api->path), + div(setClass('path'), set::title($api->path), $api->path) ); $content[] = div ( @@ -204,7 +204,7 @@ $fnBuildAPIContent = function() use($api, $fnGetHeaderContent, $fnGetQueryConten $fnGetHeaderContent($api), $fnGetQueryContent($api), $fnGetParamsContent($api), - $fnGetResponseContent($api), + $fnGetResponseContent($api) ) ); return $content; @@ -224,7 +224,7 @@ h::css(" featureBar ( set::items($featureBarItems), - icon(set('title', $lang->dev->apiTips), 'help'), + icon(set('title', $lang->dev->apiTips), 'help') ); sidebar @@ -234,7 +234,7 @@ sidebar h::header ( setClass('h-10 flex items-center pl-4 flex-none gap-3'), - span(setClass('text-lg font-semibold'), icon('list'), $lang->dev->moduleList), + span(setClass('text-lg font-semibold'), icon('list'), $lang->dev->moduleList) ), treeEditor(set(array('className' => 'pl-3', 'items' => $moduleTree, 'canEdit' => false, 'canDelete' => false, 'canSplit' => false))) ); @@ -242,5 +242,5 @@ sidebar div ( setClass('bg-white p-3 panel'), - $selectedModule ? $fnBuildAPIContent() : null, + $selectedModule ? $fnBuildAPIContent() : null );