Passed
Pull Request — master (#11)
by Michael
23:53 queued 11:52
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/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.
class/ContentsHandler.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -163,32 +163,32 @@  discard block
 block discarded – undo
163 163
         $buttons = ['edit', 'delete'];
164 164
 
165 165
         $ret = '<table class="outer width100 bnone pad3 marg5">'
166
-               . '  <thead>'
167
-               . '  <tr class="center">'
168
-               . '    <th class="width5">'
169
-               . \_AM_XOOPSFAQ_CONTENTS_ID
170
-               . '</th>'
171
-               . '    <th class="width5">'
172
-               . \_AM_XOOPSFAQ_CONTENTS_ACTIVE
173
-               . '</th>'
174
-               . '    <th class="width5">'
175
-               . \_AM_XOOPSFAQ_CONTENTS_WEIGHT
176
-               . '</th>'
177
-               . '    <th class="left">'
178
-               . \_AM_XOOPSFAQ_CONTENTS_TITLE
179
-               . '</th>'
180
-               . '    <th class="left">'
181
-               . \_AM_XOOPSFAQ_CATEGORY_TITLE
182
-               . '</th>'
183
-               . '    <th>'
184
-               . \_AM_XOOPSFAQ_CONTENTS_PUBLISH
185
-               . '</th>'
186
-               . '    <th class="width20">'
187
-               . \_AM_XOOPSFAQ_ACTIONS
188
-               . '</th>'
189
-               . '  </tr>'
190
-               . '  </thead>'
191
-               . '  <tbody>';
166
+                . '  <thead>'
167
+                . '  <tr class="center">'
168
+                . '    <th class="width5">'
169
+                . \_AM_XOOPSFAQ_CONTENTS_ID
170
+                . '</th>'
171
+                . '    <th class="width5">'
172
+                . \_AM_XOOPSFAQ_CONTENTS_ACTIVE
173
+                . '</th>'
174
+                . '    <th class="width5">'
175
+                . \_AM_XOOPSFAQ_CONTENTS_WEIGHT
176
+                . '</th>'
177
+                . '    <th class="left">'
178
+                . \_AM_XOOPSFAQ_CONTENTS_TITLE
179
+                . '</th>'
180
+                . '    <th class="left">'
181
+                . \_AM_XOOPSFAQ_CATEGORY_TITLE
182
+                . '</th>'
183
+                . '    <th>'
184
+                . \_AM_XOOPSFAQ_CONTENTS_PUBLISH
185
+                . '</th>'
186
+                . '    <th class="width20">'
187
+                . \_AM_XOOPSFAQ_ACTIONS
188
+                . '</th>'
189
+                . '  </tr>'
190
+                . '  </thead>'
191
+                . '  <tbody>';
192 192
         if (\is_array($objects) && ($objects['count'] > 0)) {
193 193
             $tdClass = 0;
194 194
             /** @var \Contents $object */
@@ -199,39 +199,39 @@  discard block
 block discarded – undo
199 199
                 ++$tdClass;
200 200
                 $dispClass = ($tdClass % 1) ? 'even' : 'odd';
201 201
                 $ret       .= '  <tr class="center middle">'
202
-                              . '    <td class="'
203
-                              . $dispClass
204
-                              . '">'
205
-                              . $object->getVar('contents_id')
206
-                              . '</td>'
207
-                              . '    <td class="'
208
-                              . $dispClass
209
-                              . '">'
210
-                              . $object->getActiveIcon()
211
-                              . '</td>'
212
-                              . '    <td class="'
213
-                              . $dispClass
214
-                              . '">'
215
-                              . $object->getVar('contents_weight')
216
-                              . '</td>'
217
-                              . '    <td class="'
218
-                              . $dispClass
219
-                              . ' left">'
220
-                              . $thisContentTitle
221
-                              . '</td>'
222
-                              . '    <td class="'
223
-                              . $dispClass
224
-                              . ' left">'
225
-                              . $thisCatTitle
226
-                              . '</td>'
227
-                              . '    <td class="'
228
-                              . $dispClass
229
-                              . '">'
230
-                              . $object->getPublished(\_SHORTDATESTRING)
231
-                              . '</td>'
232
-                              . '    <td class="'
233
-                              . $dispClass
234
-                              . '">';
202
+                                . '    <td class="'
203
+                                . $dispClass
204
+                                . '">'
205
+                                . $object->getVar('contents_id')
206
+                                . '</td>'
207
+                                . '    <td class="'
208
+                                . $dispClass
209
+                                . '">'
210
+                                . $object->getActiveIcon()
211
+                                . '</td>'
212
+                                . '    <td class="'
213
+                                . $dispClass
214
+                                . '">'
215
+                                . $object->getVar('contents_weight')
216
+                                . '</td>'
217
+                                . '    <td class="'
218
+                                . $dispClass
219
+                                . ' left">'
220
+                                . $thisContentTitle
221
+                                . '</td>'
222
+                                . '    <td class="'
223
+                                . $dispClass
224
+                                . ' left">'
225
+                                . $thisCatTitle
226
+                                . '</td>'
227
+                                . '    <td class="'
228
+                                . $dispClass
229
+                                . '">'
230
+                                . $object->getPublished(\_SHORTDATESTRING)
231
+                                . '</td>'
232
+                                . '    <td class="'
233
+                                . $dispClass
234
+                                . '">';
235 235
                 $ret       .= Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) . '</td>' . '  </tr>';
236 236
             }
237 237
         } else {
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
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         //$pathModIcon16 = XOOPS_URL . '/modules/' . $moduleDirName . '/' . $helper->getConfig('modicons16');
71 71
         $pathModIcon16 = $helper->url(
72 72
             $helper->getModule()
73
-                   ->getInfo('modicons16')
73
+                    ->getInfo('modicons16')
74 74
         );
75 75
 
76 76
         $selectView = '<form name="form_switch" id="form_switch" action="' . Request::getString('REQUEST_URI', '', 'SERVER') . '" method="post"><span style="font-weight: bold;">' . $text . '</span>';
Please login to merge, or discard this patch.