Completed
Push — master ( 8e5652...4e30dc )
by Michael
02:28
created
header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include __DIR__ . '/../../mainfile.php';
9
+include __DIR__.'/../../mainfile.php';
10 10
 
11 11
 //require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
12 12
 //require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/category.php';
Please login to merge, or discard this patch.
open_category.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -9,16 +9,16 @@  discard block
 block discarded – undo
9 9
 use XoopsModules\Smartfaq;
10 10
 use XoopsModules\Smartfaq\Constants;
11 11
 
12
-require_once __DIR__ . '/header.php';
12
+require_once __DIR__.'/header.php';
13 13
 
14 14
 global $xoopsConfig, $xoopsModuleConfig, $xoopsModule;
15 15
 
16 16
 $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_category.tpl';
17 17
 
18
-require_once XOOPS_ROOT_PATH . '/header.php';
19
-require_once __DIR__ . '/footer.php';
18
+require_once XOOPS_ROOT_PATH.'/header.php';
19
+require_once __DIR__.'/footer.php';
20 20
 
21
-$categoryid = isset($_GET['categoryid']) ? (int)$_GET['categoryid'] : 0;
21
+$categoryid = isset($_GET['categoryid']) ? (int) $_GET['categoryid'] : 0;
22 22
 
23 23
 // Creating the category object for the selected category
24 24
 $categoryObj = new Smartfaq\Category($categoryid);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 $categoryHandler = \XoopsModules\Smartfaq\Helper::getInstance()->getHandler('Category');
39 39
 
40 40
 // At which record shall we start
41
-$start = isset($_GET['start']) ? (int)$_GET['start'] : 0;
41
+$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
42 42
 
43 43
 // Creating the faq handler object
44 44
 /** @var \XoopsModules\Smartfaq\FaqHandler $faqHandler */
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 $last_qnaObj = $faqHandler->getLastPublishedByCat([Constants::SF_STATUS_OPENED]);
64 64
 if (isset($last_qnaObj[$categoryid])) {
65 65
     $categoryObj->setVar('last_faqid', $last_qnaObj[$categoryid]->getVar('faqid'));
66
-    $categoryObj->setVar('last_question_link', "<a href='faq.php?faqid=" . $last_qnaObj[$categoryid]->getVar('faqid') . "'>" . $last_qnaObj[$categoryid]->question(50) . '</a>');
66
+    $categoryObj->setVar('last_question_link', "<a href='faq.php?faqid=".$last_qnaObj[$categoryid]->getVar('faqid')."'>".$last_qnaObj[$categoryid]->question(50).'</a>');
67 67
 }
68 68
 // Populating the smarty variables with informations related to the selected category
69 69
 $category                 = $categoryObj->toArray(null, true);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 $category['categoryPath'] = $categoryObj->getCategoryPath(false, true);
72 72
 
73 73
 // Creating the sub-categories objects that belong to the selected category
74
-$subcatsObj     =& $categoryHandler->getCategories(0, 0, $categoryid);
74
+$subcatsObj     = & $categoryHandler->getCategories(0, 0, $categoryid);
75 75
 $total_subcats  = count($subcatsObj);
76 76
 $catQnasWithSub = 0;
77 77
 if (0 != $total_subcats) {
@@ -82,16 +82,16 @@  discard block
 block discarded – undo
82 82
         if (isset($totalQnas[$subcat_id]) && $totalQnas[$subcat_id] > 0) {
83 83
             if (isset($last_qnaObj[$subcat_id])) {
84 84
                 $subcat->setVar('last_faqid', $last_qnaObj[$subcat_id]->getVar('faqid'));
85
-                $subcat->setVar('last_question_link', "<a href='faq.php?faqid=" . $last_qnaObj[$subcat_id]->getVar('faqid') . "'>" . $last_qnaObj[$subcat_id]->question(50) . '</a>');
85
+                $subcat->setVar('last_question_link', "<a href='faq.php?faqid=".$last_qnaObj[$subcat_id]->getVar('faqid')."'>".$last_qnaObj[$subcat_id]->question(50).'</a>');
86 86
             }
87 87
             $subcat->setVar('faqcount', $totalQnas[$subcat_id]);
88 88
             $subcats[$subcat_id] = $subcat->toArray(null, true);
89
-            $catQnasWithSub      += $subcats[$subcat_id]['total'];
89
+            $catQnasWithSub += $subcats[$subcat_id]['total'];
90 90
         }
91 91
     }
92 92
     $xoopsTpl->assign('subcats', $subcats);
93 93
 }
94
-$category['total'] = $catQnasWithSub + $totalQnas[$categoryid];
94
+$category['total'] = $catQnasWithSub+$totalQnas[$categoryid];
95 95
 if ($faqsObj) {
96 96
     $userids = [];
97 97
     foreach ($faqsObj as $key => $thisfaq) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     }
101 101
 
102 102
     $memberHandler = xoops_getHandler('member');
103
-    $users         = $memberHandler->getUsers(new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'), true);
103
+    $users         = $memberHandler->getUsers(new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'), true);
104 104
     foreach ($faqsObj as $iValue) {
105 105
         $faq = $iValue->toArray(null, $allcategories);
106 106
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     }
113 113
 }
114 114
 // Language constants
115
-$xoopsTpl->assign('whereInSection', $myts->htmlSpecialChars($xoopsModule->getVar('name')) . " > <a href='open_index.php'>" . _MD_SF_OPEN_SECTION . '</a>');
115
+$xoopsTpl->assign('whereInSection', $myts->htmlSpecialChars($xoopsModule->getVar('name'))." > <a href='open_index.php'>"._MD_SF_OPEN_SECTION.'</a>');
116 116
 $xoopsTpl->assign('modulename', $xoopsModule->dirname());
117 117
 
118 118
 $xoopsTpl->assign('displaylastfaqs', true);
@@ -129,19 +129,19 @@  discard block
 block discarded – undo
129 129
 $xoopsTpl->assign('lang_category', _MD_SF_CATEGORY);
130 130
 
131 131
 // The Navigation Bar
132
-require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
133
-$pagenav = new \XoopsPageNav($totalQnas[$categoryid], $xoopsModuleConfig['indexperpage'], $start, 'start', 'categoryid=' . $categoryObj->getVar('categoryid'));
132
+require_once XOOPS_ROOT_PATH.'/class/pagenav.php';
133
+$pagenav = new \XoopsPageNav($totalQnas[$categoryid], $xoopsModuleConfig['indexperpage'], $start, 'start', 'categoryid='.$categoryObj->getVar('categoryid'));
134 134
 if (1 == $xoopsModuleConfig['useimagenavpage']) {
135
-    $category['navbar'] = '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>';
135
+    $category['navbar'] = '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>';
136 136
 } else {
137
-    $category['navbar'] = '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
137
+    $category['navbar'] = '<div style="text-align:right;">'.$pagenav->renderNav().'</div>';
138 138
 }
139 139
 
140 140
 $xoopsTpl->assign('category', $category);
141 141
 
142 142
 // Page Title Hack by marcan
143 143
 $module_name = $myts->htmlSpecialChars($xoopsModule->getVar('name'));
144
-$xoopsTpl->assign('xoops_pagetitle', $module_name . ' - ' . $category['name']);
144
+$xoopsTpl->assign('xoops_pagetitle', $module_name.' - '.$category['name']);
145 145
 // End Page Title Hack by marcan
146 146
 
147
-require_once XOOPS_ROOT_PATH . '/footer.php';
147
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
blocks/faqs_recent_questions.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     $faqHandler = \XoopsModules\Smartfaq\Helper::getInstance()->getHandler('Faq');
39 39
 
40 40
     // creating the FAQ objects that belong to the selected category
41
-    $faqsObj   = $faqHandler->getFaqs($limit, 0, Constants::SF_STATUS_OPENED, $categoryid, $sort);
41
+    $faqsObj = $faqHandler->getFaqs($limit, 0, Constants::SF_STATUS_OPENED, $categoryid, $sort);
42 42
 
43 43
     if ($faqsObj) {
44 44
         foreach ($faqsObj as $iValue) {
@@ -72,40 +72,40 @@  discard block
 block discarded – undo
72 72
 
73 73
     $form = Smartfaq\Utility::createCategorySelect($options[0]);
74 74
 
75
-    $form .= '&nbsp;<br>' . _MB_SF_ORDER . "&nbsp;<select name='options[]'>";
75
+    $form .= '&nbsp;<br>'._MB_SF_ORDER."&nbsp;<select name='options[]'>";
76 76
 
77 77
     $form .= "<option value='datesub'";
78 78
     if ('datesub' === $options[1]) {
79 79
         $form .= ' selected';
80 80
     }
81
-    $form .= '>' . _MB_SF_DATE . "</option>\n";
81
+    $form .= '>'._MB_SF_DATE."</option>\n";
82 82
 
83 83
     $form .= "<option value='counter'";
84 84
     if ('counter' === $options[1]) {
85 85
         $form .= ' selected';
86 86
     }
87
-    $form .= '>' . _MB_SF_HITS . "</option>\n";
87
+    $form .= '>'._MB_SF_HITS."</option>\n";
88 88
 
89 89
     $form .= "<option value='weight'";
90 90
     if ('weight' === $options[1]) {
91 91
         $form .= ' selected';
92 92
     }
93
-    $form .= '>' . _MB_SF_WEIGHT . "</option>\n";
93
+    $form .= '>'._MB_SF_WEIGHT."</option>\n";
94 94
 
95 95
     $form .= "</select>\n";
96 96
 
97
-    $form .= '&nbsp;' . _MB_SF_DISP . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . "'>&nbsp;" . _MB_SF_QUESTIONS . '';
98
-    $form .= '&nbsp;<br>' . _MB_SF_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[3] . "'>&nbsp;" . _MB_SF_LENGTH . '';
97
+    $form .= '&nbsp;'._MB_SF_DISP."&nbsp;<input type='text' name='options[]' value='".$options[2]."'>&nbsp;"._MB_SF_QUESTIONS.'';
98
+    $form .= '&nbsp;<br>'._MB_SF_CHARS."&nbsp;<input type='text' name='options[]' value='".$options[3]."'>&nbsp;"._MB_SF_LENGTH.'';
99 99
 
100
-    $form .= '<br>' . _MB_SF_SHOW_DATE . "&nbsp;<input type='radio' id='options[]' name='options[]' value='1'";
100
+    $form .= '<br>'._MB_SF_SHOW_DATE."&nbsp;<input type='radio' id='options[]' name='options[]' value='1'";
101 101
     if (1 == $options[4]) {
102 102
         $form .= ' checked';
103 103
     }
104
-    $form .= '>&nbsp;' . _YES . "<input type='radio' id='options[]' name='options[]' value='0'";
104
+    $form .= '>&nbsp;'._YES."<input type='radio' id='options[]' name='options[]' value='0'";
105 105
     if (0 == $options[4]) {
106 106
         $form .= ' checked';
107 107
     }
108
-    $form .= '>&nbsp;' . _NO . '';
108
+    $form .= '>&nbsp;'._NO.'';
109 109
 
110 110
     return $form;
111 111
 }
Please login to merge, or discard this patch.
blocks/faqs_new.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /** @var \XoopsModules\Smartfaq\FaqHandler $faqHandler */
37 37
     $faqHandler = \XoopsModules\Smartfaq\Helper::getInstance()->getHandler('Faq');
38 38
     // creating the FAQ objects that belong to the selected category
39
-    $faqsObj   = $faqHandler->getAllPublished($limit, 0, $categoryid, $sort);
39
+    $faqsObj = $faqHandler->getAllPublished($limit, 0, $categoryid, $sort);
40 40
 
41 41
     if ($faqsObj) {
42 42
         foreach ($faqsObj as $iValue) {
@@ -69,40 +69,40 @@  discard block
 block discarded – undo
69 69
 
70 70
     $form = Smartfaq\Utility::createCategorySelect($options[0]);
71 71
 
72
-    $form .= '&nbsp;<br>' . _MB_SF_ORDER . "&nbsp;<select name='options[]'>";
72
+    $form .= '&nbsp;<br>'._MB_SF_ORDER."&nbsp;<select name='options[]'>";
73 73
 
74 74
     $form .= "<option value='datesub'";
75 75
     if ('datesub' === $options[1]) {
76 76
         $form .= ' selected';
77 77
     }
78
-    $form .= '>' . _MB_SF_DATE . "</option>\n";
78
+    $form .= '>'._MB_SF_DATE."</option>\n";
79 79
 
80 80
     $form .= "<option value='counter'";
81 81
     if ('counter' === $options[1]) {
82 82
         $form .= ' selected';
83 83
     }
84
-    $form .= '>' . _MB_SF_HITS . "</option>\n";
84
+    $form .= '>'._MB_SF_HITS."</option>\n";
85 85
 
86 86
     $form .= "<option value='weight'";
87 87
     if ('weight' === $options[1]) {
88 88
         $form .= ' selected';
89 89
     }
90
-    $form .= '>' . _MB_SF_WEIGHT . "</option>\n";
90
+    $form .= '>'._MB_SF_WEIGHT."</option>\n";
91 91
 
92 92
     $form .= "</select>\n";
93 93
 
94
-    $form .= '&nbsp;' . _MB_SF_DISP . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . "'>&nbsp;" . _MB_SF_FAQS . '';
95
-    $form .= '&nbsp;<br>' . _MB_SF_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[3] . "'>&nbsp;" . _MB_SF_LENGTH . '';
94
+    $form .= '&nbsp;'._MB_SF_DISP."&nbsp;<input type='text' name='options[]' value='".$options[2]."'>&nbsp;"._MB_SF_FAQS.'';
95
+    $form .= '&nbsp;<br>'._MB_SF_CHARS."&nbsp;<input type='text' name='options[]' value='".$options[3]."'>&nbsp;"._MB_SF_LENGTH.'';
96 96
 
97
-    $form .= '<br>' . _MB_SF_SHOW_DATE . "&nbsp;<input type='radio' id='options[]' name='options[]' value='1'";
97
+    $form .= '<br>'._MB_SF_SHOW_DATE."&nbsp;<input type='radio' id='options[]' name='options[]' value='1'";
98 98
     if (1 == $options[4]) {
99 99
         $form .= ' checked';
100 100
     }
101
-    $form .= '>&nbsp;' . _YES . "<input type='radio' id='options[]' name='options[]' value='0'";
101
+    $form .= '>&nbsp;'._YES."<input type='radio' id='options[]' name='options[]' value='0'";
102 102
     if (0 == $options[4]) {
103 103
         $form .= ' checked';
104 104
     }
105
-    $form .= '>&nbsp;' . _NO . '';
105
+    $form .= '>&nbsp;'._NO.'';
106 106
 
107 107
     return $form;
108 108
 }
Please login to merge, or discard this patch.
blocks/faqs_most_viewed.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /** @var \XoopsModules\Smartfaq\FaqHandler $faqHandler */
35 35
     $faqHandler = \XoopsModules\Smartfaq\Helper::getInstance()->getHandler('Faq');
36 36
     // creating the FAQ objects that belong to the selected category
37
-    $faqsObj   = $faqHandler->getAllPublished($limit, 0, $categoryid, $sort);
37
+    $faqsObj = $faqHandler->getAllPublished($limit, 0, $categoryid, $sort);
38 38
 
39 39
     if ($faqsObj) {
40 40
         foreach ($faqsObj as $iValue) {
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
 
61 61
     $form = Smartfaq\Utility::createCategorySelect($options[0]);
62 62
 
63
-    $form .= '&nbsp;<br>' . _MB_SF_DISP . "&nbsp;<input type='text' name='options[]' value='" . $options[1] . "'>&nbsp;" . _MB_SF_FAQS . '';
64
-    $form .= '&nbsp;<br>' . _MB_SF_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . "'>&nbsp;" . _MB_SF_LENGTH . '';
63
+    $form .= '&nbsp;<br>'._MB_SF_DISP."&nbsp;<input type='text' name='options[]' value='".$options[1]."'>&nbsp;"._MB_SF_FAQS.'';
64
+    $form .= '&nbsp;<br>'._MB_SF_CHARS."&nbsp;<input type='text' name='options[]' value='".$options[2]."'>&nbsp;"._MB_SF_LENGTH.'';
65 65
 
66 66
     return $form;
67 67
 }
Please login to merge, or discard this patch.
blocks/faqs_recent.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         }
63 63
 
64 64
         $memberHandler = xoops_getHandler('member');
65
-        $users         = $memberHandler->getUsers(new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'), true);
65
+        $users         = $memberHandler->getUsers(new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'), true);
66 66
         foreach ($faqsObj as $iValue) {
67 67
             $faqs['categoryid']   = $iValue->categoryid();
68 68
             $faqs['question']     = $iValue->question($maxQuestionLength);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $block['lang_poster']   = _MB_SF_ANSWEREDBY;
85 85
         $block['lang_date']     = _MB_SF_DATE;
86 86
         $modulename             = $myts->htmlSpecialChars($smartModule->getVar('name'));
87
-        $block['lang_visitfaq'] = _MB_SF_VISITFAQ . ' ' . $modulename;
87
+        $block['lang_visitfaq'] = _MB_SF_VISITFAQ.' '.$modulename;
88 88
     }
89 89
 
90 90
     return $block;
@@ -100,30 +100,30 @@  discard block
 block discarded – undo
100 100
 
101 101
     $form = Smartfaq\Utility::createCategorySelect($options[0]);
102 102
 
103
-    $form .= '&nbsp;<br>' . _MB_SF_ORDER . "&nbsp;<select name='options[]'>";
103
+    $form .= '&nbsp;<br>'._MB_SF_ORDER."&nbsp;<select name='options[]'>";
104 104
 
105 105
     $form .= "<option value='datesub'";
106 106
     if ('datesub' === $options[1]) {
107 107
         $form .= ' selected';
108 108
     }
109
-    $form .= '>' . _MB_SF_DATE . "</option>\n";
109
+    $form .= '>'._MB_SF_DATE."</option>\n";
110 110
 
111 111
     $form .= "<option value='counter'";
112 112
     if ('counter' === $options[1]) {
113 113
         $form .= ' selected';
114 114
     }
115
-    $form .= '>' . _MB_SF_HITS . "</option>\n";
115
+    $form .= '>'._MB_SF_HITS."</option>\n";
116 116
 
117 117
     $form .= "<option value='weight'";
118 118
     if ('weight' === $options[1]) {
119 119
         $form .= ' selected';
120 120
     }
121
-    $form .= '>' . _MB_SF_WEIGHT . "</option>\n";
121
+    $form .= '>'._MB_SF_WEIGHT."</option>\n";
122 122
 
123 123
     $form .= "</select>\n";
124 124
 
125
-    $form .= '&nbsp;' . _MB_SF_DISP . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . "'>&nbsp;" . _MB_SF_FAQS . '';
126
-    $form .= '&nbsp;<br>' . _MB_SF_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[3] . "'>&nbsp;" . _MB_SF_LENGTH . '';
125
+    $form .= '&nbsp;'._MB_SF_DISP."&nbsp;<input type='text' name='options[]' value='".$options[2]."'>&nbsp;"._MB_SF_FAQS.'';
126
+    $form .= '&nbsp;<br>'._MB_SF_CHARS."&nbsp;<input type='text' name='options[]' value='".$options[3]."'>&nbsp;"._MB_SF_LENGTH.'';
127 127
 
128 128
     return $form;
129 129
 }
Please login to merge, or discard this patch.
blocks/faqs_context.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     $faqHandler = \XoopsModules\Smartfaq\Helper::getInstance()->getHandler('Faq');
29 29
 
30 30
     // creating the FAQ objects that belong to the selected category
31
-    $faqsObj   = $faqHandler->getContextualFaqs($limit);
31
+    $faqsObj = $faqHandler->getContextualFaqs($limit);
32 32
 
33 33
     if ($faqsObj) {
34 34
         foreach ($faqsObj as $iValue) {
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
  */
49 49
 function b_faqs_context_edit($options)
50 50
 {
51
-    $form = '' . _MB_SF_DISP . '&nbsp;';
52
-    $form .= "<input type='text' name='options[]' value='" . $options[0] . "'>&nbsp;" . _MB_SF_FAQS . '';
51
+    $form = ''._MB_SF_DISP.'&nbsp;';
52
+    $form .= "<input type='text' name='options[]' value='".$options[0]."'>&nbsp;"._MB_SF_FAQS.'';
53 53
 
54 54
     return $form;
55 55
 }
Please login to merge, or discard this patch.
class/SmartobjectDbupdater.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@
 block discarded – undo
61 61
         $query = sprintf('ALTER TABLE %s RENAME %s', $from, $to);
62 62
         $ret   = $xoopsDB->queryF($query);
63 63
         if (!$ret) {
64
-            echo '&nbsp;&nbsp;' . sprintf(_SDU_MSG_RENAME_TABLE_ERR, $from) . '<br>';
64
+            echo '&nbsp;&nbsp;'.sprintf(_SDU_MSG_RENAME_TABLE_ERR, $from).'<br>';
65 65
 
66 66
             return false;
67 67
         } else {
68
-            echo '&nbsp;&nbsp;' . sprintf(_SDU_MSG_RENAME_TABLE, $from, $to) . '<br>';
68
+            echo '&nbsp;&nbsp;'.sprintf(_SDU_MSG_RENAME_TABLE, $from, $to).'<br>';
69 69
 
70 70
             return true;
71 71
         }
Please login to merge, or discard this patch.
class/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     {
72 72
         $ret   = false;
73 73
         $db    = \XoopsDatabaseFactory::getDatabaseConnection();
74
-        $class = '\\XoopsModules\\' . ucfirst(strtolower(basename(dirname(__DIR__)))) . '\\' . $name . 'Handler';
74
+        $class = '\\XoopsModules\\'.ucfirst(strtolower(basename(dirname(__DIR__)))).'\\'.$name.'Handler';
75 75
         $ret   = new $class($db);
76 76
         return $ret;
77 77
     }
Please login to merge, or discard this patch.