From a184ef1ce3e298be9be78780a539ec8fee57d477 Mon Sep 17 00:00:00 2001 From: xiawenlong Date: Tue, 19 Oct 2021 18:15:24 +0800 Subject: [PATCH] fix code style. --- module/action/view/trash.html.php | 4 +- module/api/control.php | 7 ++-- module/api/model.php | 70 +++++++++++++++---------------- 3 files changed, 41 insertions(+), 40 deletions(-) diff --git a/module/action/view/trash.html.php b/module/action/view/trash.html.php index e7825bb503..a57f5be81f 100755 --- a/module/action/view/trash.html.php +++ b/module/action/view/trash.html.php @@ -57,9 +57,9 @@ $methodName = 'view'; $module = 'caselib'; } - if ($action->objectType == 'api') + if($action->objectType == 'api') { - $params = "libID=0&moduelID=0&apiID={$action->objectID}"; + $params = "libID=0&moduelID=0&apiID={$action->objectID}"; $methodName = 'index'; } if(isset($config->action->customFlows[$action->objectType])) diff --git a/module/api/control.php b/module/api/control.php index 2b2aabe4df..67536ba83d 100755 --- a/module/api/control.php +++ b/module/api/control.php @@ -1,4 +1,5 @@ name; $output = << $lib) { $selected = $key == $libID ? 'selected' : ''; - $output .= html::a(inlink('index', "libID=$key"), $lib->name, '', "class='$selected' data-app='{$this->app->tab}'"); + $output .= html::a(inlink('index', "libID=$key"), $lib->name, '', "class='$selected' data-app='{$this->app->tab}'"); } $output .= ""; @@ -712,7 +713,7 @@ EOT; if(!empty($versions)) { $versionName = $version > 0 ? $versions[$version]->version : $this->lang->api->defaultVersion; - $output .= <<