Passed
Pull Request — master (#11)
by Michael
11:08
created
blocks/xoopsfaq_category.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -110,16 +110,16 @@
 block discarded – undo
110 110
     $ychck = (isset($options[0]) && ($options[0] > 0)) ? ' checked' : '';
111 111
     $nchck = !empty($ychck) ? '' : ' checked';
112 112
     $form  = '<div class="line140">'
113
-             . _MB_XOOPSFAQ_SHOW_EMPTY
114
-             . '&nbsp;<label for="r0">'
115
-             . _NO
116
-             . '</label><input type="radio" name="options[0]" id="r0" value="0"'
117
-             . $nchck
118
-             . '>&nbsp;<label for="r1">'
119
-             . _YES
120
-             . '</label><input type="radio" name="options[0]" id="r1" value="1"'
121
-             . $ychck
122
-             . '></div>'
123
-             . "\n";
113
+                . _MB_XOOPSFAQ_SHOW_EMPTY
114
+                . '&nbsp;<label for="r0">'
115
+                . _NO
116
+                . '</label><input type="radio" name="options[0]" id="r0" value="0"'
117
+                . $nchck
118
+                . '>&nbsp;<label for="r1">'
119
+                . _YES
120
+                . '</label><input type="radio" name="options[0]" id="r1" value="1"'
121
+                . $ychck
122
+                . '></div>'
123
+                . "\n";
124 124
     return $form;
125 125
 }
Please login to merge, or discard this patch.
class/Common/SysUtility.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
             $tempTable = $GLOBALS['xoopsDB']->fetchArray($result, \MYSQLI_ASSOC);
168 168
         }
169 169
 
170
-         if (!$tempTable) {
170
+            if (!$tempTable) {
171 171
             \trigger_error($GLOBALS['xoopsDB']->error());
172 172
         }
173 173
         // set the auto-incremented id's value to blank.
Please login to merge, or discard this patch.
class/ContentsHandler.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -164,32 +164,32 @@  discard block
 block discarded – undo
164 164
         $buttons = ['edit', 'delete'];
165 165
 
166 166
         $ret = '<table class="outer width100 bnone pad3 marg5">'
167
-               . '  <thead>'
168
-               . '  <tr class="center">'
169
-               . '    <th class="width5">'
170
-               . \_AM_XOOPSFAQ_CONTENTS_ID
171
-               . '</th>'
172
-               . '    <th class="width5">'
173
-               . \_AM_XOOPSFAQ_CONTENTS_ACTIVE
174
-               . '</th>'
175
-               . '    <th class="width5">'
176
-               . \_AM_XOOPSFAQ_CONTENTS_WEIGHT
177
-               . '</th>'
178
-               . '    <th class="left">'
179
-               . \_AM_XOOPSFAQ_CONTENTS_TITLE
180
-               . '</th>'
181
-               . '    <th class="left">'
182
-               . \_AM_XOOPSFAQ_CATEGORY_TITLE
183
-               . '</th>'
184
-               . '    <th>'
185
-               . \_AM_XOOPSFAQ_CONTENTS_PUBLISH
186
-               . '</th>'
187
-               . '    <th class="width20">'
188
-               . \_AM_XOOPSFAQ_ACTIONS
189
-               . '</th>'
190
-               . '  </tr>'
191
-               . '  </thead>'
192
-               . '  <tbody>';
167
+                . '  <thead>'
168
+                . '  <tr class="center">'
169
+                . '    <th class="width5">'
170
+                . \_AM_XOOPSFAQ_CONTENTS_ID
171
+                . '</th>'
172
+                . '    <th class="width5">'
173
+                . \_AM_XOOPSFAQ_CONTENTS_ACTIVE
174
+                . '</th>'
175
+                . '    <th class="width5">'
176
+                . \_AM_XOOPSFAQ_CONTENTS_WEIGHT
177
+                . '</th>'
178
+                . '    <th class="left">'
179
+                . \_AM_XOOPSFAQ_CONTENTS_TITLE
180
+                . '</th>'
181
+                . '    <th class="left">'
182
+                . \_AM_XOOPSFAQ_CATEGORY_TITLE
183
+                . '</th>'
184
+                . '    <th>'
185
+                . \_AM_XOOPSFAQ_CONTENTS_PUBLISH
186
+                . '</th>'
187
+                . '    <th class="width20">'
188
+                . \_AM_XOOPSFAQ_ACTIONS
189
+                . '</th>'
190
+                . '  </tr>'
191
+                . '  </thead>'
192
+                . '  <tbody>';
193 193
         if ($objects['count'] > 0) {
194 194
             $tdClass = 0;
195 195
             /** @var \Contents $object */
@@ -200,39 +200,39 @@  discard block
 block discarded – undo
200 200
                 ++$tdClass;
201 201
                 $dispClass = ($tdClass % 1) ? 'even' : 'odd';
202 202
                 $ret       .= '  <tr class="center middle">'
203
-                              . '    <td class="'
204
-                              . $dispClass
205
-                              . '">'
206
-                              . $object->getVar('contents_id')
207
-                              . '</td>'
208
-                              . '    <td class="'
209
-                              . $dispClass
210
-                              . '">'
211
-                              . $object->getActiveIcon()
212
-                              . '</td>'
213
-                              . '    <td class="'
214
-                              . $dispClass
215
-                              . '">'
216
-                              . $object->getVar('contents_weight')
217
-                              . '</td>'
218
-                              . '    <td class="'
219
-                              . $dispClass
220
-                              . ' left">'
221
-                              . $thisContentTitle
222
-                              . '</td>'
223
-                              . '    <td class="'
224
-                              . $dispClass
225
-                              . ' left">'
226
-                              . $thisCatTitle
227
-                              . '</td>'
228
-                              . '    <td class="'
229
-                              . $dispClass
230
-                              . '">'
231
-                              . $object->getPublished(_SHORTDATESTRING)
232
-                              . '</td>'
233
-                              . '    <td class="'
234
-                              . $dispClass
235
-                              . '">';
203
+                                . '    <td class="'
204
+                                . $dispClass
205
+                                . '">'
206
+                                . $object->getVar('contents_id')
207
+                                . '</td>'
208
+                                . '    <td class="'
209
+                                . $dispClass
210
+                                . '">'
211
+                                . $object->getActiveIcon()
212
+                                . '</td>'
213
+                                . '    <td class="'
214
+                                . $dispClass
215
+                                . '">'
216
+                                . $object->getVar('contents_weight')
217
+                                . '</td>'
218
+                                . '    <td class="'
219
+                                . $dispClass
220
+                                . ' left">'
221
+                                . $thisContentTitle
222
+                                . '</td>'
223
+                                . '    <td class="'
224
+                                . $dispClass
225
+                                . ' left">'
226
+                                . $thisCatTitle
227
+                                . '</td>'
228
+                                . '    <td class="'
229
+                                . $dispClass
230
+                                . '">'
231
+                                . $object->getPublished(_SHORTDATESTRING)
232
+                                . '</td>'
233
+                                . '    <td class="'
234
+                                . $dispClass
235
+                                . '">';
236 236
                 $ret       .= Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) . '</td>' . '  </tr>';
237 237
             }
238 238
         } else {
Please login to merge, or discard this patch.
class/CategoryHandler.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -101,23 +101,23 @@
 block discarded – undo
101 101
         $buttons = ['edit', 'delete'];
102 102
 
103 103
         $ret = '<table class="outer width100 bnone pad3 marg5">'
104
-               . '  <thead>'
105
-               . '  <tr class="xoopsCenter">'
106
-               . '    <th class="width5">'
107
-               . \_AM_XOOPSFAQ_CATEGORY_ORDER
108
-               . '</th>'
109
-               . '    <th class="width5">'
110
-               . \_AM_XOOPSFAQ_CATEGORY_ID
111
-               . '</th>'
112
-               . '    <th class="txtleft">'
113
-               . \_AM_XOOPSFAQ_CATEGORY_TITLE
114
-               . '</th>'
115
-               . '    <th class="width20">'
116
-               . \_AM_XOOPSFAQ_ACTIONS
117
-               . '</th>'
118
-               . '  </tr>'
119
-               . '  </thead>'
120
-               . '  <tbody>';
104
+                . '  <thead>'
105
+                . '  <tr class="xoopsCenter">'
106
+                . '    <th class="width5">'
107
+                . \_AM_XOOPSFAQ_CATEGORY_ORDER
108
+                . '</th>'
109
+                . '    <th class="width5">'
110
+                . \_AM_XOOPSFAQ_CATEGORY_ID
111
+                . '</th>'
112
+                . '    <th class="txtleft">'
113
+                . \_AM_XOOPSFAQ_CATEGORY_TITLE
114
+                . '</th>'
115
+                . '    <th class="width20">'
116
+                . \_AM_XOOPSFAQ_ACTIONS
117
+                . '</th>'
118
+                . '  </tr>'
119
+                . '  </thead>'
120
+                . '  <tbody>';
121 121
         if ($objects['count'] > 0) {
122 122
             /** @var XoopsObject $object */
123 123
             foreach ($objects['list'] as $object) {
Please login to merge, or discard this patch.