@@ -27,6 +27,6 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public static function eventCoreIncludeCommonEnd($args) |
| 29 | 29 | { |
| 30 | - include __DIR__ . '/autoloader.php'; |
|
| 30 | + include __DIR__.'/autoloader.php'; |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -6,19 +6,19 @@ |
||
| 6 | 6 | $moduleDirNameUpper = mb_strtoupper($moduleDirName); |
| 7 | 7 | |
| 8 | 8 | return (object)[ |
| 9 | - 'name' => mb_strtoupper($moduleDirName) . ' PathConfigurator', |
|
| 9 | + 'name' => mb_strtoupper($moduleDirName).' PathConfigurator', |
|
| 10 | 10 | 'paths' => [ |
| 11 | 11 | 'dirname' => $moduleDirName, |
| 12 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
| 13 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
| 14 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
| 15 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 16 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
| 12 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
| 13 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
| 14 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
| 15 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 16 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
| 17 | 17 | ], |
| 18 | 18 | 'uploadFolders' => [ |
| 19 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 20 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
| 21 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
| 19 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 20 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category', |
|
| 21 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
| 22 | 22 | //XOOPS_UPLOAD_PATH . '/flags' |
| 23 | 23 | ], |
| 24 | 24 | ]; |
@@ -213,9 +213,9 @@ |
||
| 213 | 213 | $this->setFolderName($folderName); |
| 214 | 214 | if ($fileName) { |
| 215 | 215 | $this->setFileName($fileName); |
| 216 | - $ret = $this->getUploadPath() . DS . $this->getModuleName() . DS . $this->getFolderName() . DS . $this->getFileName(); |
|
| 216 | + $ret = $this->getUploadPath().DS.$this->getModuleName().DS.$this->getFolderName().DS.$this->getFileName(); |
|
| 217 | 217 | } else { |
| 218 | - $ret = $this->getUploadPath() . DS . $this->getModuleName() . DS . $this->getFolderName(); |
|
| 218 | + $ret = $this->getUploadPath().DS.$this->getModuleName().DS.$this->getFolderName(); |
|
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | return $ret; |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | $ret .= $this->phpcode->getPhpCodeCommentLine('Pdf Filename'); |
| 207 | 207 | $ret .= $this->phpcode->getPhpCodeCommentLine('Output'); |
| 208 | 208 | $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); |
|
| 210 | 210 | |
| 211 | 211 | return $ret; |
| 212 | 212 | } |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | if ($usedoubleqoute) { |
| 92 | 92 | $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "\"{$description}\""); |
| 93 | 93 | } else { |
| 94 | - $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'" . $description . "'"); |
|
| 94 | + $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'".$description."'"); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | return $ret; |
@@ -74,8 +74,8 @@ |
||
| 74 | 74 | */ |
| 75 | 75 | public function getClassCriteria($var, $param1, $param2 = '', $param3 = '', $isParam = false, $t = '') |
| 76 | 76 | { |
| 77 | - $params = ('' != $param2) ? ', ' . $param2 : ''; |
|
| 78 | - $params .= ('' != $param3) ? ', ' . $param3 : ''; |
|
| 77 | + $params = ('' != $param2) ? ', '.$param2 : ''; |
|
| 78 | + $params .= ('' != $param3) ? ', '.$param3 : ''; |
|
| 79 | 79 | |
| 80 | 80 | if (false === $isParam) { |
| 81 | 81 | $ret = "{$t}\${$var} = new \Criteria( {$param1}{$params} );\n"; |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | { |
| 75 | 75 | $this->setModule($module); |
| 76 | 76 | $this->extension = $extension; |
| 77 | - $this->setFileName($filename . '.' . $extension); |
|
| 77 | + $this->setFileName($filename.'.'.$extension); |
|
| 78 | 78 | if (false !== mb_strpos($folder, 'user')) { |
| 79 | 79 | $this->folder = '/'; |
| 80 | 80 | } else { |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | require $GLOBALS['xoops']->path('class/template.php'); |
| 72 | 72 | $breadcrumbTpl = new \XoopsTpl(); |
| 73 | 73 | $breadcrumbTpl->assign('breadcrumb', $this->bread); |
| 74 | - $html = $breadcrumbTpl->fetch('db:' . $this->dirname . '_common_breadcrumb.tpl'); |
|
| 74 | + $html = $breadcrumbTpl->fetch('db:'.$this->dirname.'_common_breadcrumb.tpl'); |
|
| 75 | 75 | unset($breadcrumbTpl); |
| 76 | 76 | |
| 77 | 77 | return $html; |
@@ -23,21 +23,21 @@ |
||
| 23 | 23 | $moduleDirName = basename(dirname(dirname(__DIR__))); |
| 24 | 24 | $moduleDirNameUpper = mb_strtoupper($moduleDirName); |
| 25 | 25 | |
| 26 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_FORM_TITLE', 'Send a feedback'); |
|
| 27 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_RECIPIENT', 'Recipient'); |
|
| 28 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME', 'Name'); |
|
| 29 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME_PLACEHOLER', 'Please enter your name'); |
|
| 30 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE', 'Website'); |
|
| 31 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE_PLACEHOLER', 'Please enter your website'); |
|
| 32 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL', 'Email'); |
|
| 33 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL_PLACEHOLER', 'Please enter your email'); |
|
| 34 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE', 'Type of feedback'); |
|
| 35 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_SUGGESTION', 'Suggestions'); |
|
| 36 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_BUGS', 'Bugs'); |
|
| 37 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_TESTIMONIAL', 'Testimonials'); |
|
| 38 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_FEATURES', 'Features'); |
|
| 39 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_OTHERS', 'Misc'); |
|
| 40 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_CONTENT', 'Feedback content'); |
|
| 41 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_FOR', 'Feedback for module '); |
|
| 42 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_SUCCESS', 'Feedback successfully sent'); |
|
| 43 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_ERROR', 'An errror occured when feedback was sent!'); |
|
| 26 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_FORM_TITLE', 'Send a feedback'); |
|
| 27 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_RECIPIENT', 'Recipient'); |
|
| 28 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_NAME', 'Name'); |
|
| 29 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_NAME_PLACEHOLER', 'Please enter your name'); |
|
| 30 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SITE', 'Website'); |
|
| 31 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SITE_PLACEHOLER', 'Please enter your website'); |
|
| 32 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL', 'Email'); |
|
| 33 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL_PLACEHOLER', 'Please enter your email'); |
|
| 34 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE', 'Type of feedback'); |
|
| 35 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_SUGGESTION', 'Suggestions'); |
|
| 36 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_BUGS', 'Bugs'); |
|
| 37 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_TESTIMONIAL', 'Testimonials'); |
|
| 38 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_FEATURES', 'Features'); |
|
| 39 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_OTHERS', 'Misc'); |
|
| 40 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_CONTENT', 'Feedback content'); |
|
| 41 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_FOR', 'Feedback for module '); |
|
| 42 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_SUCCESS', 'Feedback successfully sent'); |
|
| 43 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_ERROR', 'An errror occured when feedback was sent!'); |
|