Completed
Push — master ( f47147...0adc58 )
by
unknown
02:15
created
blocks/xoopsfaq_recent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     $moduleDirName = basename(dirname(__DIR__));
40 40
     xoops_load('constants', $moduleDirName);
41 41
 
42
-    $myts         = MyTextSanitizer::getInstance();
42
+    $myts = MyTextSanitizer::getInstance();
43 43
 
44 44
     /** @var XoopsfaqCategoryHandler $xfCatHandler */
45 45
     /** @var XoopsfaqContentsHandler $xfFaqHandler */
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             $faqTitle = $myts->displayTarea($faqObj->getVar('contents_title'));
85 85
             if (!empty($options[1])) {
86 86
                 $txtAns   = strip_tags($faqObj->getVar('contents_contents')); // get rid of html for block
87
-                $faqAns   = $myts->displayTarea(xoops_substr($txtAns, 0, $options[1]), 0, 0 ,0 ,0 ,0);
87
+                $faqAns   = $myts->displayTarea(xoops_substr($txtAns, 0, $options[1]), 0, 0, 0, 0, 0);
88 88
             } else {
89 89
                 $faqAns   = $myts->displayTarea($faqObj->getVar('contents_contents'),
90 90
                             (int)$faqObj->getVar('dohtml'),
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     $formSelect->addOptionArray($optionArray);
131 131
     $selOptions = (false === strpos($options[3], ',')) ? $options[3] : explode(',', $options[3]);
132 132
     $formSelect->setValue($selOptions);
133
-    $selectCat   = $formSelect->render();
133
+    $selectCat = $formSelect->render();
134 134
 
135 135
     $ychck = (isset($options[2]) && ($options[2] > 0)) ? ' checked' : '';
136 136
     $nchck = !empty($ychck) ? '' : ' checked';
Please login to merge, or discard this patch.
class/contents.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,14 +95,14 @@  discard block
 block discarded – undo
95 95
 
96 96
         include_once $GLOBALS['xoops']->path('/class/xoopsformloader.php');
97 97
 
98
-        $caption = ($this->isNew()) ? _AM_XOOPSFAQ_CREATE_NEW: sprintf(_AM_XOOPSFAQ_MODIFY_ITEM, $this->getVar('contents_title'));
98
+        $caption = ($this->isNew()) ? _AM_XOOPSFAQ_CREATE_NEW : sprintf(_AM_XOOPSFAQ_MODIFY_ITEM, $this->getVar('contents_title'));
99 99
         $form = new XoopsThemeForm($caption, 'content', $_SERVER['REQUEST_URI'], 'post', true);
100 100
 //        $form->addElement(new XoopsFormHiddenToken());
101 101
         $form->addElement(new xoopsFormHidden('op', 'save'));
102 102
         $form->addElement(new xoopsFormHidden('contents_id', $this->getVar('contents_id', 'e')));
103 103
 
104 104
         // Active
105
-        $contents_active = new XoopsFormRadioYN(_AM_XOOPSFAQ_E_CONTENTS_ACTIVE, 'contents_active', $this->getVar('contents_active', 'e'),   ' ' . _YES . '', ' ' . _NO . '' );
105
+        $contents_active = new XoopsFormRadioYN(_AM_XOOPSFAQ_E_CONTENTS_ACTIVE, 'contents_active', $this->getVar('contents_active', 'e'), ' ' . _YES . '', ' ' . _NO . '');
106 106
         $contents_active->setDescription(_AM_XOOPSFAQ_E_CONTENTS_ACTIVE_DESC);
107 107
         $form->addElement($contents_active, false);
108 108
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $form->addElement($contents_weight, false);
128 128
 
129 129
         // Editor
130
-        $options_tray  = new XoopsFormElementTray(_AM_XOOPSFAQ_E_CONTENTS_CONTENT, '<br>');
130
+        $options_tray = new XoopsFormElementTray(_AM_XOOPSFAQ_E_CONTENTS_CONTENT, '<br>');
131 131
         if (class_exists('XoopsFormEditor')) {
132 132
             // $editorConfigs = array('editor' => $GLOBALS['xoopsConfig']['general_editor'],
133 133
             $editorConfigs = array('editor' => $xfHelper->getConfig('use_wysiwyg', 'dhtmltextarea'),
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
         $ret = array();
300 300
         $sql  = 'SELECT contents_cid ';
301 301
         $sql .= 'FROM `' . $this->table . '` ';
302
-        $sql .= 'WHERE (contents_active =\''. XoopsfaqConstants::ACTIVE . '\') ';
302
+        $sql .= 'WHERE (contents_active =\'' . XoopsfaqConstants::ACTIVE . '\') ';
303 303
         $sql .= 'GROUP BY contents_cid';
304 304
         if (!$result = $this->db->query($sql)) {
305 305
             return $ret;
Please login to merge, or discard this patch.