Completed
Push — master ( 3e4ef4...d1a68a )
by Michael
01:42 queued 10s
created
class/contents.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      *
241 241
      * @param CriteriaElement|string sort order ('id', 'cid', 'title', 'publish', or 'weight') default: 'id'
242 242
      *
243
-     * @return mixed XoopsfaqContents object | false on failure
243
+     * @return boolean XoopsfaqContents object | false on failure
244 244
      */
245 245
     public function getObj($sort = 'id')
246 246
     {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      * XoopsfaqContentsHandler::getPublished()
266 266
      *
267 267
      * @param string $id
268
-     * @return mixed array of XoopsfaqContent objects | false on failure
268
+     * @return boolean array of XoopsfaqContent objects | false on failure
269 269
      */
270 270
     public function getPublished($id = '')
271 271
     {
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
  */
31 31
 class XoopsfaqContents extends XoopsObject
32 32
 {
33
-  /**
34
-   * @var string contains this modules directory name
35
-   */
33
+    /**
34
+     * @var string contains this modules directory name
35
+     */
36 36
     protected $dirname;
37 37
 
38 38
     /**
@@ -131,11 +131,11 @@  discard block
 block discarded – undo
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'),
134
-                                     'rows' => 25,
135
-                                     'cols' => '100%',
134
+                                        'rows' => 25,
135
+                                        'cols' => '100%',
136 136
                                     'width' => '100%',
137
-                                   'height' => '600px',
138
-                                     'name' => 'contents_contents',
137
+                                    'height' => '600px',
138
+                                        'name' => 'contents_contents',
139 139
                                     'value' => $this->getVar('contents_contents', 'e')
140 140
             );
141 141
             $contents_contents = new XoopsFormEditor('', 'contents_contents', $editorConfigs);
@@ -351,18 +351,18 @@  discard block
 block discarded – undo
351 351
         $buttons      = array('edit', 'delete');
352 352
 
353 353
         $ret = '<table class="outer width100 bnone pad3 marg5">'
354
-             . '  <thead>'
355
-             . '  <tr class="center">'
356
-             . '    <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ID . '</th>'
357
-             . '    <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ACTIVE . '</th>'
358
-             . '    <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_WEIGHT . '</th>'
359
-             . '    <th class="left">' . _AM_XOOPSFAQ_CONTENTS_TITLE . '</th>'
360
-             . '    <th class="left">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>'
361
-             . '    <th>' . _AM_XOOPSFAQ_CONTENTS_PUBLISH . '</th>'
362
-             . '    <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>'
363
-             . '  </tr>'
364
-             . '  </thead>'
365
-             . '  <tbody>';
354
+                . '  <thead>'
355
+                . '  <tr class="center">'
356
+                . '    <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ID . '</th>'
357
+                . '    <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ACTIVE . '</th>'
358
+                . '    <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_WEIGHT . '</th>'
359
+                . '    <th class="left">' . _AM_XOOPSFAQ_CONTENTS_TITLE . '</th>'
360
+                . '    <th class="left">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>'
361
+                . '    <th>' . _AM_XOOPSFAQ_CONTENTS_PUBLISH . '</th>'
362
+                . '    <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>'
363
+                . '  </tr>'
364
+                . '  </thead>'
365
+                . '  <tbody>';
366 366
         if ($objects['count'] > 0) {
367 367
             $tdClass = 0;
368 368
             /** @var \XoopsfaqContents $object */
@@ -373,22 +373,22 @@  discard block
 block discarded – undo
373 373
                 ++$tdClass;
374 374
                 $dispClass = ($tdClass % 1) ? 'even' : 'odd';
375 375
                 $ret .= '  <tr class="center middle">'
376
-                      . '    <td class="' . $dispClass . '">' . $object->getVar('contents_id') . '</td>'
377
-                      . '    <td class="' . $dispClass . '">' . $object->getActiveIcon() . '</td>'
378
-                      . '    <td class="' . $dispClass . '">' . $object->getVar('contents_weight') . '</td>'
379
-                      . '    <td class="' . $dispClass . ' left">' . $thisContentTitle . '</td>'
380
-                      . '    <td class="' . $dispClass . ' left">' . $thisCatTitle . '</td>'
381
-                      . '    <td class="' . $dispClass . '">' . $object->getPublished(_SHORTDATESTRING) . '</td>'
382
-                      . '    <td class="' . $dispClass . '">';
376
+                        . '    <td class="' . $dispClass . '">' . $object->getVar('contents_id') . '</td>'
377
+                        . '    <td class="' . $dispClass . '">' . $object->getActiveIcon() . '</td>'
378
+                        . '    <td class="' . $dispClass . '">' . $object->getVar('contents_weight') . '</td>'
379
+                        . '    <td class="' . $dispClass . ' left">' . $thisContentTitle . '</td>'
380
+                        . '    <td class="' . $dispClass . ' left">' . $thisCatTitle . '</td>'
381
+                        . '    <td class="' . $dispClass . '">' . $object->getPublished(_SHORTDATESTRING) . '</td>'
382
+                        . '    <td class="' . $dispClass . '">';
383 383
                 $ret .= XoopsfaqUtility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id'))
384
-                      . '</td>'
385
-                      . '  </tr>';
384
+                        . '</td>'
385
+                        . '  </tr>';
386 386
             }
387 387
         } else {
388 388
             $ret .= '  <tr class="center"><td colspan="7" class="even">' . _AM_XOOPSFAQ_NOLISTING . '</td></tr>';
389 389
         }
390 390
         $ret .= '  </tbody>'
391
-              . '</table>';
391
+                . '</table>';
392 392
         return $ret;
393 393
     }
394 394
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
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.
class/utility.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,8 +268,8 @@
 block discarded – undo
268 268
     /**
269 269
      * Render the icon links
270 270
      *
271
-     * @param array $icon_array contains operation=>icon_name as key=>value
272
-     * @param mixed $param      HTML parameter
271
+     * @param string[] $icon_array contains operation=>icon_name as key=>value
272
+     * @param string $param      HTML parameter
273 273
      * @param mixed $value      HTML parameter value to set
274 274
      * @param mixed $extra      are any additional HTML attributes desired for the <a> tag
275 275
      * @return string
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
  * @since::      File available since version 4.10
23 23
  */
24 24
 
25
- /**
26
-  * XoopsfaqUtility
27
-  *
28
-  * Static utility class to provide common functionality
29
-  *
30
-  */
25
+    /**
26
+     * XoopsfaqUtility
27
+     *
28
+     * Static utility class to provide common functionality
29
+     *
30
+     */
31 31
 class XoopsfaqUtility
32 32
 {
33 33
     /**
@@ -294,9 +294,9 @@  discard block
 block discarded – undo
294 294
                 }
295 295
                 $title = constant (htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName)));
296 296
                 $img = '<img src="' . Xmf\Module\Admin::iconUrl($iconName . '.' . $iconExt, '16') . '"'
297
-                     . ' title ="' . $title . '"'
298
-                     . ' alt = "' . $title . '"'
299
-                     . ' class="bnone middle">';
297
+                        . ' title ="' . $title . '"'
298
+                        . ' alt = "' . $title . '"'
299
+                        . ' class="bnone middle">';
300 300
                 $ret .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>';
301 301
             }
302 302
         }
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $currentVersion = strtolower(str_replace('XOOPS ', '', XOOPS_VERSION));
44 44
         $requiredVersion = strtolower($module->getInfo('min_xoops'));
45
-        $vc = version_compare ($currentVersion , $requiredVersion);
46
-        $success = ($vc>=0);
45
+        $vc = version_compare($currentVersion, $requiredVersion);
46
+        $success = ($vc >= 0);
47 47
         if (false === $success) {
48 48
             xoops_loadLanguage('admin', $module->dirname());
49 49
             $module->setErrors(sprintf(_AM_XOOPSFAQ_ERROR_BAD_XOOPS, $requiredVersion, $currentVersion));
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                 static::rrmdir($fObj->getPathname());
160 160
             }
161 161
         }
162
-        $iterator = null;   // clear iterator Obj to close file/directory
162
+        $iterator = null; // clear iterator Obj to close file/directory
163 163
         return rmdir($src); // remove the directory & return results
164 164
     }
165 165
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
                 static::rmove($fObj->getPathname(), $dest . '/' . $fObj->getFilename());
199 199
             }
200 200
         }
201
-        $iterator = null;   // clear iterator Obj to close file/directory
201
+        $iterator = null; // clear iterator Obj to close file/directory
202 202
         return rmdir($src); // remove the directory & return results
203 203
     }
204 204
 
@@ -232,11 +232,11 @@  discard block
 block discarded – undo
232 232
 
233 233
         // Open the source directory to read in files
234 234
         $iterator = new DirectoryIterator($src);
235
-        foreach($iterator as $fObj) {
236
-            if($fObj->isFile()) {
235
+        foreach ($iterator as $fObj) {
236
+            if ($fObj->isFile()) {
237 237
                 copy($fObj->getPathname(), $dest . '/' . $fObj->getFilename());
238
-            } else if(!$fObj->isDot() && $fObj->isDir()) {
239
-                static::rcopy($fObj->getPathname(), $dest . '/' . $fObj-getFilename());
238
+            } else if (!$fObj->isDot() && $fObj->isDir()) {
239
+                static::rcopy($fObj->getPathname(), $dest . '/' . $fObj - getFilename());
240 240
             }
241 241
         }
242 242
         return true;
@@ -257,19 +257,19 @@  discard block
 block discarded – undo
257 257
         xoops_loadLanguage('admin', $moduleDirName);
258 258
         $ret = '';
259 259
         if (null !== $value) {
260
-            foreach($icon_array as $_op => $icon) {
260
+            foreach ($icon_array as $_op => $icon) {
261 261
                 if (false === strpos($icon, '.')) {
262 262
                     $iconName = $icon;
263 263
                     $iconExt = 'png';
264 264
                 } else {
265
-                    $iconName = substr($icon, 0, strlen($icon)-strrchr($icon, '.'));
265
+                    $iconName = substr($icon, 0, strlen($icon) - strrchr($icon, '.'));
266 266
                     $iconExt  = substr(strrchr($icon, '.'), 1);
267 267
                 }
268 268
                 $url = (!is_numeric($_op)) ? $_op . '?' . $param . '=' . $value : xoops_getenv('PHP_SELF') . '?op=' . $iconName . '&amp;' . $param . '=' . $value;
269 269
                 if (null !== $extra) {
270 270
                     $url .= ' ' . $extra;
271 271
                 }
272
-                $title = constant (htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName)));
272
+                $title = constant(htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName)));
273 273
                 $img = '<img src="' . Xmf\Module\Admin::iconUrl($iconName . '.' . $iconExt, '16') . '"'
274 274
                      . ' title ="' . $title . '"'
275 275
                      . ' alt = "' . $title . '"'
Please login to merge, or discard this patch.
class/category.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
      *
119 119
      * @param string $sort order ('id', order', or 'title') - default: id
120 120
      *
121
-     * @return mixed XoopsfaqCategory | false on failure
121
+     * @return boolean XoopsfaqCategory | false on failure
122 122
      */
123 123
     public function getObj($sort = 'id')
124 124
     {
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -169,32 +169,32 @@
 block discarded – undo
169 169
         $buttons = array('edit', 'delete');
170 170
 
171 171
         $ret = '<table class="outer width100 bnone pad3 marg5">'
172
-             . '  <thead>'
173
-             . '  <tr class="xoopsCenter">'
174
-             . '    <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ORDER . '</th>'
175
-             . '    <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ID . '</th>'
176
-             . '    <th class="txtleft">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>'
177
-             . '    <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>'
178
-             . '  </tr>'
179
-             . '  </thead>'
180
-             . '  <tbody>';
172
+                . '  <thead>'
173
+                . '  <tr class="xoopsCenter">'
174
+                . '    <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ORDER . '</th>'
175
+                . '    <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ID . '</th>'
176
+                . '    <th class="txtleft">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>'
177
+                . '    <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>'
178
+                . '  </tr>'
179
+                . '  </thead>'
180
+                . '  <tbody>';
181 181
         if ($objects['count'] > 0) {
182 182
             /** @var XoopsObject $object */
183 183
             foreach ($objects['list'] as $object) {
184 184
                 $ret .= '  <tr class="xoopsCenter">'
185
-                      . '    <td class="even txtcenter">' . $object->getVar('category_order') . '</td>'
186
-                      . '    <td class="even txtcenter">' . $object->getVar('category_id') . '</td>'
187
-                      . '    <td class="even txtleft">' . $object->getVar('category_title') . '</td>'
188
-                      . '    <td class="even txtcenter">';
185
+                        . '    <td class="even txtcenter">' . $object->getVar('category_order') . '</td>'
186
+                        . '    <td class="even txtcenter">' . $object->getVar('category_id') . '</td>'
187
+                        . '    <td class="even txtleft">' . $object->getVar('category_title') . '</td>'
188
+                        . '    <td class="even txtcenter">';
189 189
                 $ret .= XoopsfaqUtility::renderIconLinks($buttons, 'category_id', $object->getVar('category_id'));
190 190
                 $ret .= '    </td>'
191
-                      . '  </tr>';
191
+                        . '  </tr>';
192 192
             }
193 193
         } else {
194 194
             $ret .= '  <tr class="txtcenter"><td colspan="4" class="even">' . _AM_XOOPSFAQ_NOLISTING . '</td></tr>';
195 195
         }
196 196
         $ret .= '  </tbody>'
197
-              . '</table>';
197
+                . '</table>';
198 198
         return $ret;
199 199
     }
200 200
 
Please login to merge, or discard this patch.
blocks/xoopsfaq_recent.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                 );
96 96
             }
97 97
             $block['faq'][] = array('title' => $faqTitle,
98
-                                      'ans' => $faqAns,
98
+                                        'ans' => $faqAns,
99 99
                                 'published' => $faqObj->getPublished(_SHORTDATESTRING)
100 100
             );
101 101
         }
@@ -136,15 +136,15 @@  discard block
 block discarded – undo
136 136
     $nchck = !empty($ychck) ? '' : ' checked';
137 137
 
138 138
     $form = '<div class="line140">'
139
-          . _MB_XOOPSFAQ_NUM_FAQS . '&nbsp;'
140
-          . '<input type="number" name="options[0]" value="' . $options[0] . '" style="width: 5em;" min="0" class="right"><br>'
141
-          . _MB_XOOPSFAQ_CHARS . '&nbsp;<input type="number" name="options[1]" value="' . $options[1] . '" style="width: 5em;" min="0" class="right">&nbsp;'
142
-          . _MB_XOOPSFAQ_LENGTH . '<br>' . _MB_XOOPSFAQ_SHOW_DATE . '&nbsp;'
143
-          . '<label for="r0">' . _NO . '</label>'
144
-          . '<input type="radio" name="options[2]" id="r0" value="0"' . $nchck . '>&nbsp;'
145
-          . '<label for="r1">' . _YES . '</label>'
146
-          . '<input type="radio" name="options[2]" id="r1" value="1"' . $ychck . '>'
147
-          . '<br><br>' . _MB_XOOPSFAQ_ALL_CATS_INTRO . '&nbsp;&nbsp;' . $selectCat
148
-          . '</div>';
139
+            . _MB_XOOPSFAQ_NUM_FAQS . '&nbsp;'
140
+            . '<input type="number" name="options[0]" value="' . $options[0] . '" style="width: 5em;" min="0" class="right"><br>'
141
+            . _MB_XOOPSFAQ_CHARS . '&nbsp;<input type="number" name="options[1]" value="' . $options[1] . '" style="width: 5em;" min="0" class="right">&nbsp;'
142
+            . _MB_XOOPSFAQ_LENGTH . '<br>' . _MB_XOOPSFAQ_SHOW_DATE . '&nbsp;'
143
+            . '<label for="r0">' . _NO . '</label>'
144
+            . '<input type="radio" name="options[2]" id="r0" value="0"' . $nchck . '>&nbsp;'
145
+            . '<label for="r1">' . _YES . '</label>'
146
+            . '<input type="radio" name="options[2]" id="r1" value="1"' . $ychck . '>'
147
+            . '<br><br>' . _MB_XOOPSFAQ_ALL_CATS_INTRO . '&nbsp;&nbsp;' . $selectCat
148
+            . '</div>';
149 149
     return $form;
150 150
 }
Please login to merge, or discard this 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.
admin/menu.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,23 +28,23 @@
 block discarded – undo
28 28
 
29 29
 $adminmenu = array(
30 30
     array('title' => _MI_XOOPSFAQ_MENU_ADMIN_INDEX,
31
-           'link' => 'admin/index.php',
32
-           'desc' => _MI_XOOPSFAQ_ADMIN_INDEX_DESC,
33
-           'icon' => Admin::menuIconPath('home.png')
31
+            'link' => 'admin/index.php',
32
+            'desc' => _MI_XOOPSFAQ_ADMIN_INDEX_DESC,
33
+            'icon' => Admin::menuIconPath('home.png')
34 34
     ),
35 35
     array('title' => _MI_XOOPSFAQ_MENU_ADMIN_CATEGORY,
36
-           'link' => 'admin/category.php',
37
-           'desc' => _MI_XOOPSFAQ_ADMIN_CATEGORY_DESC,
38
-           'icon' => Admin::menuIconPath('category.png')
36
+            'link' => 'admin/category.php',
37
+            'desc' => _MI_XOOPSFAQ_ADMIN_CATEGORY_DESC,
38
+            'icon' => Admin::menuIconPath('category.png')
39 39
     ),
40 40
     array('title' => _MI_XOOPSFAQ_MENU_ADMIN_FAQ,
41
-           'link' => 'admin/main.php',
42
-           'desc' => _MI_XOOPSFAQ_ADMIN_FAQ_DESC,
43
-           'icon' => Admin::menuIconPath('faq.png')
41
+            'link' => 'admin/main.php',
42
+            'desc' => _MI_XOOPSFAQ_ADMIN_FAQ_DESC,
43
+            'icon' => Admin::menuIconPath('faq.png')
44 44
     ),
45 45
     array('title' => _MI_XOOPSFAQ_MENU_ADMIN_ABOUT,
46
-           'link' => 'admin/about.php',
47
-           'desc' => _MI_XOOPSFAQ_ADMIN_ABOUT_DESC,
48
-           'icon' => Admin::menuIconPath('about.png')
46
+            'link' => 'admin/about.php',
47
+            'desc' => _MI_XOOPSFAQ_ADMIN_ABOUT_DESC,
48
+            'icon' => Admin::menuIconPath('about.png')
49 49
     )
50 50
 );
Please login to merge, or discard this patch.
include/rss.inc.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     /** @var XoopsObject $contentObj */
60 60
     foreach ($contentObjs as $contentObj) {
61 61
         $retVal[] = array ('image' => '',
62
-                           'title' => $contentObj->getVar('contents_title'),
62
+                            'title' => $contentObj->getVar('contents_title'),
63 63
                             'link' => $contentObj->getVar('contents_contents'),
64 64
                             'time' => $contentObj->getVar('contents_publish'),
65 65
                             'desc' => '',
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
     /** @var XoopsObject $contentObj */
60 60
     foreach ($contentObjs as $contentObj) {
61
-        $retVal[] = array ('image' => '',
61
+        $retVal[] = array('image' => '',
62 62
                            'title' => $contentObj->getVar('contents_title'),
63 63
                             'link' => $contentObj->getVar('contents_contents'),
64 64
                             'time' => $contentObj->getVar('contents_publish'),
Please login to merge, or discard this patch.
index.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@
 block discarded – undo
71 71
             /** @var XoopsObject $obj */
72 72
             foreach ($contentsObj['list'] as $obj) {
73 73
                 $question = array('id' => $obj->getVar('contents_id'),
74
-                               'title' => $obj->getVar('contents_title'),
75
-                              'answer' => $obj->getVar('contents_contents')
74
+                                'title' => $obj->getVar('contents_title'),
75
+                                'answer' => $obj->getVar('contents_contents')
76 76
                 );
77 77
                 $GLOBALS['xoopsTpl']->append('questions', $question);
78 78
                 $bodyWords .= ' ' . $obj->getVar('contents_title') . ' ' . $obj->getVar('contents_contents');
Please login to merge, or discard this patch.