@@ -40,10 +40,10 @@ discard block |
||
40 | 40 | 'license_url' => 'http://www.gnu.org/licenses/gpl-3.0.en.html', |
41 | 41 | 'help' => 'page=help', |
42 | 42 | 'release_info' => 'release_info', |
43 | - 'release_file' => \XOOPS_URL . '/modules/wggithub/docs/release_info file', |
|
43 | + 'release_file' => \XOOPS_URL.'/modules/wggithub/docs/release_info file', |
|
44 | 44 | 'release_date' => '2021/03/31', |
45 | 45 | 'manual' => 'link to manual file', |
46 | - 'manual_file' => \XOOPS_URL . '/modules/wggithub/docs/install.txt', |
|
46 | + 'manual_file' => \XOOPS_URL.'/modules/wggithub/docs/install.txt', |
|
47 | 47 | 'min_php' => '7.3', |
48 | 48 | 'min_xoops' => '2.5.11 Beta1', |
49 | 49 | 'min_admin' => '1.2', |
@@ -301,8 +301,8 @@ discard block |
||
301 | 301 | // Make Sample button visible? |
302 | 302 | $modversion['config'][] = [ |
303 | 303 | 'name' => 'displaySampleButton', |
304 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', |
|
305 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', |
|
304 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', |
|
305 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC', |
|
306 | 306 | 'formtype' => 'yesno', |
307 | 307 | 'valuetype' => 'int', |
308 | 308 | 'default' => 1, |
@@ -59,15 +59,15 @@ discard block |
||
59 | 59 | } |
60 | 60 | if ($elementCount > 0) { |
61 | 61 | $crKeywords = new \CriteriaCompo(); |
62 | - for ($i = 0; $i < $elementCount; $i++) { |
|
63 | - $crKeywords->add(new Criteria('repo_name', '%' . $queryarray[$i] . '%', 'LIKE'), 'OR'); |
|
62 | + for ($i = 0; $i < $elementCount; $i++) { |
|
63 | + $crKeywords->add(new Criteria('repo_name', '%'.$queryarray[$i].'%', 'LIKE'), 'OR'); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | // search user(s) |
67 | 67 | if ($userid && \is_array($userid)) { |
68 | 68 | $userid = array_map('intval', $userid); |
69 | 69 | $crUser = new \CriteriaCompo(); |
70 | - $crUser->add(new \Criteria('repo_submitter', '(' . \implode(',', $userid) . ')', 'IN'), 'OR'); |
|
70 | + $crUser->add(new \Criteria('repo_submitter', '('.\implode(',', $userid).')', 'IN'), 'OR'); |
|
71 | 71 | } elseif (is_numeric($userid) && $userid > 0) { |
72 | 72 | $crUser = new \CriteriaCompo(); |
73 | 73 | $crUser->add(new \Criteria('repo_submitter', $userid), 'OR'); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | if (isset($crUser)) { |
80 | 80 | $crSearch->add($crUser, 'AND'); |
81 | 81 | } |
82 | - if (0 === (int)$helper->getConfig('autoapproved')) { |
|
82 | + if (0 === (int) $helper->getConfig('autoapproved')) { |
|
83 | 83 | $crSearch->add(new \Criteria('repo_approved', 1)); |
84 | 84 | } |
85 | 85 | $crSearch->add(new \Criteria('repo_status', Constants::STATUS_UPTODATE)); |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | foreach (\array_keys($repositoriesAll) as $i) { |
92 | 92 | $ret[] = [ |
93 | 93 | 'image' => 'assets/icons/16/github.png', |
94 | - 'link' => 'index.php?op=show&dir_id=' . $directories[$repositoriesAll[$i]->getVar('repo_user')] . '&repo_id=' . $i, |
|
95 | - 'title' => $repositoriesAll[$i]->getVar('repo_name') . ' (' . $repositoriesAll[$i]->getVar('repo_user') . ')', |
|
94 | + 'link' => 'index.php?op=show&dir_id='.$directories[$repositoriesAll[$i]->getVar('repo_user')].'&repo_id='.$i, |
|
95 | + 'title' => $repositoriesAll[$i]->getVar('repo_name').' ('.$repositoriesAll[$i]->getVar('repo_user').')', |
|
96 | 96 | 'time' => $repositoriesAll[$i]->getVar('repo_datecreated') |
97 | 97 | ]; |
98 | 98 | } |