@@ -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 | |
@@ -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>"; |
@@ -188,7 +188,7 @@ |
||
| 188 | 188 | \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images'); |
| 189 | 189 | |
| 190 | 190 | \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)'); |
| 191 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC','The maximum file size of the image file (in Bytes)'); |
|
| 191 | +\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)'); |
|
| 192 | 192 | |
| 193 | 193 | //Module Stats |
| 194 | 194 | \define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics'); |