Passed
Push — master ( 8085c4...3786e6 )
by Goffy
03:03
created
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/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.
admin/header.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
  * @author         Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com>
21 21
  */
22 22
 
23
-include dirname(__DIR__, 3) . '/include/cp_header.php';
24
-include_once \dirname(__DIR__) . '/include/common.php';
23
+include dirname(__DIR__, 3).'/include/cp_header.php';
24
+include_once \dirname(__DIR__).'/include/common.php';
25 25
 
26
-$sysPathIcon16   = '../' . $GLOBALS['xoopsModule']->getInfo('sysicons16');
27
-$sysPathIcon32   = '../' . $GLOBALS['xoopsModule']->getInfo('sysicons32');
26
+$sysPathIcon16   = '../'.$GLOBALS['xoopsModule']->getInfo('sysicons16');
27
+$sysPathIcon32   = '../'.$GLOBALS['xoopsModule']->getInfo('sysicons32');
28 28
 $pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
29
-$modPathIcon16   = WGGITHUB_URL . '/' . $GLOBALS['xoopsModule']->getInfo('modicons16') . '/';
30
-$modPathIcon32   = WGGITHUB_URL . '/' . $GLOBALS['xoopsModule']->getInfo('modicons32') . '/';
29
+$modPathIcon16   = WGGITHUB_URL.'/'.$GLOBALS['xoopsModule']->getInfo('modicons16').'/';
30
+$modPathIcon32   = WGGITHUB_URL.'/'.$GLOBALS['xoopsModule']->getInfo('modicons32').'/';
31 31
 
32 32
 // Get instance of module
33 33
 $helper = \XoopsModules\Wggithub\Helper::getInstance();
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 $myts = MyTextSanitizer::getInstance();
41 41
 // 
42 42
 if (!isset($xoopsTpl) || !\is_object($xoopsTpl)) {
43
-    include_once XOOPS_ROOT_PATH . '/class/template.php';
43
+    include_once XOOPS_ROOT_PATH.'/class/template.php';
44 44
     $xoopsTpl = new \XoopsTpl();
45 45
 }
46 46
 
@@ -64,4 +64,4 @@  discard block
 block discarded – undo
64 64
 $GLOBALS['xoopsTpl']->assign('modPathIcon32', $modPathIcon32);
65 65
 
66 66
 $adminObject = \Xmf\Module\Admin::getInstance();
67
-$style = WGGITHUB_URL . '/assets/css/admin/style.css';
67
+$style = WGGITHUB_URL.'/assets/css/admin/style.css';
Please login to merge, or discard this patch.
config/config.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -24,26 +24,26 @@  discard block
 block discarded – undo
24 24
  * return object
25 25
  */
26 26
 
27
-$moduleDirName  = \basename(\dirname(__DIR__));
28
-$moduleDirNameUpper  = \mb_strtoupper($moduleDirName);
29
-return (object)[
30
-    'name'           => \mb_strtoupper($moduleDirName) . ' Module Configurator',
27
+$moduleDirName = \basename(\dirname(__DIR__));
28
+$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
29
+return (object) [
30
+    'name'           => \mb_strtoupper($moduleDirName).' Module Configurator',
31 31
     'paths'          => [
32 32
         'dirname'    => $moduleDirName,
33
-        'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
34
-        'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
35
-        'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
36
-        'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
37
-        'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
33
+        'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
34
+        'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
35
+        'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
36
+        'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
37
+        'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
38 38
     ],
39 39
     'uploadFolders'  => [
40
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
40
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
41 41
     ],
42 42
     'copyBlankFiles'  => [
43 43
     ],
44 44
     'copyTestFolders'  => [
45
-        [XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads',
46
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName],
45
+        [XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/uploads',
46
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName],
47 47
     ],
48 48
     'templateFolders'  => [
49 49
         '/templates/',
@@ -56,5 +56,5 @@  discard block
 block discarded – undo
56 56
     ],
57 57
     'moduleStats'  => [
58 58
     ],
59
-    'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'><img src='" . XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . "/assets/images/logo/logoModule.png' alt='XOOPS Project'></a>",
59
+    'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'><img src='".XOOPS_ROOT_PATH.'/modules/'.$moduleDirName."/assets/images/logo/logoModule.png' alt='XOOPS Project'></a>",
60 60
 ];
Please login to merge, or discard this patch.
class/Github/Sanity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function & __get($name)
15 15
     {
16
-        throw new LogicException('Cannot read an undeclared property ' . get_class($this) . "::\$$name.");
16
+        throw new LogicException('Cannot read an undeclared property '.get_class($this)."::\$$name.");
17 17
     }
18 18
 
19 19
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function __set($name, $value)
24 24
     {
25
-        throw new LogicException('Cannot write to an undeclared property ' . get_class($this) . "::\$$name.");
25
+        throw new LogicException('Cannot write to an undeclared property '.get_class($this)."::\$$name.");
26 26
     }
27 27
 
28 28
 }
Please login to merge, or discard this patch.