@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | $relId = Request::getInt('rel_id'); |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | } |
58 | 58 | // Display Navigation |
59 | 59 | if ($releasesCount > $limit) { |
60 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
61 | - $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
60 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
61 | + $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
62 | 62 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
63 | 63 | } |
64 | 64 | } else { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $releasesObj->setVar('rel_submitter', Request::getInt('rel_submitter', 0)); |
99 | 99 | // Insert Data |
100 | 100 | if ($releasesHandler->insert($releasesObj)) { |
101 | - \redirect_header('releases.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
101 | + \redirect_header('releases.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
102 | 102 | } |
103 | 103 | // Get Form |
104 | 104 | $GLOBALS['xoopsTpl']->assign('error', $releasesObj->getHtmlErrors()); |
@@ -140,4 +140,4 @@ discard block |
||
140 | 140 | } |
141 | 141 | break; |
142 | 142 | } |
143 | -require __DIR__ . '/footer.php'; |
|
143 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | $repoId = Request::getInt('repo_id'); |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | } |
58 | 58 | // Display Navigation |
59 | 59 | if ($repositoriesCount > $limit) { |
60 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
61 | - $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
60 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
61 | + $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
62 | 62 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
63 | 63 | } |
64 | 64 | } else { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $repositoriesObj->setVar('repo_submitter', Request::getInt('repo_submitter', 0)); |
104 | 104 | // Insert Data |
105 | 105 | if ($repositoriesHandler->insert($repositoriesObj)) { |
106 | - \redirect_header('repositories.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
106 | + \redirect_header('repositories.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
107 | 107 | } |
108 | 108 | // Get Form |
109 | 109 | $GLOBALS['xoopsTpl']->assign('error', $repositoriesObj->getHtmlErrors()); |
@@ -145,4 +145,4 @@ discard block |
||
145 | 145 | } |
146 | 146 | break; |
147 | 147 | } |
148 | -require __DIR__ . '/footer.php'; |
|
148 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | $logId = Request::getInt('log_id'); |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | } |
59 | 59 | // Display Navigation |
60 | 60 | if ($logsCount > $limit) { |
61 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
62 | - $pagenav = new \XoopsPageNav($logsCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
61 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
62 | + $pagenav = new \XoopsPageNav($logsCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
63 | 63 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
64 | 64 | } |
65 | 65 | } else { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $logsObj->setVar('log_submitter', Request::getInt('log_submitter', 0)); |
96 | 96 | // Insert Data |
97 | 97 | if ($logsHandler->insert($logsObj)) { |
98 | - \redirect_header('logs.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
98 | + \redirect_header('logs.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
99 | 99 | } |
100 | 100 | // Get Form |
101 | 101 | $GLOBALS['xoopsTpl']->assign('error', $logsObj->getHtmlErrors()); |
@@ -156,4 +156,4 @@ discard block |
||
156 | 156 | } |
157 | 157 | break; |
158 | 158 | } |
159 | -require __DIR__ . '/footer.php'; |
|
159 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | $setId = Request::getInt('set_id'); |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | } |
60 | 60 | // Display Navigation |
61 | 61 | if ($settingsCount > $limit) { |
62 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
63 | - $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
62 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
63 | + $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
64 | 64 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
65 | 65 | } |
66 | 66 | } else { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $setId = $setId > 0 ? $setId : $newSetId; |
103 | 103 | $settingsHandler->setPrimarySetting($setId); |
104 | 104 | } |
105 | - \redirect_header('settings.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
105 | + \redirect_header('settings.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
106 | 106 | } |
107 | 107 | // Get Form |
108 | 108 | $GLOBALS['xoopsTpl']->assign('error', $settingsObj->getHtmlErrors()); |
@@ -144,4 +144,4 @@ discard block |
||
144 | 144 | } |
145 | 145 | break; |
146 | 146 | } |
147 | -require __DIR__ . '/footer.php'; |
|
147 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | $rmId = Request::getInt('rm_id'); |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | } |
58 | 58 | // Display Navigation |
59 | 59 | if ($readmesCount > $limit) { |
60 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
61 | - $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
60 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
61 | + $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
62 | 62 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
63 | 63 | } |
64 | 64 | } else { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $readmesObj->setVar('rm_submitter', Request::getInt('rm_submitter', 0)); |
98 | 98 | // Insert Data |
99 | 99 | if ($readmesHandler->insert($readmesObj)) { |
100 | - \redirect_header('readmes.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
100 | + \redirect_header('readmes.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
101 | 101 | } |
102 | 102 | // Get Form |
103 | 103 | $GLOBALS['xoopsTpl']->assign('error', $readmesObj->getHtmlErrors()); |
@@ -139,4 +139,4 @@ discard block |
||
139 | 139 | } |
140 | 140 | break; |
141 | 141 | } |
142 | -require __DIR__ . '/footer.php'; |
|
142 | +require __DIR__.'/footer.php'; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | Github\GithubClient |
28 | 28 | }; |
29 | 29 | |
30 | -require __DIR__ . '/header.php'; |
|
30 | +require __DIR__.'/header.php'; |
|
31 | 31 | // It recovered the value of argument op in URL$ |
32 | 32 | $op = Request::getCmd('op', 'list'); |
33 | 33 | $dirId = Request::getInt('dir_id'); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $GLOBALS['xoopsTpl']->assign('directories_count', $directoriesCount); |
51 | 51 | $GLOBALS['xoopsTpl']->assign('wggithub_url', WGGITHUB_URL); |
52 | 52 | $GLOBALS['xoopsTpl']->assign('wggithub_upload_url', WGGITHUB_UPLOAD_URL); |
53 | - $GLOBALS['xoopsTpl']->assign('wggithub_icons_url_16', WGGITHUB_ICONS_URL . '/16'); |
|
53 | + $GLOBALS['xoopsTpl']->assign('wggithub_icons_url_16', WGGITHUB_ICONS_URL.'/16'); |
|
54 | 54 | // Table view directories |
55 | 55 | if ($directoriesCount > 0) { |
56 | 56 | foreach (\array_keys($directoriesAll) as $i) { |
@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | } |
61 | 61 | // Display Navigation |
62 | 62 | if ($directoriesCount > $limit) { |
63 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
64 | - $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
63 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
64 | + $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
65 | 65 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
66 | 66 | } |
67 | 67 | } else { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $directoriesObj->setVar('dir_submitter', Request::getInt('dir_submitter', 0)); |
100 | 100 | // Insert Data |
101 | 101 | if ($directoriesHandler->insert($directoriesObj)) { |
102 | - \redirect_header('directories.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
102 | + \redirect_header('directories.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
103 | 103 | } |
104 | 104 | // Get Form |
105 | 105 | $GLOBALS['xoopsTpl']->assign('error', $directoriesObj->getHtmlErrors()); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $dirName = $directoriesObj->getVar('dir_name'); |
146 | 146 | $githubClient = GithubClient::getInstance(); |
147 | 147 | $result = $githubClient->executeUpdate($dirName); |
148 | - $redir = 'directories.php?op=list&start=' . $start . '&limit=' . $limit; |
|
148 | + $redir = 'directories.php?op=list&start='.$start.'&limit='.$limit; |
|
149 | 149 | if ($result) { |
150 | 150 | \redirect_header($redir, 2, \_MA_WGGITHUB_READGH_SUCCESS); |
151 | 151 | } else { |
@@ -158,9 +158,9 @@ discard block |
||
158 | 158 | $directoriesObj->setVar(Request::getString('field'), Request::getInt('value', 0)); |
159 | 159 | // Insert Data |
160 | 160 | if ($directoriesHandler->insert($directoriesObj, true)) { |
161 | - \redirect_header('directories.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
161 | + \redirect_header('directories.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
162 | 162 | } |
163 | 163 | } |
164 | 164 | break; |
165 | 165 | } |
166 | -require __DIR__ . '/footer.php'; |
|
166 | +require __DIR__.'/footer.php'; |
@@ -28,15 +28,15 @@ discard block |
||
28 | 28 | Github\GithubClient |
29 | 29 | }; |
30 | 30 | |
31 | -require __DIR__ . '/header.php'; |
|
31 | +require __DIR__.'/header.php'; |
|
32 | 32 | $GLOBALS['xoopsOption']['template_main'] = 'wggithub_index.tpl'; |
33 | -include_once \XOOPS_ROOT_PATH . '/header.php'; |
|
33 | +include_once \XOOPS_ROOT_PATH.'/header.php'; |
|
34 | 34 | |
35 | 35 | // Permissions |
36 | 36 | $permGlobalView = $permissionsHandler->getPermGlobalView(); |
37 | 37 | if (!$permGlobalView) { |
38 | 38 | $GLOBALS['xoopsTpl']->assign('error', _NOPERM); |
39 | - require __DIR__ . '/footer.php'; |
|
39 | + require __DIR__.'/footer.php'; |
|
40 | 40 | } |
41 | 41 | $permGlobalRead = $permissionsHandler->getPermGlobalRead(); |
42 | 42 | $permReadmeUpdate = $permissionsHandler->getPermReadmeUpdate(); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | // Define Stylesheet |
52 | 52 | $GLOBALS['xoTheme']->addStylesheet($style, null); |
53 | -$GLOBALS['xoTheme']->addStylesheet(WGGITHUB_URL . '/assets/css/tabs.css', null); |
|
53 | +$GLOBALS['xoTheme']->addStylesheet(WGGITHUB_URL.'/assets/css/tabs.css', null); |
|
54 | 54 | $keywords = []; |
55 | 55 | // |
56 | 56 | $GLOBALS['xoopsTpl']->assign('xoops_icons32_url', XOOPS_ICONS32_URL); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | foreach (\array_keys($directoriesAll) as $i) { |
128 | 128 | $directories[$i] = $directoriesAll[$i]->getValuesDirectories(); |
129 | 129 | $dirName = $directoriesAll[$i]->getVar('dir_name'); |
130 | - $dirFilterRelease = (bool)$directoriesAll[$i]->getVar('dir_filterrelease'); |
|
130 | + $dirFilterRelease = (bool) $directoriesAll[$i]->getVar('dir_filterrelease'); |
|
131 | 131 | $repos = []; |
132 | 132 | $crRepositories = new \CriteriaCompo(); |
133 | 133 | //first block/parentheses |
@@ -202,9 +202,9 @@ discard block |
||
202 | 202 | } |
203 | 203 | $directories[$i]['repos'] = $repos; |
204 | 204 | $directories[$i]['previousRepos'] = $start > 0; |
205 | - $directories[$i]['previousOp'] = '&start=' . ($start - $limit) . '&limit=' . $limit . '&release=' . $filterRelease . '&sortby=' . $filterSortby; |
|
205 | + $directories[$i]['previousOp'] = '&start='.($start - $limit).'&limit='.$limit.'&release='.$filterRelease.'&sortby='.$filterSortby; |
|
206 | 206 | $directories[$i]['nextRepos'] = ($repositoriesCount - $start) > $limit; |
207 | - $directories[$i]['nextOp'] = '&start=' . ($start + $limit) . '&limit=' . $limit . '&release=' . $filterRelease . '&sortby=' . $filterSortby; |
|
207 | + $directories[$i]['nextOp'] = '&start='.($start + $limit).'&limit='.$limit.'&release='.$filterRelease.'&sortby='.$filterSortby; |
|
208 | 208 | $GLOBALS['xoopsTpl']->assign('start', $start); |
209 | 209 | $GLOBALS['xoopsTpl']->assign('limit', $limit); |
210 | 210 | $GLOBALS['xoopsTpl']->assign('menu', $menu); |
@@ -214,8 +214,8 @@ discard block |
||
214 | 214 | unset($crDirectories, $directories); |
215 | 215 | // Display Navigation |
216 | 216 | if ($directoriesCount > $limit) { |
217 | - require_once \XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
218 | - $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
217 | + require_once \XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
218 | + $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
219 | 219 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
220 | 220 | } |
221 | 221 | $GLOBALS['xoopsTpl']->assign('lang_thereare', \sprintf(\_MA_WGGITHUB_INDEX_THEREARE, $directoriesCount)); |
@@ -228,12 +228,12 @@ discard block |
||
228 | 228 | // Permissions |
229 | 229 | if (!$permGlobalRead) { |
230 | 230 | $GLOBALS['xoopsTpl']->assign('error', \_NOPERM); |
231 | - require __DIR__ . '/footer.php'; |
|
231 | + require __DIR__.'/footer.php'; |
|
232 | 232 | } |
233 | 233 | $dirName = Request::getString('dir_name', ''); |
234 | 234 | $githubClient = GithubClient::getInstance(); |
235 | 235 | $result = $githubClient->executeUpdate($dirName); |
236 | - $redir = 'index.php?op=list_afterupdate&start=' . $start . '&limit=' . $limit . '&release=' . $filterRelease . '&sortby=' . $filterSortby; |
|
236 | + $redir = 'index.php?op=list_afterupdate&start='.$start.'&limit='.$limit.'&release='.$filterRelease.'&sortby='.$filterSortby; |
|
237 | 237 | if ($result) { |
238 | 238 | \redirect_header($redir, 2, \_MA_WGGITHUB_READGH_SUCCESS); |
239 | 239 | } else { |
@@ -245,13 +245,13 @@ discard block |
||
245 | 245 | // Permissions |
246 | 246 | if (!$permReadmeUpdate) { |
247 | 247 | $GLOBALS['xoopsTpl']->assign('error', \_NOPERM); |
248 | - require __DIR__ . '/footer.php'; |
|
248 | + require __DIR__.'/footer.php'; |
|
249 | 249 | } |
250 | 250 | $repoId = Request::getInt('repo_id', 0); |
251 | 251 | $repoUser = Request::getString('repo_user', 'none'); |
252 | 252 | $repoName = Request::getString('repo_name', 'none'); |
253 | 253 | $result = $helper->getHandler('Readmes')->updateReadmes($repoId, $repoUser, $repoName); |
254 | - $redir = 'index.php?op=list_afterupdate&start=' . $start . '&limit=' . $limit . '&release=' . $filterRelease . '&sortby=' . $filterSortby; |
|
254 | + $redir = 'index.php?op=list_afterupdate&start='.$start.'&limit='.$limit.'&release='.$filterRelease.'&sortby='.$filterSortby; |
|
255 | 255 | if ($result) { |
256 | 256 | \redirect_header($redir, 2, \_MA_WGGITHUB_READGH_SUCCESS); |
257 | 257 | } else { |
@@ -264,11 +264,11 @@ discard block |
||
264 | 264 | // Breadcrumbs |
265 | 265 | $xoBreadcrumbs[] = ['title' => \_MA_WGGITHUB_INDEX]; |
266 | 266 | // Keywords |
267 | -wggithubMetaKeywords($helper->getConfig('keywords') . ', ' . \implode(',', $keywords)); |
|
267 | +wggithubMetaKeywords($helper->getConfig('keywords').', '.\implode(',', $keywords)); |
|
268 | 268 | unset($keywords); |
269 | 269 | // Description |
270 | 270 | wggithubMetaDescription(\_MA_WGGITHUB_INDEX_DESC); |
271 | 271 | $GLOBALS['xoopsTpl']->assign('xoops_mpageurl', WGGITHUB_URL.'/index.php'); |
272 | 272 | $GLOBALS['xoopsTpl']->assign('xoops_icons32_url', XOOPS_ICONS32_URL); |
273 | 273 | $GLOBALS['xoopsTpl']->assign('wggithub_upload_url', WGGITHUB_UPLOAD_URL); |
274 | -require __DIR__ . '/footer.php'; |
|
274 | +require __DIR__.'/footer.php'; |