Skip to content

Commit 0c230a1

Browse files
authored
Merge pull request #142 from mambax7/master
cosmetics
2 parents 47db2a4 + 429fbaa commit 0c230a1

15 files changed

Lines changed: 19 additions & 18 deletions

File tree

assets/fonts/green.png

-397 Bytes
Loading

assets/fonts/red.png

-402 Bytes
Loading

assets/icons/16/drag.png

-2.52 KB
Loading
-14 Bytes
Loading

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
}

0 commit comments

Comments
 (0)