Passed
Push — master ( eae254...f7b1d8 )
by Michael
04:10 queued 57s
created
class/Common/Blocksadmin.php 1 patch
Indentation   +89 added lines, -89 removed lines patch added patch discarded remove patch
@@ -93,30 +93,30 @@  discard block
 block discarded – undo
93 93
         echo $GLOBALS['xoopsSecurity']->getTokenHTML();
94 94
         echo "<table width='100%' class='outer' cellpadding='4' cellspacing='1'>
95 95
         <tr valign='middle'><th align='center'>"
96
-             . \_AM_SYSTEM_BLOCKS_TITLE
97
-             . "</th><th align='center' nowrap='nowrap'>"
98
-             . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'SIDE')
99
-             . '<br>'
100
-             . _LEFT
101
-             . '-'
102
-             . _CENTER
103
-             . '-'
104
-             . _RIGHT
105
-             . "</th><th align='center'>"
106
-             . \constant(
107
-                 'CO_' . $this->moduleDirNameUpper . '_' . 'WEIGHT'
108
-             )
109
-             . "</th><th align='center'>"
110
-             . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'VISIBLE')
111
-             . "</th><th align='center'>"
112
-             . \_AM_SYSTEM_BLOCKS_VISIBLEIN
113
-             . "</th><th align='center'>"
114
-             . \_AM_SYSTEM_ADGS
115
-             . "</th><th align='center'>"
116
-             . \_AM_SYSTEM_BLOCKS_BCACHETIME
117
-             . "</th><th align='center'>"
118
-             . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'ACTION')
119
-             . '</th></tr>
96
+                . \_AM_SYSTEM_BLOCKS_TITLE
97
+                . "</th><th align='center' nowrap='nowrap'>"
98
+                . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'SIDE')
99
+                . '<br>'
100
+                . _LEFT
101
+                . '-'
102
+                . _CENTER
103
+                . '-'
104
+                . _RIGHT
105
+                . "</th><th align='center'>"
106
+                . \constant(
107
+                    'CO_' . $this->moduleDirNameUpper . '_' . 'WEIGHT'
108
+                )
109
+                . "</th><th align='center'>"
110
+                . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'VISIBLE')
111
+                . "</th><th align='center'>"
112
+                . \_AM_SYSTEM_BLOCKS_VISIBLEIN
113
+                . "</th><th align='center'>"
114
+                . \_AM_SYSTEM_ADGS
115
+                . "</th><th align='center'>"
116
+                . \_AM_SYSTEM_BLOCKS_BCACHETIME
117
+                . "</th><th align='center'>"
118
+                . \constant('CO_' . $this->moduleDirNameUpper . '_' . 'ACTION')
119
+                . '</th></tr>
120 120
         ';
121 121
         $blockArray = \XoopsBlock::getByModule($xoopsModule->mid());
122 122
         $blockCount = \count($blockArray);
@@ -204,69 +204,69 @@  discard block
 block discarded – undo
204 204
             }
205 205
             $name = $i->getVar('name');
206 206
             echo "<tr valign='top'><td class='$class' align='center'><input type='text' name='title["
207
-                 . $i->getVar('bid')
208
-                 . "]' value='"
209
-                 . $title
210
-                 . "'></td><td class='$class' align='center' nowrap='nowrap'>
207
+                    . $i->getVar('bid')
208
+                    . "]' value='"
209
+                    . $title
210
+                    . "'></td><td class='$class' align='center' nowrap='nowrap'>
211 211
                     <div align='center' >
212 212
                     <input type='radio' name='side["
213
-                 . $i->getVar('bid')
214
-                 . "]' value='"
215
-                 . \XOOPS_CENTERBLOCK_LEFT
216
-                 . "'$ssel2>
213
+                    . $i->getVar('bid')
214
+                    . "]' value='"
215
+                    . \XOOPS_CENTERBLOCK_LEFT
216
+                    . "'$ssel2>
217 217
                         <input type='radio' name='side["
218
-                 . $i->getVar('bid')
219
-                 . "]' value='"
220
-                 . \XOOPS_CENTERBLOCK_CENTER
221
-                 . "'$ssel3>
218
+                    . $i->getVar('bid')
219
+                    . "]' value='"
220
+                    . \XOOPS_CENTERBLOCK_CENTER
221
+                    . "'$ssel3>
222 222
                     <input type='radio' name='side["
223
-                 . $i->getVar('bid')
224
-                 . "]' value='"
225
-                 . \XOOPS_CENTERBLOCK_RIGHT
226
-                 . "'$ssel4>
223
+                    . $i->getVar('bid')
224
+                    . "]' value='"
225
+                    . \XOOPS_CENTERBLOCK_RIGHT
226
+                    . "'$ssel4>
227 227
                     </div>
228 228
                     <div>
229 229
                         <span style='float:right;'><input type='radio' name='side["
230
-                 . $i->getVar('bid')
231
-                 . "]' value='"
232
-                 . \XOOPS_SIDEBLOCK_RIGHT
233
-                 . "'$ssel1></span>
230
+                    . $i->getVar('bid')
231
+                    . "]' value='"
232
+                    . \XOOPS_SIDEBLOCK_RIGHT
233
+                    . "'$ssel1></span>
234 234
                     <div align='left'><input type='radio' name='side["
235
-                 . $i->getVar('bid')
236
-                 . "]' value='"
237
-                 . \XOOPS_SIDEBLOCK_LEFT
238
-                 . "'$ssel0></div>
235
+                    . $i->getVar('bid')
236
+                    . "]' value='"
237
+                    . \XOOPS_SIDEBLOCK_LEFT
238
+                    . "'$ssel0></div>
239 239
                     </div>
240 240
                     <div align='center'>
241 241
                     <input type='radio' name='side["
242
-                 . $i->getVar('bid')
243
-                 . "]' value='"
244
-                 . \XOOPS_CENTERBLOCK_BOTTOMLEFT
245
-                 . "'$ssel5>
242
+                    . $i->getVar('bid')
243
+                    . "]' value='"
244
+                    . \XOOPS_CENTERBLOCK_BOTTOMLEFT
245
+                    . "'$ssel5>
246 246
                         <input type='radio' name='side["
247
-                 . $i->getVar('bid')
248
-                 . "]' value='"
249
-                 . \XOOPS_CENTERBLOCK_BOTTOM
250
-                 . "'$ssel7>
247
+                    . $i->getVar('bid')
248
+                    . "]' value='"
249
+                    . \XOOPS_CENTERBLOCK_BOTTOM
250
+                    . "'$ssel7>
251 251
                     <input type='radio' name='side["
252
-                 . $i->getVar('bid')
253
-                 . "]' value='"
254
-                 . \XOOPS_CENTERBLOCK_BOTTOMRIGHT
255
-                 . "'$ssel6>
252
+                    . $i->getVar('bid')
253
+                    . "]' value='"
254
+                    . \XOOPS_CENTERBLOCK_BOTTOMRIGHT
255
+                    . "'$ssel6>
256 256
                     </div>
257 257
                 </td><td class='$class' align='center'><input type='text' name='weight["
258
-                 . $i->getVar('bid')
259
-                 . "]' value='"
260
-                 . $i->getVar('weight')
261
-                 . "' size='5' maxlength='5'></td><td class='$class' align='center' nowrap><input type='radio' name='visible["
262
-                 . $i->getVar('bid')
263
-                 . "]' value='1'$sel1>"
264
-                 . _YES
265
-                 . "&nbsp;<input type='radio' name='visible["
266
-                 . $i->getVar('bid')
267
-                 . "]' value='0'$sel0>"
268
-                 . _NO
269
-                 . '</td>';
258
+                    . $i->getVar('bid')
259
+                    . "]' value='"
260
+                    . $i->getVar('weight')
261
+                    . "' size='5' maxlength='5'></td><td class='$class' align='center' nowrap><input type='radio' name='visible["
262
+                    . $i->getVar('bid')
263
+                    . "]' value='1'$sel1>"
264
+                    . _YES
265
+                    . "&nbsp;<input type='radio' name='visible["
266
+                    . $i->getVar('bid')
267
+                    . "]' value='0'$sel0>"
268
+                    . _NO
269
+                    . '</td>';
270 270
 
271 271
             echo "<td class='$class' align='center'><select size='5' name='bmodule[" . $i->getVar('bid') . "][]' id='bmodule[" . $i->getVar('bid') . "][]' multiple='multiple'>";
272 272
             foreach ($moduleList as $k => $v) {
@@ -657,11 +657,11 @@  discard block
 block discarded – undo
657 657
             $form->addElement($textarea, true);
658 658
             $ctypeSelect = new \XoopsFormSelect(\_AM_SYSTEM_BLOCKS_CTYPE, 'bctype', $block['ctype']);
659 659
             $ctypeSelect->addOptionArray([
660
-                                             'H' => \_AM_SYSTEM_BLOCKS_HTML,
661
-                                             'P' => \_AM_SYSTEM_BLOCKS_PHP,
662
-                                             'S' => \_AM_SYSTEM_BLOCKS_AFWSMILE,
663
-                                             'T' => \_AM_SYSTEM_BLOCKS_AFNOSMILE,
664
-                                         ]);
660
+                                                'H' => \_AM_SYSTEM_BLOCKS_HTML,
661
+                                                'P' => \_AM_SYSTEM_BLOCKS_PHP,
662
+                                                'S' => \_AM_SYSTEM_BLOCKS_AFWSMILE,
663
+                                                'T' => \_AM_SYSTEM_BLOCKS_AFNOSMILE,
664
+                                            ]);
665 665
             $form->addElement($ctypeSelect);
666 666
         }
667 667
         else {
@@ -685,18 +685,18 @@  discard block
 block discarded – undo
685 685
         }
686 686
         $cache_select = new \XoopsFormSelect(\_AM_SYSTEM_BLOCKS_BCACHETIME, 'bcachetime', $block['bcachetime']);
687 687
         $cache_select->addOptionArray([
688
-                                          0       => _NOCACHE,
689
-                                          30      => \sprintf(_SECONDS, 30),
690
-                                          60      => _MINUTE,
691
-                                          300     => \sprintf(_MINUTES, 5),
692
-                                          1800    => \sprintf(_MINUTES, 30),
693
-                                          3600    => _HOUR,
694
-                                          18000   => \sprintf(_HOURS, 5),
695
-                                          86400   => _DAY,
696
-                                          259200  => \sprintf(_DAYS, 3),
697
-                                          604800  => _WEEK,
698
-                                          2592000 => _MONTH,
699
-                                      ]);
688
+                                            0       => _NOCACHE,
689
+                                            30      => \sprintf(_SECONDS, 30),
690
+                                            60      => _MINUTE,
691
+                                            300     => \sprintf(_MINUTES, 5),
692
+                                            1800    => \sprintf(_MINUTES, 30),
693
+                                            3600    => _HOUR,
694
+                                            18000   => \sprintf(_HOURS, 5),
695
+                                            86400   => _DAY,
696
+                                            259200  => \sprintf(_DAYS, 3),
697
+                                            604800  => _WEEK,
698
+                                            2592000 => _MONTH,
699
+                                        ]);
700 700
         $form->addElement($cache_select);
701 701
 
702 702
         /** @var \XoopsGroupPermHandler $grouppermHandler */
Please login to merge, or discard this patch.
admin/blocksadmin1.php 1 patch
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -89,30 +89,30 @@  discard block
 block discarded – undo
89 89
         echo $GLOBALS['xoopsSecurity']->getTokenHTML();
90 90
         echo "<table width='100%' class='outer' cellpadding='4' cellspacing='1'>
91 91
         <tr valign='middle'><th align='center'>"
92
-             . _AM_SYSTEM_BLOCKS_TITLE
93
-             . "</th><th align='center' nowrap='nowrap'>"
94
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'SIDE')
95
-             . '<br>'
96
-             . _LEFT
97
-             . '-'
98
-             . _CENTER
99
-             . '-'
100
-             . _RIGHT
101
-             . "</th><th align='center'>"
102
-             . constant(
103
-                 'CO_' . $moduleDirNameUpper . '_' . 'WEIGHT'
104
-             )
105
-             . "</th><th align='center'>"
106
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE')
107
-             . "</th><th align='center'>"
108
-             . _AM_SYSTEM_BLOCKS_VISIBLEIN
109
-             . "</th><th align='center'>"
110
-             . _AM_SYSTEM_ADGS
111
-             . "</th><th align='center'>"
112
-             . _AM_SYSTEM_BLOCKS_BCACHETIME
113
-             . "</th><th align='center'>"
114
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'ACTION')
115
-             . '</th></tr>
92
+                . _AM_SYSTEM_BLOCKS_TITLE
93
+                . "</th><th align='center' nowrap='nowrap'>"
94
+                . constant('CO_' . $moduleDirNameUpper . '_' . 'SIDE')
95
+                . '<br>'
96
+                . _LEFT
97
+                . '-'
98
+                . _CENTER
99
+                . '-'
100
+                . _RIGHT
101
+                . "</th><th align='center'>"
102
+                . constant(
103
+                    'CO_' . $moduleDirNameUpper . '_' . 'WEIGHT'
104
+                )
105
+                . "</th><th align='center'>"
106
+                . constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE')
107
+                . "</th><th align='center'>"
108
+                . _AM_SYSTEM_BLOCKS_VISIBLEIN
109
+                . "</th><th align='center'>"
110
+                . _AM_SYSTEM_ADGS
111
+                . "</th><th align='center'>"
112
+                . _AM_SYSTEM_BLOCKS_BCACHETIME
113
+                . "</th><th align='center'>"
114
+                . constant('CO_' . $moduleDirNameUpper . '_' . 'ACTION')
115
+                . '</th></tr>
116 116
         ';
117 117
         $blockArray = \XoopsBlock::getByModule($xoopsModule->mid());
118 118
         $blockCount = count($blockArray);
@@ -178,69 +178,69 @@  discard block
 block discarded – undo
178 178
             }
179 179
             $name = $i->getVar('name');
180 180
             echo "<tr valign='top'><td class='$class' align='center'><input type='text' name='title["
181
-                 . $i->getVar('bid')
182
-                 . "]' value='"
183
-                 . $title
184
-                 . "'></td><td class='$class' align='center' nowrap='nowrap'>
181
+                    . $i->getVar('bid')
182
+                    . "]' value='"
183
+                    . $title
184
+                    . "'></td><td class='$class' align='center' nowrap='nowrap'>
185 185
                     <div align='center' >
186 186
                     <input type='radio' name='side["
187
-                 . $i->getVar('bid')
188
-                 . "]' value='"
189
-                 . XOOPS_CENTERBLOCK_LEFT
190
-                 . "'$ssel2>
187
+                    . $i->getVar('bid')
188
+                    . "]' value='"
189
+                    . XOOPS_CENTERBLOCK_LEFT
190
+                    . "'$ssel2>
191 191
                         <input type='radio' name='side["
192
-                 . $i->getVar('bid')
193
-                 . "]' value='"
194
-                 . XOOPS_CENTERBLOCK_CENTER
195
-                 . "'$ssel3>
192
+                    . $i->getVar('bid')
193
+                    . "]' value='"
194
+                    . XOOPS_CENTERBLOCK_CENTER
195
+                    . "'$ssel3>
196 196
                     <input type='radio' name='side["
197
-                 . $i->getVar('bid')
198
-                 . "]' value='"
199
-                 . XOOPS_CENTERBLOCK_RIGHT
200
-                 . "'$ssel4>
197
+                    . $i->getVar('bid')
198
+                    . "]' value='"
199
+                    . XOOPS_CENTERBLOCK_RIGHT
200
+                    . "'$ssel4>
201 201
                     </div>
202 202
                     <div>
203 203
                         <span style='float:right;'><input type='radio' name='side["
204
-                 . $i->getVar('bid')
205
-                 . "]' value='"
206
-                 . XOOPS_SIDEBLOCK_RIGHT
207
-                 . "'$ssel1></span>
204
+                    . $i->getVar('bid')
205
+                    . "]' value='"
206
+                    . XOOPS_SIDEBLOCK_RIGHT
207
+                    . "'$ssel1></span>
208 208
                     <div align='left'><input type='radio' name='side["
209
-                 . $i->getVar('bid')
210
-                 . "]' value='"
211
-                 . XOOPS_SIDEBLOCK_LEFT
212
-                 . "'$ssel0></div>
209
+                    . $i->getVar('bid')
210
+                    . "]' value='"
211
+                    . XOOPS_SIDEBLOCK_LEFT
212
+                    . "'$ssel0></div>
213 213
                     </div>
214 214
                     <div align='center'>
215 215
                     <input type='radio' name='side["
216
-                 . $i->getVar('bid')
217
-                 . "]' value='"
218
-                 . XOOPS_CENTERBLOCK_BOTTOMLEFT
219
-                 . "'$ssel5>
216
+                    . $i->getVar('bid')
217
+                    . "]' value='"
218
+                    . XOOPS_CENTERBLOCK_BOTTOMLEFT
219
+                    . "'$ssel5>
220 220
                         <input type='radio' name='side["
221
-                 . $i->getVar('bid')
222
-                 . "]' value='"
223
-                 . XOOPS_CENTERBLOCK_BOTTOM
224
-                 . "'$ssel7>
221
+                    . $i->getVar('bid')
222
+                    . "]' value='"
223
+                    . XOOPS_CENTERBLOCK_BOTTOM
224
+                    . "'$ssel7>
225 225
                     <input type='radio' name='side["
226
-                 . $i->getVar('bid')
227
-                 . "]' value='"
228
-                 . XOOPS_CENTERBLOCK_BOTTOMRIGHT
229
-                 . "'$ssel6>
226
+                    . $i->getVar('bid')
227
+                    . "]' value='"
228
+                    . XOOPS_CENTERBLOCK_BOTTOMRIGHT
229
+                    . "'$ssel6>
230 230
                     </div>
231 231
                 </td><td class='$class' align='center'><input type='text' name='weight["
232
-                 . $i->getVar('bid')
233
-                 . "]' value='"
234
-                 . $i->getVar('weight')
235
-                 . "' size='5' maxlength='5'></td><td class='$class' align='center' nowrap><input type='radio' name='visible["
236
-                 . $i->getVar('bid')
237
-                 . "]' value='1'$sel1>"
238
-                 . _YES
239
-                 . "&nbsp;<input type='radio' name='visible["
240
-                 . $i->getVar('bid')
241
-                 . "]' value='0'$sel0>"
242
-                 . _NO
243
-                 . '</td>';
232
+                    . $i->getVar('bid')
233
+                    . "]' value='"
234
+                    . $i->getVar('weight')
235
+                    . "' size='5' maxlength='5'></td><td class='$class' align='center' nowrap><input type='radio' name='visible["
236
+                    . $i->getVar('bid')
237
+                    . "]' value='1'$sel1>"
238
+                    . _YES
239
+                    . "&nbsp;<input type='radio' name='visible["
240
+                    . $i->getVar('bid')
241
+                    . "]' value='0'$sel0>"
242
+                    . _NO
243
+                    . '</td>';
244 244
 
245 245
             echo "<td class='$class' align='center'><select size='5' name='bmodule[" . $i->getVar('bid') . "][]' id='bmodule[" . $i->getVar('bid') . "][]' multiple='multiple'>";
246 246
             foreach ($moduleList as $k => $v) {
Please login to merge, or discard this patch.