Passed
Push — master ( bcd4f7...1bf514 )
by Goffy
03:22
created
include/search.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
     if ($elementCount > 0) {
49 49
         $crKeywords = new \CriteriaCompo();
50
-        for ($i = 0; $i  <  $elementCount; $i++) {
50
+        for ($i = 0; $i < $elementCount; $i++) {
51 51
             $crKeyword = new \CriteriaCompo();
52 52
             unset($crKeyword);
53 53
         }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     if ($userid && \is_array($userid)) {
57 57
         $userid = array_map('intval', $userid);
58 58
         $crUser = new \CriteriaCompo();
59
-        $crUser->add(new \Criteria('repo_submitter', '(' . \implode(',', $userid) . ')', 'IN'), 'OR');
59
+        $crUser->add(new \Criteria('repo_submitter', '('.\implode(',', $userid).')', 'IN'), 'OR');
60 60
     } elseif (is_numeric($userid) && $userid > 0) {
61 61
         $crUser = new \CriteriaCompo();
62 62
         $crUser->add(new \Criteria('repo_submitter', $userid), 'OR');
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     foreach (\array_keys($repositoriesAll) as $i) {
77 77
         $ret[] = [
78 78
             'image'  => 'assets/icons/16/repositories.png',
79
-            'link'   => 'repositories.php?op=show&amp;repo_id=' . $repositoriesAll[$i]->getVar('repo_id'),
79
+            'link'   => 'repositories.php?op=show&amp;repo_id='.$repositoriesAll[$i]->getVar('repo_id'),
80 80
             'title'  => $repositoriesAll[$i]->getVar('repo_name'),
81 81
             'time'   => $repositoriesAll[$i]->getVar('repo_datecreated')
82 82
         ];
Please login to merge, or discard this patch.
include/notification.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     global $xoopsDB;
33 33
 
34 34
     if (!\defined('WGGITHUB_URL')) {
35
-        \define('WGGITHUB_URL', \XOOPS_URL . '/modules/wggithub');
35
+        \define('WGGITHUB_URL', \XOOPS_URL.'/modules/wggithub');
36 36
     }
37 37
 
38 38
     switch ($category) {
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
             return $item;
43 43
             break;
44 44
         case 'repositories':
45
-            $sql          = 'SELECT repo_name FROM ' . $xoopsDB->prefix('wggithub_repositories') . ' WHERE repo_id = '. $item_id;
45
+            $sql          = 'SELECT repo_name FROM '.$xoopsDB->prefix('wggithub_repositories').' WHERE repo_id = '.$item_id;
46 46
             $result       = $xoopsDB->query($sql);
47 47
             $result_array = $xoopsDB->fetchArray($result);
48 48
             $item['name'] = $result_array['repo_name'];
49
-            $item['url']  = WGGITHUB_URL . '/repositories.php?repo_id=' . $item_id;
49
+            $item['url']  = WGGITHUB_URL.'/repositories.php?repo_id='.$item_id;
50 50
             return $item;
51 51
             break;
52 52
     }
Please login to merge, or discard this patch.
admin/logs.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 // Request log_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($logsCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($logsCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($logsCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -134,4 +134,4 @@  discard block
 block discarded – undo
134 134
         }
135 135
         break;
136 136
 }
137
-require __DIR__ . '/footer.php';
137
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/settings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 // Request set_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($settingsCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -140,4 +140,4 @@  discard block
 block discarded – undo
140 140
         }
141 141
         break;
142 142
 }
143
-require __DIR__ . '/footer.php';
143
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 
24 24
 use XoopsModules\Wggithub\Common;
25 25
 
26
-include_once \dirname(__DIR__) . '/preloads/autoloader.php';
27
-require __DIR__ . '/header.php';
26
+include_once \dirname(__DIR__).'/preloads/autoloader.php';
27
+require __DIR__.'/header.php';
28 28
 
29 29
 // Template Index
30 30
 $templateMain = 'wggithub_admin_index.tpl';
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
 // InfoBox Statistics
41 41
 $adminObject->addInfoBox(_AM_WGGITHUB_STATISTICS);
42 42
 // Info elements
43
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . _AM_WGGITHUB_THEREARE_SETTINGS . '</label>', $countSettings));
44
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . _AM_WGGITHUB_THEREARE_DIRECTORIES . '</label>', $countDirectories));
45
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . _AM_WGGITHUB_THEREARE_LOGS . '</label>', $countLogs));
46
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . _AM_WGGITHUB_THEREARE_REPOSITORIES . '</label>', $countRepositories));
47
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . _AM_WGGITHUB_THEREARE_READMES . '</label>', $countReadmes));
48
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . _AM_WGGITHUB_THEREARE_RELEASES . '</label>', $countReleases));
43
+$adminObject->addInfoBoxLine(\sprintf('<label>'._AM_WGGITHUB_THEREARE_SETTINGS.'</label>', $countSettings));
44
+$adminObject->addInfoBoxLine(\sprintf('<label>'._AM_WGGITHUB_THEREARE_DIRECTORIES.'</label>', $countDirectories));
45
+$adminObject->addInfoBoxLine(\sprintf('<label>'._AM_WGGITHUB_THEREARE_LOGS.'</label>', $countLogs));
46
+$adminObject->addInfoBoxLine(\sprintf('<label>'._AM_WGGITHUB_THEREARE_REPOSITORIES.'</label>', $countRepositories));
47
+$adminObject->addInfoBoxLine(\sprintf('<label>'._AM_WGGITHUB_THEREARE_READMES.'</label>', $countReadmes));
48
+$adminObject->addInfoBoxLine(\sprintf('<label>'._AM_WGGITHUB_THEREARE_RELEASES.'</label>', $countReleases));
49 49
 
50 50
 // Upload Folders
51 51
 $configurator = new Common\Configurator();
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 // Test Data
66 66
 if ($helper->getConfig('displaySampleButton')) {
67 67
     \xoops_loadLanguage('admin/modulesadmin', 'system');
68
-    include_once \dirname(__DIR__) . '/testdata/index.php';
69
-    $adminObject->addItemButton(\constant('CO_' . $moduleDirNameUpper . '_ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
70
-    $adminObject->addItemButton(\constant('CO_' . $moduleDirNameUpper . '_SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
68
+    include_once \dirname(__DIR__).'/testdata/index.php';
69
+    $adminObject->addItemButton(\constant('CO_'.$moduleDirNameUpper.'_ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
70
+    $adminObject->addItemButton(\constant('CO_'.$moduleDirNameUpper.'_SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
71 71
 //    $adminObject->addItemButton(\constant('CO_' . $moduleDirNameUpper . '_EXPORT_SCHEMA'), '__DIR__ . /../../testdata/index.php?op=exportschema', 'add');
72 72
     $adminObject->displayButton('left');
73 73
 }
74 74
 $GLOBALS['xoopsTpl']->assign('index', $adminObject->displayIndex());
75 75
 // End Test Data
76
-require __DIR__ . '/footer.php';
76
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/readmes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 // Request rm_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($readmesCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -137,4 +137,4 @@  discard block
 block discarded – undo
137 137
         }
138 138
         break;
139 139
 }
140
-require __DIR__ . '/footer.php';
140
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/directories.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 // Request dir_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($directoriesCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -136,4 +136,4 @@  discard block
 block discarded – undo
136 136
         }
137 137
         break;
138 138
 }
139
-require __DIR__ . '/footer.php';
139
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/releases.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 // Request rel_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($releasesCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -138,4 +138,4 @@  discard block
 block discarded – undo
138 138
         }
139 139
         break;
140 140
 }
141
-require __DIR__ . '/footer.php';
141
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/repositories.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 // Request repo_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($repositoriesCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -143,4 +143,4 @@  discard block
 block discarded – undo
143 143
         }
144 144
         break;
145 145
 }
146
-require __DIR__ . '/footer.php';
146
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.