Passed
Push — master ( a44753...55161e )
by Goffy
03:59
created
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
  * @min_xoops      2.5.10
20 20
  * @author         Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com>
21 21
  */
22
-require __DIR__ . '/header.php';
22
+require __DIR__.'/header.php';
23 23
 $templateMain = 'wggithub_admin_about.tpl';
24 24
 $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation('about.php'));
25 25
 $adminObject::setPaypal('6KJ7RW5DR3VTJ');
26 26
 $GLOBALS['xoopsTpl']->assign('about', $adminObject->renderAbout(false));
27
-require __DIR__ . '/footer.php';
27
+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 {
@@ -161,4 +161,4 @@  discard block
 block discarded – undo
161 161
 		}
162 162
 		break;
163 163
 }
164
-require __DIR__ . '/footer.php';
164
+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_REQUESTS . '</label>', $countRequests));
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_REQUESTS.'</label>', $countRequests));
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/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/requests.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 req_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 			}
56 56
 			// Display Navigation
57 57
 			if ($requestsCount > $limit) {
58
-				include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-				$pagenav = new \XoopsPageNav($requestsCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+				include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+				$pagenav = new \XoopsPageNav($requestsCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
 				$GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
 			}
62 62
 		} else {
@@ -133,4 +133,4 @@  discard block
 block discarded – undo
133 133
 		}
134 134
 		break;
135 135
 }
136
-require __DIR__ . '/footer.php';
136
+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 {
@@ -168,4 +168,4 @@  discard block
 block discarded – undo
168 168
 		}
169 169
 		break;
170 170
 }
171
-require __DIR__ . '/footer.php';
171
+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.
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 {
@@ -135,4 +135,4 @@  discard block
 block discarded – undo
135 135
 		}
136 136
 		break;
137 137
 }
138
-require __DIR__ . '/footer.php';
138
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/feedback.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 use Xmf\Request;
23 23
 
24
-include __DIR__ . '/header.php';
24
+include __DIR__.'/header.php';
25 25
 
26 26
 $adminObject = \Xmf\Module\Admin::getInstance();
27 27
 
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
         $fb_content = Request::getText('fb_content', '');
61 61
         $fb_content = \str_replace(["\r\n", "\n", "\r"], '<br>', $fb_content); //clean line break from dhtmltextarea
62 62
 
63
-        $title       = \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_FOR') . $GLOBALS['xoopsModule']->getVar('dirname');
64
-        $body        = \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME') . ': ' . $your_name . '<br>';
65
-        $body        .= \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL') . ': ' . $your_mail . '<br>';
66
-        $body        .= \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE') . ': ' . $your_site . '<br>';
67
-        $body        .= \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE') . ': ' . $fb_type . '<br><br>';
68
-        $body        .= \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_CONTENT') . ':<br>';
63
+        $title       = \constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_FOR').$GLOBALS['xoopsModule']->getVar('dirname');
64
+        $body        = \constant('CO_'.$moduleDirNameUpper.'_'.'FB_NAME').': '.$your_name.'<br>';
65
+        $body        .= \constant('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL').': '.$your_mail.'<br>';
66
+        $body        .= \constant('CO_'.$moduleDirNameUpper.'_'.'FB_SITE').': '.$your_site.'<br>';
67
+        $body        .= \constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE').': '.$fb_type.'<br><br>';
68
+        $body        .= \constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_CONTENT').':<br>';
69 69
         $body        .= $fb_content;
70 70
         $xoopsMailer = xoops_getMailer();
71 71
         $xoopsMailer->useMail();
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $xoopsMailer->setBody($body);
78 78
         $ret = $xoopsMailer->send();
79 79
         if ($ret) {
80
-            \redirect_header('index.php', 3, \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_SUCCESS'));
80
+            \redirect_header('index.php', 3, \constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_SUCCESS'));
81 81
         }
82 82
 
83 83
         // show form with content again
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
         $feedback->type    = $fb_type;
88 88
         $feedback->content = $fb_content;
89 89
         echo '<div style="text-align:center;width: 80%; padding: 10px; border: 2px solid #ff0000; color: #ff0000; margin-right:auto;margin-left:auto;">
90
-            <h3>' . \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_ERROR') . '</h3>
90
+            <h3>' . \constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_ERROR').'</h3>
91 91
             </div>';
92 92
         $form = $feedback->getFormFeedback();
93 93
         $form->display();
94 94
 
95 95
         break;
96 96
 }
97
-require __DIR__ . '/footer.php';
97
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.