@@ -25,7 +25,7 @@ |
||
| 25 | 25 | // @see http://www.php-fig.org/psr/psr-4/examples/ |
| 26 | 26 | |
| 27 | 27 | spl_autoload_register( |
| 28 | - function ($class) { |
|
| 28 | + function($class) { |
|
| 29 | 29 | // project-specific namespace prefix |
| 30 | 30 | $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__))); |
| 31 | 31 | |
@@ -77,12 +77,12 @@ |
||
| 77 | 77 | $form .= '<optgroup label="' . $key . '">'; |
| 78 | 78 | foreach ($values as $value) { |
| 79 | 79 | |
| 80 | - if ($options[0] == $value['event_id']) { |
|
| 80 | + if ($options[0] == $value['event_id']) { |
|
| 81 | 81 | $form .= '<option value="' . $options[0] . '" selected>' . $value['event_name'] . '</option>'; |
| 82 | - } |
|
| 83 | - else { |
|
| 84 | - $form .= '<option value="' . $value['event_id'] . '">' . $value['event_name'] . '</option>'; |
|
| 85 | - } |
|
| 82 | + } |
|
| 83 | + else { |
|
| 84 | + $form .= '<option value="' . $value['event_id'] . '">' . $value['event_name'] . '</option>'; |
|
| 85 | + } |
|
| 86 | 86 | } |
| 87 | 87 | $form .= "</optgroup>"; |
| 88 | 88 | } |
@@ -19,13 +19,13 @@ discard block |
||
| 19 | 19 | $helper = Helper::getInstance(); |
| 20 | 20 | $helper->loadLanguage('main'); |
| 21 | 21 | |
| 22 | - $myts = \MyTextSanitizer::getInstance(); |
|
| 22 | + $myts = \MyTextSanitizer::getInstance(); |
|
| 23 | 23 | |
| 24 | 24 | $block = []; |
| 25 | 25 | $block['event_id'] = $options[0]; |
| 26 | 26 | $selected_id = $block['event_id']; |
| 27 | 27 | |
| 28 | - $sql = "SELECT * FROM " . $GLOBALS['xoopsDB']->prefix("countdown_events") ." WHERE event_id=$selected_id"; |
|
| 28 | + $sql = "SELECT * FROM " . $GLOBALS['xoopsDB']->prefix("countdown_events") . " WHERE event_id=$selected_id"; |
|
| 29 | 29 | $result = $GLOBALS['xoopsDB']->query($sql); |
| 30 | 30 | |
| 31 | 31 | while ($row = $GLOBALS['xoopsDB']->fetchArray($result)) { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | function editCountdown($options) |
| 63 | 63 | { |
| 64 | - $form = _MB_COUNTDOWN_EVENTTODISPLAY . ' ';; |
|
| 64 | + $form = _MB_COUNTDOWN_EVENTTODISPLAY . ' '; ; |
|
| 65 | 65 | $form .= "<input type='hidden' name='options[0]' value='" . $options[0] . "'> "; |
| 66 | 66 | $form .= "<select name='options[0]'>"; |
| 67 | 67 | $form .= "<option>" . _MB_COUNTDOWN_EVENTTODISPLAY . "</option>"; |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | $chk = " checked"; |
| 96 | 96 | } |
| 97 | 97 | $form .= "<input type='radio' name='options[1]' value='1'" . $chk . ' > ' . _YES . ''; |
| 98 | - $chk = ''; |
|
| 98 | + $chk = ''; |
|
| 99 | 99 | if (0 == $options[1]) { |
| 100 | 100 | $chk = " checked"; |
| 101 | 101 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $chk = " checked"; |
| 107 | 107 | } |
| 108 | 108 | $form .= "<input type='radio' name='options[2]' value='1'" . $chk . ' > ' . _YES . ''; |
| 109 | - $chk = ''; |
|
| 109 | + $chk = ''; |
|
| 110 | 110 | if (0 == $options[2]) { |
| 111 | 111 | $chk = " checked"; |
| 112 | 112 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $chk = " checked"; |
| 118 | 118 | } |
| 119 | 119 | $form .= "<input type='radio' name='options[3]' value='1'" . $chk . ' > ' . _YES . ''; |
| 120 | - $chk = ''; |
|
| 120 | + $chk = ''; |
|
| 121 | 121 | if (0 == $options[3]) { |
| 122 | 122 | $chk = " checked"; |
| 123 | 123 | } |
@@ -79,8 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | if ($options[0] == $value['event_id']) { |
| 81 | 81 | $form .= '<option value="' . $options[0] . '" selected>' . $value['event_name'] . '</option>'; |
| 82 | - } |
|
| 83 | - else { |
|
| 82 | + } else { |
|
| 84 | 83 | $form .= '<option value="' . $value['event_id'] . '">' . $value['event_name'] . '</option>'; |
| 85 | 84 | } |
| 86 | 85 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | } |
| 27 | 27 | $sql .= ') '; |
| 28 | 28 | } |
| 29 | - $sql .= ' ORDER BY event_name ASC'; |
|
| 29 | + $sql .= ' ORDER BY event_name ASC'; |
|
| 30 | 30 | $result = $GLOBALS['xoopsDB']->query($sql, (int)$limit, (int)$offset); |
| 31 | 31 | $ret = []; |
| 32 | 32 | $i = 0; |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $phpSuccess = $utility::checkVerPhp($module); |
| 48 | 48 | |
| 49 | 49 | if (false !== $xoopsSuccess && false !== $phpSuccess) { |
| 50 | - $moduleTables =& $module->getInfo('tables'); |
|
| 50 | + $moduleTables = & $module->getInfo('tables'); |
|
| 51 | 51 | foreach ($moduleTables as $table) { |
| 52 | 52 | $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';'); |
| 53 | 53 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | $criteria->setLimit($eventsPaginationLimit); |
| 64 | 64 | $criteria->setStart($start); |
| 65 | 65 | $eventsTempRows = $eventsHandler->getCount(); |
| 66 | - $eventsTempArray = $eventsHandler->getAll($criteria);/* |
|
| 66 | + $eventsTempArray = $eventsHandler->getAll($criteria); /* |
|
| 67 | 67 | // |
| 68 | 68 | // |
| 69 | 69 | <th class='center width5'>"._AM_COUNTDOWN_FORM_ACTION."</th> |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | $criteria->setLimit($categoryPaginationLimit); |
| 59 | 59 | $criteria->setStart($start); |
| 60 | 60 | $categoryTempRows = $categoryHandler->getCount(); |
| 61 | - $categoryTempArray = $categoryHandler->getAll($criteria);/* |
|
| 61 | + $categoryTempArray = $categoryHandler->getAll($criteria); /* |
|
| 62 | 62 | // |
| 63 | 63 | // |
| 64 | 64 | <th class='center width5'>"._AM_COUNTDOWN_FORM_ACTION."</th> |
@@ -323,8 +323,8 @@ |
||
| 323 | 323 | ]; |
| 324 | 324 | |
| 325 | 325 | // -------------- Get Admin groups -------------- |
| 326 | -$criteria = new \CriteriaCompo (); |
|
| 327 | -$criteria->add(new \Criteria ('group_type', 'Admin')); |
|
| 326 | +$criteria = new \CriteriaCompo(); |
|
| 327 | +$criteria->add(new \Criteria('group_type', 'Admin')); |
|
| 328 | 328 | /** @var XoopsMemberHandler $memberHandler */ |
| 329 | 329 | $memberHandler = xoops_getHandler('member'); |
| 330 | 330 | $adminXoopsGroups = $memberHandler->getGroupList($criteria); |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | self::rrmdir($fObj->getPathname()); |
| 212 | 212 | } |
| 213 | 213 | } |
| 214 | - $iterator = null; // clear iterator Obj to close file/directory |
|
| 214 | + $iterator = null; // clear iterator Obj to close file/directory |
|
| 215 | 215 | return rmdir($src); // remove the directory & return results |
| 216 | 216 | } |
| 217 | 217 | |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | // rmdir($fObj->getPath()); // now delete the directory |
| 252 | 252 | } |
| 253 | 253 | } |
| 254 | - $iterator = null; // clear iterator Obj to close file/directory |
|
| 254 | + $iterator = null; // clear iterator Obj to close file/directory |
|
| 255 | 255 | return rmdir($src); // remove the directory & return results |
| 256 | 256 | } |
| 257 | 257 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $html .= "<ul>"; |
| 59 | 59 | |
| 60 | 60 | $gdlib = function_exists('gd_info') ? '<span style="color: green;">' . constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: red;">' . constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>'; |
| 61 | - $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib; |
|
| 61 | + $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib; |
|
| 62 | 62 | if (function_exists('gd_info')) { |
| 63 | 63 | if ($gdlib = true === gd_info()) { |
| 64 | 64 | $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBVERSION') . '<b>' . $gdlib['GD Version'] . '</b>'; |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | // $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals; |
| 73 | 73 | |
| 74 | 74 | $downloads = ini_get('file_uploads') ? '<span style="color: green;">' . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: red;">' . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>'; |
| 75 | - $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads; |
|
| 75 | + $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads; |
|
| 76 | 76 | |
| 77 | 77 | $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE') . ' <b><span style="color: blue;">' . ini_get('upload_max_filesize') . "</span></b>"; |
| 78 | 78 | $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE') . ' <b><span style="color: blue;">' . ini_get('post_max_size') . "</span></b>"; |