@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | self::rrmdir($fObj->getPathname()); |
| 147 | 147 | } |
| 148 | 148 | } |
| 149 | - $iterator = null; // clear iterator Obj to close file/directory |
|
| 149 | + $iterator = null; // clear iterator Obj to close file/directory |
|
| 150 | 150 | return \rmdir($src); // remove the directory & return results |
| 151 | 151 | } |
| 152 | 152 | |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | // rmdir($fObj->getPath()); // now delete the directory |
| 187 | 187 | } |
| 188 | 188 | } |
| 189 | - $iterator = null; // clear iterator Obj to close file/directory |
|
| 189 | + $iterator = null; // clear iterator Obj to close file/directory |
|
| 190 | 190 | return \rmdir($src); // remove the directory & return results |
| 191 | 191 | } |
| 192 | 192 | |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | $thisContentTitle = '<a href="' . $helper->url('index.php?cat_id=' . $thisCatId . '#q' . $object->getVar('contents_id')) . '" title="' . \_AM_XOOPSFAQ_CONTENTS_VIEW . '">' . $object->getVar('contents_title') . '</a>';
|
| 200 | 200 | ++$tdClass; |
| 201 | 201 | $dispClass = ($tdClass % 1) ? 'even' : 'odd'; |
| 202 | - $ret .= ' <tr class="center middle">' |
|
| 202 | + $ret .= ' <tr class="center middle">' |
|
| 203 | 203 | . ' <td class="' |
| 204 | 204 | . $dispClass |
| 205 | 205 | . '">' |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | . ' <td class="' |
| 234 | 234 | . $dispClass |
| 235 | 235 | . '">'; |
| 236 | - $ret .= Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) . '</td>' . ' </tr>';
|
|
| 236 | + $ret .= Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) . '</td>' . ' </tr>';
|
|
| 237 | 237 | } |
| 238 | 238 | } else {
|
| 239 | 239 | $ret .= ' <tr class="center"><td colspan="7" class="even">' . \_AM_XOOPSFAQ_NOLISTING . '</td></tr>'; |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
|
| 183 | 183 | |
| 184 | 184 | \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)');
|
| 185 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC','The maximum file size of the image file (in Bytes)');
|
|
| 185 | +\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)');
|
|
| 186 | 186 | |
| 187 | 187 | //Module Stats |
| 188 | 188 | \define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics');
|
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } |
| 66 | 66 | $title = \constant(\htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName), \ENT_QUOTES | \ENT_HTML5));
|
| 67 | 67 | $img = '<img src="' . Admin::iconUrl($iconName . '.' . $iconExt, '16') . '"' . ' title ="' . $title . '"' . ' alt = "' . $title . '"' . ' class="bnone middle">'; |
| 68 | - $ret .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>'; |
|
| 68 | + $ret .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>'; |
|
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | $options_tray = new \XoopsFormElementTray(\_AM_XOOPSFAQ_E_CONTENTS_CONTENT, '<br>'); |
| 147 | 147 | if (\class_exists('XoopsFormEditor')) {
|
| 148 | 148 | // $editorConfigs = array('editor' => $GLOBALS['xoopsConfig']['general_editor'],
|
| 149 | - $editorConfigs = [ |
|
| 149 | + $editorConfigs = [ |
|
| 150 | 150 | 'editor' => $helper->getConfig('use_wysiwyg', 'dhtmltextarea'),
|
| 151 | 151 | 'rows' => 25, |
| 152 | 152 | 'cols' => '100%', |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | 'text' => $value['answer'], |
| 27 | 27 | ], |
| 28 | 28 | ]; |
| 29 | - $jsonld[] = $schema; |
|
| 29 | + $jsonld[] = $schema; |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | $out .= '<script type="application/ld+json">' . json_encode($jsonld, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES) . '</script>'; |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $html .= "<ul>\n"; |
| 44 | 44 | |
| 45 | 45 | if (\function_exists('gd_info')) {
|
| 46 | - $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_' . 'GDLIBSTATUS') . '<span style="color: #008000;">' . \constant('CO_' . $moduleDirNameUpper . '_' . 'GDON') . '</span>';
|
|
| 46 | + $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_' . 'GDLIBSTATUS') . '<span style="color: #008000;">' . \constant('CO_' . $moduleDirNameUpper . '_' . 'GDON') . '</span>';
|
|
| 47 | 47 | $gdlib = \gd_info(); |
| 48 | 48 | if (!empty(($gdlib))) {
|
| 49 | 49 | $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_' . 'GDLIBVERSION') . '<b>' . $gdlib['GD Version'] . '</b>';
|
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | // $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals;
|
| 59 | 59 | |
| 60 | 60 | $downloads = \ini_get('file_uploads') ? '<span style="color: #008000;">' . \constant('CO_' . $moduleDirNameUpper . '_' . 'ON') . '</span>' : '<span style="color: #ff0000;">' . \constant('CO_' . $moduleDirNameUpper . '_' . 'OFF') . '</span>';
|
| 61 | - $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_' . 'SERVERUPLOADSTATUS') . $downloads;
|
|
| 61 | + $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_' . 'SERVERUPLOADSTATUS') . $downloads;
|
|
| 62 | 62 | |
| 63 | 63 | $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_' . 'MAXUPLOADSIZE') . ' <b><span style="color: #0000ff;">' . \ini_get('upload_max_filesize') . "</span></b>\n";
|
| 64 | 64 | $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_' . 'MAXPOSTSIZE') . ' <b><span style="color: #0000ff;">' . \ini_get('post_max_size') . "</span></b>\n";
|
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * @see https://www.php-fig.org/psr/psr-4/examples/ |
| 5 | 5 | */ |
| 6 | 6 | spl_autoload_register( |
| 7 | - static function ($class): void {
|
|
| 7 | + static function($class): void {
|
|
| 8 | 8 | // project-specific namespace prefix |
| 9 | 9 | $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__))); |
| 10 | 10 | |
@@ -132,11 +132,11 @@ discard block |
||
| 132 | 132 | foreach ($objects['list'] as $object) {
|
| 133 | 133 | // only list categories and/or FAQs if user has rights |
| 134 | 134 | if (false !== $permHelper->checkPermission('viewcat', $object->getVar('category_id'))) {
|
| 135 | - $category = [ |
|
| 135 | + $category = [ |
|
| 136 | 136 | 'id' => $object->getVar('category_id'),
|
| 137 | 137 | 'name' => $object->getVar('category_title'),
|
| 138 | 138 | ]; |
| 139 | - $bodyWords .= ' ' . $object->getVar('category_title');
|
|
| 139 | + $bodyWords .= ' ' . $object->getVar('category_title');
|
|
| 140 | 140 | $contentsObj = $contentsHandler->getPublished((string)$object->getVar('category_id'));
|
| 141 | 141 | if ($contentsObj['count']) {
|
| 142 | 142 | $category['questions'] = []; |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | 'link' => $content->getVar('contents_id'),
|
| 147 | 147 | 'title' => $content->getVar('contents_title'),
|
| 148 | 148 | ]; |
| 149 | - $bodyWords .= ' ' . $content->getVar('contents_title');
|
|
| 149 | + $bodyWords .= ' ' . $content->getVar('contents_title');
|
|
| 150 | 150 | } |
| 151 | 151 | } |
| 152 | 152 | $GLOBALS['xoopsTpl']->appendByRef('categories', $category);
|