@@ -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); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | } |
116 | 116 | unset($crLogs); |
117 | 117 | |
118 | - $menu = Request::getInt('menu', 0); |
|
118 | + $menu = Request::getInt('menu', 0); |
|
119 | 119 | |
120 | 120 | $crDirectories = new \CriteriaCompo(); |
121 | 121 | $crDirectories->add(new \Criteria('dir_online', 1)); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | foreach (\array_keys($directoriesAll) as $i) { |
131 | 131 | $directories[$i] = $directoriesAll[$i]->getValuesDirectories(); |
132 | 132 | $dirName = $directoriesAll[$i]->getVar('dir_name'); |
133 | - $dirFilterRelease = (bool)$directoriesAll[$i]->getVar('dir_filterrelease'); |
|
133 | + $dirFilterRelease = (bool) $directoriesAll[$i]->getVar('dir_filterrelease'); |
|
134 | 134 | $repos = []; |
135 | 135 | $crRepositories = new \CriteriaCompo(); |
136 | 136 | //first block/parentheses |
@@ -213,9 +213,9 @@ discard block |
||
213 | 213 | } |
214 | 214 | $directories[$i]['repos'] = $repos; |
215 | 215 | $directories[$i]['previousRepos'] = $dirStart[$i] > 0; |
216 | - $directories[$i]['previousOp'] = '&dirId=' . $i . '&start=' . ($dirStart[$i] - $dirLimit[$i]) . '&limit=' . $dirLimit[$i] . '&release=' . $filterRelease . '&sortby=' . $filterSortby; |
|
216 | + $directories[$i]['previousOp'] = '&dirId='.$i.'&start='.($dirStart[$i] - $dirLimit[$i]).'&limit='.$dirLimit[$i].'&release='.$filterRelease.'&sortby='.$filterSortby; |
|
217 | 217 | $directories[$i]['nextRepos'] = ($repositoriesCount - $dirStart[$i]) > $limit; |
218 | - $directories[$i]['nextOp'] = '&dirId=' . $i . '&start=' . ($dirStart[$i] + $dirLimit[$i]) . '&limit=' . $dirLimit[$i] . '&release=' . $filterRelease . '&sortby=' . $filterSortby; |
|
218 | + $directories[$i]['nextOp'] = '&dirId='.$i.'&start='.($dirStart[$i] + $dirLimit[$i]).'&limit='.$dirLimit[$i].'&release='.$filterRelease.'&sortby='.$filterSortby; |
|
219 | 219 | $GLOBALS['xoopsTpl']->assign('menu', $menu); |
220 | 220 | $GLOBALS['xoopsTpl']->assign('directories', $directories); |
221 | 221 | } |
@@ -232,10 +232,10 @@ discard block |
||
232 | 232 | // Permissions |
233 | 233 | if (!$permGlobalRead) { |
234 | 234 | $GLOBALS['xoopsTpl']->assign('error', \_NOPERM); |
235 | - require __DIR__ . '/footer.php'; |
|
235 | + require __DIR__.'/footer.php'; |
|
236 | 236 | } |
237 | 237 | $dirName = Request::getString('dir_name', ''); |
238 | - $redir = 'index.php?op=list_afterupdate&release=' . $filterRelease . '&sortby=' . $filterSortby; |
|
238 | + $redir = 'index.php?op=list_afterupdate&release='.$filterRelease.'&sortby='.$filterSortby; |
|
239 | 239 | $githubClient = GithubClient::getInstance(); |
240 | 240 | $result = $githubClient->executeUpdate($dirName); |
241 | 241 | if ($result) { |
@@ -249,12 +249,12 @@ discard block |
||
249 | 249 | // Permissions |
250 | 250 | if (!$permReadmeUpdate) { |
251 | 251 | $GLOBALS['xoopsTpl']->assign('error', \_NOPERM); |
252 | - require __DIR__ . '/footer.php'; |
|
252 | + require __DIR__.'/footer.php'; |
|
253 | 253 | } |
254 | 254 | $repoId = Request::getInt('repo_id', 0); |
255 | 255 | $repoUser = Request::getString('repo_user', 'none'); |
256 | 256 | $repoName = Request::getString('repo_name', 'none'); |
257 | - $redir = 'index.php?op=list_afterupdate&release=' . $filterRelease . '&sortby=' . $filterSortby; |
|
257 | + $redir = 'index.php?op=list_afterupdate&release='.$filterRelease.'&sortby='.$filterSortby; |
|
258 | 258 | $result = $helper->getHandler('Readmes')->updateReadmes($repoId, $repoUser, $repoName); |
259 | 259 | if ($result) { |
260 | 260 | \redirect_header($redir, 2, \_MA_WGGITHUB_READGH_SUCCESS); |
@@ -268,11 +268,11 @@ discard block |
||
268 | 268 | // Breadcrumbs |
269 | 269 | $xoBreadcrumbs[] = ['title' => \_MA_WGGITHUB_INDEX]; |
270 | 270 | // Keywords |
271 | -wggithubMetaKeywords($helper->getConfig('keywords') . ', ' . \implode(',', $keywords)); |
|
271 | +wggithubMetaKeywords($helper->getConfig('keywords').', '.\implode(',', $keywords)); |
|
272 | 272 | unset($keywords); |
273 | 273 | // Description |
274 | 274 | wggithubMetaDescription(\_MA_WGGITHUB_INDEX_DESC); |
275 | 275 | $GLOBALS['xoopsTpl']->assign('xoops_mpageurl', WGGITHUB_URL.'/index.php'); |
276 | 276 | $GLOBALS['xoopsTpl']->assign('xoops_icons32_url', XOOPS_ICONS32_URL); |
277 | 277 | $GLOBALS['xoopsTpl']->assign('wggithub_upload_url', WGGITHUB_UPLOAD_URL); |
278 | -require __DIR__ . '/footer.php'; |
|
278 | +require __DIR__.'/footer.php'; |