Passed
Push — master ( e3dd83...1d0275 )
by Goffy
03:05
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/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.
language/english/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @author         Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com>
21 21
  */
22 22
 
23
-include_once __DIR__ . '/admin.php';
23
+include_once __DIR__.'/admin.php';
24 24
 
25 25
 // ---------------- Main ----------------
26 26
 \define('_MA_WGGITHUB_INDEX', 'Home');
Please login to merge, or discard this patch.
language/english/feedback.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -23,21 +23,21 @@
 block discarded – undo
23 23
 $moduleDirName      = \basename(dirname(__DIR__, 2));
24 24
 $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
25 25
 
26
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_FORM_TITLE', 'Send a feedback');
27
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_RECIPIENT', 'Recipient');
28
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME', 'Name');
29
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME_PLACEHOLER', 'Please enter your name');
30
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE', 'Website');
31
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE_PLACEHOLER', 'Please enter your website');
32
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL', 'Email');
33
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL_PLACEHOLER', 'Please enter your email');
34
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE', 'Type of feedback');
35
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_SUGGESTION', 'Suggestions');
36
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_BUGS', 'Bugs');
37
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_TESTIMONIAL', 'Testimonials');
38
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_FEATURES', 'Features');
39
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_OTHERS', 'Misc');
40
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_CONTENT', 'Feedback content');
41
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_FOR', 'Feedback for module ');
42
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_SUCCESS', 'Feedback successfully sent');
43
-\define('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_ERROR', 'An errror occured when feedback was sent!');
26
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_FORM_TITLE', 'Send a feedback');
27
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_RECIPIENT', 'Recipient');
28
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_NAME', 'Name');
29
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_NAME_PLACEHOLER', 'Please enter your name');
30
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_SITE', 'Website');
31
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_SITE_PLACEHOLER', 'Please enter your website');
32
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL', 'Email');
33
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL_PLACEHOLER', 'Please enter your email');
34
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE', 'Type of feedback');
35
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_SUGGESTION', 'Suggestions');
36
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_BUGS', 'Bugs');
37
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_TESTIMONIAL', 'Testimonials');
38
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_FEATURES', 'Features');
39
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_OTHERS', 'Misc');
40
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_CONTENT', 'Feedback content');
41
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_FOR', 'Feedback for module ');
42
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_SUCCESS', 'Feedback successfully sent');
43
+\define('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_ERROR', 'An errror occured when feedback was sent!');
Please login to merge, or discard this patch.
include/xoops_version.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
     switch (mb_substr($val, -1)) {
28 28
         case 'K':
29 29
         case 'k':
30
-            return (int)$val * 1024;
30
+            return (int) $val * 1024;
31 31
         case 'M':
32 32
         case 'm':
33
-            return (int)$val * 1048576;
33
+            return (int) $val * 1048576;
34 34
         case 'G':
35 35
         case 'g':
36
-            return (int)$val * 1073741824;
36
+            return (int) $val * 1073741824;
37 37
         default:
38 38
             return $val;
39 39
     }
Please login to merge, or discard this patch.
include/uninstall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         if ($dirInfo->isDir()) {
53 53
             // The directory exists so delete it
54 54
             if (!$utility::rrmdir($old_dir)) {
55
-                $module->setErrors(\sprintf(\constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH'), $old_dir));
55
+                $module->setErrors(\sprintf(\constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH'), $old_dir));
56 56
                 $success = false;
57 57
             }
58 58
         }
Please login to merge, or discard this patch.
footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,4 +30,4 @@
 block discarded – undo
30 30
 $GLOBALS['xoopsTpl']->assign('admin', WGGITHUB_ADMIN);
31 31
 $GLOBALS['xoopsTpl']->assign('copyright', $copyright);
32 32
 // 
33
-include_once \XOOPS_ROOT_PATH . '/footer.php';
33
+include_once \XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
class/Common/ServerStats.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -36,19 +36,19 @@  discard block
 block discarded – undo
36 36
         //        $query = $GLOBALS['xoopsDB']->query($sql);
37 37
         //        list($meta) = $GLOBALS['xoopsDB']->fetchRow($query);
38 38
         $html .= '<fieldset>';
39
-        $html .= "<legend style='font-weight: bold; color: #900;'>" . \constant('CO_' . $moduleDirNameUpper . '_IMAGEINFO') . '</legend>';
39
+        $html .= "<legend style='font-weight: bold; color: #900;'>".\constant('CO_'.$moduleDirNameUpper.'_IMAGEINFO').'</legend>';
40 40
         $html .= "<div style='padding: 8px;'>";
41 41
         //        $html .= '<div>' . \constant('CO_' . $moduleDirNameUpper . '_METAVERSION') . $meta . "</div>";
42 42
         //        $html .= "<br>";
43 43
         //        $html .= "<br>";
44
-        $html .= '<div>' . \constant('CO_' . $moduleDirNameUpper . '_SPHPINI') . '</div>';
44
+        $html .= '<div>'.\constant('CO_'.$moduleDirNameUpper.'_SPHPINI').'</div>';
45 45
         $html .= '<ul>';
46 46
 
47
-        $gdlib = \function_exists('gd_info') ? '<span style="color: #008000;">' . \constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: #ff0000;">' . \constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>';
48
-        $html  .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib;
47
+        $gdlib = \function_exists('gd_info') ? '<span style="color: #008000;">'.\constant('CO_'.$moduleDirNameUpper.'_GDON').'</span>' : '<span style="color: #ff0000;">'.\constant('CO_'.$moduleDirNameUpper.'_GDOFF').'</span>';
48
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS').$gdlib;
49 49
         if (\function_exists('gd_info')) {
50 50
             if (true === ($gdlib = gd_info())) {
51
-                $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_GDLIBVERSION') . '<b>' . $gdlib['GD Version'] . '</b>';
51
+                $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_GDLIBVERSION').'<b>'.$gdlib['GD Version'].'</b>';
52 52
             }
53 53
         }
54 54
 
@@ -58,18 +58,18 @@  discard block
 block discarded – undo
58 58
         //    $registerglobals = (!\ini_get('register_globals')) ? "<span style=\"color: #008000;\">" . \constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>' : "<span style=\"color: #ff0000;\">" . \constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>';
59 59
         //    $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals;
60 60
 
61
-        $downloads = \ini_get('file_uploads') ? '<span style="color: #008000;">' . \constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: #ff0000;">' . \constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>';
62
-        $html      .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads;
61
+        $downloads = \ini_get('file_uploads') ? '<span style="color: #008000;">'.\constant('CO_'.$moduleDirNameUpper.'_ON').'</span>' : '<span style="color: #ff0000;">'.\constant('CO_'.$moduleDirNameUpper.'_OFF').'</span>';
62
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS').$downloads;
63 63
 
64
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE') . ' <b><span style="color: #0000ff;">' . \ini_get('upload_max_filesize') . '</span></b>';
65
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE') . ' <b><span style="color: #0000ff;">' . \ini_get('post_max_size') . '</span></b>';
66
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT') . ' <b><span style="color: #0000ff;">' . \ini_get('memory_limit') . '</span></b>';
64
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE').' <b><span style="color: #0000ff;">'.\ini_get('upload_max_filesize').'</span></b>';
65
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE').' <b><span style="color: #0000ff;">'.\ini_get('post_max_size').'</span></b>';
66
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT').' <b><span style="color: #0000ff;">'.\ini_get('memory_limit').'</span></b>';
67 67
         $html .= '</ul>';
68 68
         $html .= '<ul>';
69
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_SERVERPATH') . ' <b>' . XOOPS_ROOT_PATH . '</b>';
69
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_SERVERPATH').' <b>'.XOOPS_ROOT_PATH.'</b>';
70 70
         $html .= '</ul>';
71 71
         $html .= '<br>';
72
-        $html .= \constant('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC') . '';
72
+        $html .= \constant('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC').'';
73 73
         $html .= '</div>';
74 74
         $html .= '</fieldset><br>';
75 75
 
Please login to merge, or discard this patch.
class/Common/Breadcrumb.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         require $GLOBALS['xoops']->path('class/template.php');
74 74
         $breadcrumbTpl = new \XoopsTpl();
75 75
         $breadcrumbTpl->assign('breadcrumb', $this->bread);
76
-        $html = $breadcrumbTpl->fetch('db:' . $this->dirname . '_common_breadcrumb.tpl');
76
+        $html = $breadcrumbTpl->fetch('db:'.$this->dirname.'_common_breadcrumb.tpl');
77 77
         unset($breadcrumbTpl);
78 78
 
79 79
         return $html;
Please login to merge, or discard this patch.