Skip to content

Commit 554dd8d

Browse files
committed
cosmetics
1 parent 47db2a4 commit 554dd8d

11 files changed

Lines changed: 19 additions & 18 deletions

File tree

class/files/TDMCreateXoopsCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function getXcLoad($var = '', $t = '')
126126
*/
127127
public function getXcLoadLanguage($lang, $t = '', $domain = '')
128128
{
129-
if ($domain === '') {
129+
if ('' === $domain) {
130130
return "{$t}xoops_loadLanguage('{$lang}');\n";
131131
} else {
132132
return "{$t}xoops_loadLanguage('{$lang}', '{$domain}');\n";

class/files/language/LanguageMain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private function geLanguagetMain($module, $language)
113113
$ret .= $this->defines->getDefine($language, 'SUBMIT', 'Submit');
114114
$ret .= $this->defines->getDefine($language, "SUBMIT_{$stuTableSoleName}", "Submit {$ucfTableSoleName}");
115115
$ret .= $this->defines->getDefine($language, 'SUBMIT_ALLPENDING', "All {$tableSoleName}/script information are posted pending verification.");
116-
$ret .= $this->defines->getDefine($language, 'SUBMIT_DONTABUSE', "Username and IP are recorded, so please do not abuse the system.");
116+
$ret .= $this->defines->getDefine($language, 'SUBMIT_DONTABUSE', 'Username and IP are recorded, so please do not abuse the system.');
117117
$ret .= $this->defines->getDefine($language, 'SUBMIT_ISAPPROVED', "Your {$tableSoleName} has been approved");
118118
$ret .= $this->defines->getDefine($language, 'SUBMIT_PROPOSER', "Submit a {$tableSoleName}");
119119
$ret .= $this->defines->getDefine($language, 'SUBMIT_RECEIVED', "We have received your {$tableSoleName} info. Thank you !");

class/files/user/UserPdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private function getUserPdfFooter($moduleDirname, $tableName)
206206
$ret .= $this->phpcode->getPhpCodeCommentLine('Pdf Filename');
207207
$ret .= $this->phpcode->getPhpCodeCommentLine('Output');
208208
$ret .= $this->xc->getXcTplAssign('pdfoutput', "\$pdf->Output('{$tableName}.pdf', 'I')");
209-
$ret .= $this->xc->getXcTplDisplay($moduleDirname . "_pdf.tpl", '', false);
209+
$ret .= $this->xc->getXcTplDisplay($moduleDirname . '_pdf.tpl', '', false);
210210

211211
return $ret;
212212
}

class/files/user/UserXoopsVersion.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ private function getXoopsVersionTypeBlocks($moduleDirname, $tableName, $stuTable
418418
}
419419

420420
/**
421-
* @private function getXoopsVersionConfig
421+
* @private function getXoopsVersionConfig
422422
* @param $module
423-
* @param $table
423+
* @param $tables
424424
* @param $language
425425
*
426426
* @return string

class/form/TDMCreateFormTab.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct($caption, $name)
4848
public function render()
4949
{
5050
$ret = '';
51-
/* @var $ele Element */
51+
/* @var $ele XoopsFormElement */
5252
foreach ($this->getElements() as $ele) {
5353
$ret .= NWLINE;
5454
$ret .= '<tr>'.NWLINE;

class/form/TDMCreateFormTabTray.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class TDMCreateFormTabTray extends XoopsFormElementTray
3434
* @var string
3535
*/
3636
private $uiTheme = '';
37+
private $delimiter;
3738

3839
/**
3940
* __construct.
@@ -77,7 +78,7 @@ public function render()
7778
$extras = [];
7879

7980
foreach ($this->getElements() as $ele) {
80-
/* @var $ele Element */
81+
/* @var $ele XoopsFormElement */
8182
if (!$ele->isHidden()) {
8283
if (!$ele instanceof TDMCreateFormRaw) {
8384
if ($ele instanceof TDMCreateFormTab) {
@@ -97,7 +98,7 @@ public function render()
9798
}
9899
}
99100
if (!empty($extras)) {
100-
$tray = new ElementTray('', $this->getDelimiter());
101+
$tray = new XoopsFormElementTray('', $this->delimiter);
101102
foreach ($extras as $extra) {
102103
$tray->addElement($extra);
103104
}

class/modules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ private function getOptionsModules()
435435
$retModules = [];
436436
foreach ($this->options as $option) {
437437
if (1 == $this->getVar('mod_' . $option)) {
438-
array_push($retModules, $option);
438+
$retModules[] = $option;
439439
}
440440
}
441441

class/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private function getOptionsSettings()
260260
$retSet = [];
261261
foreach ($this->options as $option) {
262262
if (1 == $this->getVar('set_' . $option)) {
263-
array_push($retSet, $option);
263+
$retSet[] = $option;
264264
}
265265
}
266266

class/tables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function getOptionsTables()
273273
$retTable = [];
274274
foreach ($this->options as $option) {
275275
if (1 == $this->getVar('table_' . $option)) {
276-
array_push($retTable, $option);
276+
$retTable[] = $option;
277277
}
278278
}
279279

language/english/modinfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
define('_MI_TDMCREATE_CONFIG_SUBVERSION', 'Subversion');
7878
define('_MI_TDMCREATE_CONFIG_DESCRIPTION', 'Module Description');
7979
define('_MI_TDMCREATE_CONFIG_MIMETYPES', 'Mimetypes of images');
80-
define('_MI_TDMCREATE_CONFIG_MIMETYPES_DESC', 'Set mimetypes of images and files separated by <b>|</>');
80+
define('_MI_TDMCREATE_CONFIG_MIMETYPES_DESC', 'Set mimetypes of images and files separated by <b>|</b>');
8181
define('_MI_TDMCREATE_CONFIG_MAXSIZE', 'Maximum size of images');
8282
define('_MI_TDMCREATE_CONFIG_MAXSIZE_DESC', 'Set maximum size of images in Bytes');
8383
//1.39

0 commit comments

Comments
 (0)