From 78203f19b3bbba24cbd05bd070dd72f305d5e335 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Mon, 28 Dec 2020 11:07:25 +0800 Subject: [PATCH] * Adjust code style. --- module/datatable/model.php | 37 +++++++++++++++++---------------- module/my/view/project.html.php | 2 +- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/module/datatable/model.php b/module/datatable/model.php index 83ea48c3b1..dca133dd43 100644 --- a/module/datatable/model.php +++ b/module/datatable/model.php @@ -3,9 +3,9 @@ * The view file of datatable module of ZenTaoPMS. * * @copyright Copyright 2014-2014 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com) - * @license business(商业软件) + * @license business(商业软件) * @author Hao sun - * @package datatable + * @package datatable * @version $Id$ * @link http://www.zentao.net */ @@ -15,8 +15,8 @@ class datatableModel extends model { /** * Get field list. - * - * @param string $module + * + * @param string $module * @access public * @return array */ @@ -41,7 +41,7 @@ class datatableModel extends model $fields = $this->loadModel('workflowfield')->getList($module); foreach($fields as $field) { - if($field->buildin) continue; + if($field->buildin) continue; $this->config->$module->datatable->fieldList[$field->field]['title'] = $field->name; $this->config->$module->datatable->fieldList[$field->field]['width'] = '120'; $this->config->$module->datatable->fieldList[$field->field]['fixed'] = 'no'; @@ -119,12 +119,12 @@ class datatableModel extends model /** * Sort cols. - * - * @param int $a - * @param int $b + * + * @param int $a + * @param int $b * @static * @access public - * @return void + * @return int */ public static function sortCols($a, $b) { @@ -134,10 +134,11 @@ class datatableModel extends model /** * Print table head. - * - * @param object $col - * @param string $orderBy - * @param string $vars + * + * @param object $col + * @param string $orderBy + * @param string $vars + * @param bool $checkBox * @access public * @return void */ @@ -173,11 +174,11 @@ class datatableModel extends model } /** - * Set fixed field width - * - * @param object $setting - * @param int $minLeftWidth - * @param int $minRightWidth + * Set fixed field width + * + * @param object $setting + * @param int $minLeftWidth + * @param int $minRightWidth * @access public * @return array */ diff --git a/module/my/view/project.html.php b/module/my/view/project.html.php index 74b3a8fbf9..17b4e2d9af 100644 --- a/module/my/view/project.html.php +++ b/module/my/view/project.html.php @@ -68,7 +68,7 @@