Passed
Pull Request — master (#585)
by
unknown
17:41
created
htdocs/modules/publisher/blocks/items_random_item.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_items_random_item_show($options)
26 26
 {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,9 @@
 block discarded – undo
29 29
     // creating the ITEM object
30 30
     $itemsObj = $publisher->getItemHandler()->getRandomItem('', array(_PUBLISHER_STATUS_PUBLISHED));
31 31
 
32
-    if (!is_object($itemsObj)) return $block;
32
+    if (!is_object($itemsObj)) {
33
+        return $block;
34
+    }
33 35
 
34 36
     $block['content'] = $itemsObj->getBlockSummary(300, true); //show complete summary  but truncate to 300 if only body available
35 37
     $block['id'] = $itemsObj->getVar('itemid');
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_recent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_items_recent_show($options)
26 26
 {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $criteria = null;
48 48
     } else {
49 49
         $criteria = new CriteriaCompo();
50
-        $criteria->add(new Criteria('categoryid', '(' . $options[0] . ')', 'IN'));
50
+        $criteria->add(new Criteria('categoryid', '('.$options[0].')', 'IN'));
51 51
     }
52 52
     $itemsObj = $publisher->getItemHandler()->getItems($limit, $start, array(_PUBLISHER_STATUS_PUBLISHED), -1, $sort, $order, '', true, $criteria, true);
53 53
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $block['lang_poster'] = _MB_PUBLISHER_POSTEDBY;
74 74
         $block['lang_date'] = _MB_PUBLISHER_DATE;
75 75
         $modulename = $myts->displayTarea($publisher->getModule()->getVar('name'));
76
-        $block['lang_visitItem'] = _MB_PUBLISHER_VISITITEM . " " . $modulename;
76
+        $block['lang_visitItem'] = _MB_PUBLISHER_VISITITEM." ".$modulename;
77 77
     }
78 78
 
79 79
     return $block;
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/category_items_sel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * @version         $Id$
19 19
  */
20 20
 
21
-include_once dirname(__DIR__) . '/include/common.php';
21
+include_once dirname(__DIR__).'/include/common.php';
22 22
 
23 23
 function publisher_category_items_sel_show($options)
24 24
 {
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/latest_files.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_latest_files_show($options)
26 26
 {
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_spot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_items_spot_show($options)
26 26
 {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 $category['name'] = $cat->getVar('name');
49 49
                 $category['categoryurl'] = $cat->getCategoryUrl();
50 50
                 if ($cat->image() !== 'blank.png') {
51
-                    $category['image_path'] = PublisherUtils::getImageDir('category', false) . $cat->image();
51
+                    $category['image_path'] = PublisherUtils::getImageDir('category', false).$cat->image();
52 52
                 } else {
53 53
                     $category['image_path'] = '';
54 54
                 }
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/latest_news.php 1 patch
Spacing   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  * @version         $Id$
22 22
  */
23 23
 
24
-include_once dirname(__DIR__) . '/include/common.php';
24
+include_once dirname(__DIR__).'/include/common.php';
25 25
 
26 26
 function publisher_latest_news_show($options)
27 27
 {
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
         $criteria = null;
58 58
     } else {
59 59
         $criteria = new CriteriaCompo();
60
-        $criteria->add(new Criteria('categoryid', '(' . $options[29] . ')', 'IN'));
60
+        $criteria->add(new Criteria('categoryid', '('.$options[29].')', 'IN'));
61 61
     }
62 62
 
63 63
     // Use specific ITEMS
64 64
     if ($selected_stories != 0) {
65 65
         unset($criteria); //removes category option
66 66
         $criteria = new CriteriaCompo();
67
-        $criteria->add(new Criteria('itemid', '(' . $selected_stories . ')', 'IN'));
67
+        $criteria->add(new Criteria('itemid', '('.$selected_stories.')', 'IN'));
68 68
     }
69 69
 
70 70
     $itemsObj = $publisher->getItemHandler()->getItems($limit, $start, array(_PUBLISHER_STATUS_PUBLISHED), -1, $sort, $order, '', true, $criteria, 'itemid');
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $ls_height = '';
98 98
         if ($options[12] != 0) {
99
-            $ls_height = 'height="' . $imgheight . '" ';
99
+            $ls_height = 'height="'.$imgheight.'" ';
100 100
         }
101 101
 
102 102
         if ($options[15] === 'LEFT') {
@@ -113,17 +113,17 @@  discard block
 block discarded – undo
113 113
 
114 114
         //Image
115 115
         if ($options[10] == 1 && $item['image_path'] != '') {
116
-            $startdiv = '<div style="' . $imgposition . '"><a href="' . $item['itemurl'] . '">';
117
-            $style = 'style="margin' . $ls_margin . ': 10px; padding: 2px; border: ' . $border . 'px solid #' . $bordercolor . '"';
118
-            $enddiv = 'width="' . $imgwidth . '" ' . $ls_height . '/></a></div>';
119
-            $image = $startdiv . '<img ' . $style . ' src="' . $item['item_image'] . '" alt="' . $item['image_name'] . '" ' . $enddiv;
116
+            $startdiv = '<div style="'.$imgposition.'"><a href="'.$item['itemurl'].'">';
117
+            $style = 'style="margin'.$ls_margin.': 10px; padding: 2px; border: '.$border.'px solid #'.$bordercolor.'"';
118
+            $enddiv = 'width="'.$imgwidth.'" '.$ls_height.'/></a></div>';
119
+            $image = $startdiv.'<img '.$style.' src="'.$item['item_image'].'" alt="'.$item['image_name'].'" '.$enddiv;
120 120
 
121 121
             $item['image'] = $image;
122 122
         }
123 123
 
124 124
         if ($publisher->isUserAdmin()) {
125
-            $item['admin'] = "<a href='" . PUBLISHER_URL . "/submit.php?itemid=" . $itemObj->getVar('itemid'). "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif'" . " title='" . _CO_PUBLISHER_EDIT . "' alt='" . _CO_PUBLISHER_EDIT . "' /></a>&nbsp;";
126
-            $item['admin'] .= "<a href='" . PUBLISHER_URL . "/admin/item.php?op=del&amp;itemid=" . $itemObj->getVar('itemid'). "'><img src='" . PUBLISHER_URL . "/images/links/delete.png'" . " title='" . _CO_PUBLISHER_DELETE . "' alt='" . _CO_PUBLISHER_DELETE . "' /></a>";
125
+            $item['admin'] = "<a href='".PUBLISHER_URL."/submit.php?itemid=".$itemObj->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/edit.gif'"." title='"._CO_PUBLISHER_EDIT."' alt='"._CO_PUBLISHER_EDIT."' /></a>&nbsp;";
126
+            $item['admin'] .= "<a href='".PUBLISHER_URL."/admin/item.php?op=del&amp;itemid=".$itemObj->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/delete.png'"." title='"._CO_PUBLISHER_DELETE."' alt='"._CO_PUBLISHER_DELETE."' /></a>";
127 127
         } else {
128 128
             $item['admin'] = '';
129 129
         }
@@ -136,40 +136,40 @@  discard block
 block discarded – undo
136 136
          */
137 137
         $block['archivelink'] = '';
138 138
         if ($options[17] == 1) {
139
-            $block['archivelink'] = '| <a href="' . PUBLISHER_URL . '/archive.php">' . _MB_PUBLISHER_ARCHIVE . '</a> ';
139
+            $block['archivelink'] = '| <a href="'.PUBLISHER_URL.'/archive.php">'._MB_PUBLISHER_ARCHIVE.'</a> ';
140 140
         }
141 141
 
142 142
         //TODO: Should we not show link to Anonymous?
143 143
         $block['submitlink'] = '';
144 144
         if ($options[18] == 1 && $xoops->isUser()) {
145
-            $block['submitlink'] = '| <a href="' . PUBLISHER_URL . '/submit.php">' . _MB_PUBLISHER_SUBMITNEWS . '</a> ';
145
+            $block['submitlink'] = '| <a href="'.PUBLISHER_URL.'/submit.php">'._MB_PUBLISHER_SUBMITNEWS.'</a> ';
146 146
         }
147 147
 
148 148
         $item['poster'] = '';
149 149
         if ($options[19] == 1) {
150
-            $item['poster'] = _MB_PUBLISHER_POSTER . ' ' . $itemObj->posterName();
150
+            $item['poster'] = _MB_PUBLISHER_POSTER.' '.$itemObj->posterName();
151 151
         }
152 152
 
153 153
         $item['posttime'] = '';
154 154
         if ($options[20] == 1) {
155 155
             //todo, check this concatenation
156
-            $item['posttime'] = strtolower(XoopsLocale::ON) . ' ' . $itemObj->datesub();
156
+            $item['posttime'] = strtolower(XoopsLocale::ON).' '.$itemObj->datesub();
157 157
         }
158 158
 
159 159
         $item['topic_title'] = '';
160 160
         if ($options[21] == 1) {
161
-            $item['topic_title'] = $itemObj->getCategoryLink() . _MB_PUBLISHER_SP;
161
+            $item['topic_title'] = $itemObj->getCategoryLink()._MB_PUBLISHER_SP;
162 162
         }
163 163
 
164 164
         $item['read'] = '';
165 165
         if ($options[22] == 1) {
166 166
             //todo, check this concatenation
167
-            $item['read'] = '&nbsp;(' . $itemObj->getVar('counter') . ' ' . strtolower(XoopsLocale::READS) . ')';
167
+            $item['read'] = '&nbsp;('.$itemObj->getVar('counter').' '.strtolower(XoopsLocale::READS).')';
168 168
         }
169 169
 
170 170
         $item['more'] = '';
171 171
         if ($itemObj->body() != '' || $itemObj->getVar('comments') > 0) {
172
-            $item['more'] = '<a class="publisher_spotlight_readmore" href="' . $itemObj->getItemUrl() . '">' . _MB_PUBLISHER_READMORE . '</a>';
172
+            $item['more'] = '<a class="publisher_spotlight_readmore" href="'.$itemObj->getItemUrl().'">'._MB_PUBLISHER_READMORE.'</a>';
173 173
         }
174 174
 
175 175
         $comments = $itemObj->getVar('comments');
@@ -178,23 +178,23 @@  discard block
 block discarded – undo
178 178
                 //shows 1 comment instead of 1 comm. if comments ==1
179 179
                 //langugage file modified accordingly
180 180
                 if ($comments == 1) {
181
-                    $item['comment'] = '&nbsp;' . _MB_PUBLISHER_ONECOMMENT . '&nbsp;';
181
+                    $item['comment'] = '&nbsp;'._MB_PUBLISHER_ONECOMMENT.'&nbsp;';
182 182
                 } else {
183
-                    $item['comment'] = '&nbsp;' . $comments . '&nbsp;' . _MB_PUBLISHER_COMMENTS . '&nbsp;';
183
+                    $item['comment'] = '&nbsp;'.$comments.'&nbsp;'._MB_PUBLISHER_COMMENTS.'&nbsp;';
184 184
                 }
185 185
             } else {
186
-                $item['comment'] = '&nbsp;' . _MB_PUBLISHER_NO_COMMENTS . '&nbsp;';
186
+                $item['comment'] = '&nbsp;'._MB_PUBLISHER_NO_COMMENTS.'&nbsp;';
187 187
             }
188 188
         }
189 189
 
190 190
         $item['print'] = '';
191 191
         if ($options[24] == 1) {
192
-            $item['print'] = '<a href="' . PublisherUtils::seoGenUrl("print", $itemObj->getVar('itemid'), $itemObj->getVar('short_url')) . '" rel="nofollow"><img src="' . PUBLISHER_URL . '/images/links/print.gif" title="' . _CO_PUBLISHER_PRINT . '" alt="' . _CO_PUBLISHER_PRINT . '" /></a>&nbsp;';
192
+            $item['print'] = '<a href="'.PublisherUtils::seoGenUrl("print", $itemObj->getVar('itemid'), $itemObj->getVar('short_url')).'" rel="nofollow"><img src="'.PUBLISHER_URL.'/images/links/print.gif" title="'._CO_PUBLISHER_PRINT.'" alt="'._CO_PUBLISHER_PRINT.'" /></a>&nbsp;';
193 193
         }
194 194
 
195 195
         $item['pdf'] = '';
196 196
         if ($options[25] == 1) {
197
-            $item['pdf'] = "<a href='" . PUBLISHER_URL . "/makepdf.php?itemid=" . $itemObj->getVar('itemid'). "' rel='nofollow'><img src='" . PUBLISHER_URL . "/images/links/pdf.gif' title='" . _CO_PUBLISHER_PDF . "' alt='" . _CO_PUBLISHER_PDF . "' /></a>&nbsp;";
197
+            $item['pdf'] = "<a href='".PUBLISHER_URL."/makepdf.php?itemid=".$itemObj->getVar('itemid')."' rel='nofollow'><img src='".PUBLISHER_URL."/images/links/pdf.gif' title='"._CO_PUBLISHER_PDF."' alt='"._CO_PUBLISHER_PDF."' /></a>&nbsp;";
198 198
         }
199 199
 
200 200
         $item['email'] = '';
@@ -203,12 +203,12 @@  discard block
 block discarded – undo
203 203
             $subject = $itemObj->_convert_for_japanese($subject);
204 204
             $maillink = PublisherUtils::tellafriend($subject);
205 205
 
206
-            $item['email'] = '<a href="' . $maillink . '"><img src="' . PUBLISHER_URL . '/images/links/friend.gif" title="' . _CO_PUBLISHER_MAIL . '" alt="' . _CO_PUBLISHER_MAIL . '" /></a>&nbsp;';
206
+            $item['email'] = '<a href="'.$maillink.'"><img src="'.PUBLISHER_URL.'/images/links/friend.gif" title="'._CO_PUBLISHER_MAIL.'" alt="'._CO_PUBLISHER_MAIL.'" /></a>&nbsp;';
207 207
         }
208 208
 
209 209
         $block['morelink'] = '';
210 210
         if ($options[27] == 1) {
211
-            $block['morelink'] = '<a href="' . PUBLISHER_URL . '/index.php">' . _MB_PUBLISHER_MORE_ITEMS . '</a> ';
211
+            $block['morelink'] = '<a href="'.PUBLISHER_URL.'/index.php">'._MB_PUBLISHER_MORE_ITEMS.'</a> ';
212 212
         }
213 213
 
214 214
         $block['latestnews_scroll'] = false;
@@ -249,24 +249,24 @@  discard block
 block discarded – undo
249 249
     $tabletag4 = '</td></tr>';
250 250
 
251 251
     $form = "<table border='0' cellpadding='0' cellspacing='0'>";
252
-    $form .= $tabletag3 . _MB_PUBLISHER_GENERALCONFIG . $tabletag4; // General Options
253
-    $form .= $tabletag1 . _MB_PUBLISHER_FIRST . $tabletag2;
254
-    $form .= "<input type='text' name='options[]' value='" . $options[0] . "' size='4'>&nbsp;" . _MB_PUBLISHER_ITEMS . "</td></tr>";
255
-    $form .= $tabletag1 . _MB_PUBLISHER_DISP . $tabletag2;
256
-    $form .= "<input type='text' name='options[]' value='" . $options[1] . "' size='4'>&nbsp;" . _MB_PUBLISHER_ITEMS . "</td></tr>";
257
-    $form .= $tabletag1 . _MB_PUBLISHER_COLUMNS . $tabletag2;
258
-    $form .= "<input type='text' name='options[]' value='" . $options[2] . "' size='4'>&nbsp;" . _MB_PUBLISHER_COLUMN . "</td></tr>";
259
-    $form .= $tabletag1 . _MB_PUBLISHER_TEXTLENGTH . $tabletag2;
260
-    $form .= "<input type='text' name='options[]' value='" . $options[3] . "' size='4'>&nbsp;" . _MB_PUBLISHER_LETTER . "</td></tr>";
261
-    $form .= $tabletag1 . _MB_PUBLISHER_SELECTEDSTORIES . $tabletag2;
262
-    $form .= "<input type='text' name='options[]' value='" . $options[4] . "' size='16'></td></tr>";
263
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLL . $tabletag2;
252
+    $form .= $tabletag3._MB_PUBLISHER_GENERALCONFIG.$tabletag4; // General Options
253
+    $form .= $tabletag1._MB_PUBLISHER_FIRST.$tabletag2;
254
+    $form .= "<input type='text' name='options[]' value='".$options[0]."' size='4'>&nbsp;"._MB_PUBLISHER_ITEMS."</td></tr>";
255
+    $form .= $tabletag1._MB_PUBLISHER_DISP.$tabletag2;
256
+    $form .= "<input type='text' name='options[]' value='".$options[1]."' size='4'>&nbsp;"._MB_PUBLISHER_ITEMS."</td></tr>";
257
+    $form .= $tabletag1._MB_PUBLISHER_COLUMNS.$tabletag2;
258
+    $form .= "<input type='text' name='options[]' value='".$options[2]."' size='4'>&nbsp;"._MB_PUBLISHER_COLUMN."</td></tr>";
259
+    $form .= $tabletag1._MB_PUBLISHER_TEXTLENGTH.$tabletag2;
260
+    $form .= "<input type='text' name='options[]' value='".$options[3]."' size='4'>&nbsp;"._MB_PUBLISHER_LETTER."</td></tr>";
261
+    $form .= $tabletag1._MB_PUBLISHER_SELECTEDSTORIES.$tabletag2;
262
+    $form .= "<input type='text' name='options[]' value='".$options[4]."' size='16'></td></tr>";
263
+    $form .= $tabletag1._MB_PUBLISHER_SCROLL.$tabletag2;
264 264
     $form .= publisher_mk_chkbox($options, 5);
265
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLLHEIGHT . $tabletag2;
266
-    $form .= "<input type='text' name='options[]' value='" . $options[6] . "' size='4'></td></tr>";
267
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLLSPEED . $tabletag2;
268
-    $form .= "<input type='text' name='options[]' value='" . $options[7] . "' size='4'></td></tr>";
269
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLLDIR . $tabletag2;
265
+    $form .= $tabletag1._MB_PUBLISHER_SCROLLHEIGHT.$tabletag2;
266
+    $form .= "<input type='text' name='options[]' value='".$options[6]."' size='4'></td></tr>";
267
+    $form .= $tabletag1._MB_PUBLISHER_SCROLLSPEED.$tabletag2;
268
+    $form .= "<input type='text' name='options[]' value='".$options[7]."' size='4'></td></tr>";
269
+    $form .= $tabletag1._MB_PUBLISHER_SCROLLDIR.$tabletag2;
270 270
 
271 271
     $form .= "<select size='1' name='options[8]'>";
272 272
 
@@ -280,90 +280,90 @@  discard block
 block discarded – undo
280 280
     }
281 281
     $form .= "</select></td></tr>";
282 282
 
283
-    $form .= $tabletag1 . _MB_PUBLISHER_ORDER . $tabletag2;
283
+    $form .= $tabletag1._MB_PUBLISHER_ORDER.$tabletag2;
284 284
 
285 285
     $form .= "<select name='options[9]'>";
286 286
     $form .= "<option value='datesub'";
287 287
     if ($options[9] === "datesub") {
288 288
         $form .= " selected='selected'";
289 289
     }
290
-    $form .= ">" . _MB_PUBLISHER_DATE . "</option>";
290
+    $form .= ">"._MB_PUBLISHER_DATE."</option>";
291 291
 
292 292
     $form .= "<option value='counter'";
293 293
     if ($options[9] === "counter") {
294 294
         $form .= " selected='selected'";
295 295
     }
296
-    $form .= ">" . _MB_PUBLISHER_HITS . "</option>";
296
+    $form .= ">"._MB_PUBLISHER_HITS."</option>";
297 297
 
298 298
     $form .= "<option value='weight'";
299 299
     if ($options[9] === "weight") {
300 300
         $form .= " selected='selected'";
301 301
     }
302
-    $form .= ">" . _MB_PUBLISHER_WEIGHT . "</option>";
302
+    $form .= ">"._MB_PUBLISHER_WEIGHT."</option>";
303 303
 
304 304
     $form .= "</select></td></tr>";
305 305
 
306
-    $form .= $tabletag3 . _MB_PUBLISHER_PHOTOSCONFIG . $tabletag4; // Photos Options
307
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGDISPLAY . $tabletag2;
306
+    $form .= $tabletag3._MB_PUBLISHER_PHOTOSCONFIG.$tabletag4; // Photos Options
307
+    $form .= $tabletag1._MB_PUBLISHER_IMGDISPLAY.$tabletag2;
308 308
     $form .= publisher_mk_chkbox($options, 10);
309
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGWIDTH . $tabletag2;
310
-    $form .= "<input type='text' name='options[]' value='" . $options[11] . "' size='4'>&nbsp;" . _MB_PUBLISHER_PIXEL . "</td></tr>";
311
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGHEIGHT . $tabletag2;
312
-    $form .= "<input type='text' name='options[]' value='" . $options[12] . "' size='4'>&nbsp;" . _MB_PUBLISHER_PIXEL . "</td></tr>";
313
-    $form .= $tabletag1 . _MB_PUBLISHER_BORDER . $tabletag2;
314
-    $form .= "<input type='text' name='options[]' value='" . $options[13] . "' size='4'>&nbsp;" . _MB_PUBLISHER_PIXEL . "</td></tr>";
315
-    $form .= $tabletag1 . _MB_PUBLISHER_BORDERCOLOR . $tabletag2;
316
-    $form .= "<input type='text' name='options[]' value='" . $options[14] . "' size='8'></td></tr>";
317
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGPOSITION . $tabletag2;
309
+    $form .= $tabletag1._MB_PUBLISHER_IMGWIDTH.$tabletag2;
310
+    $form .= "<input type='text' name='options[]' value='".$options[11]."' size='4'>&nbsp;"._MB_PUBLISHER_PIXEL."</td></tr>";
311
+    $form .= $tabletag1._MB_PUBLISHER_IMGHEIGHT.$tabletag2;
312
+    $form .= "<input type='text' name='options[]' value='".$options[12]."' size='4'>&nbsp;"._MB_PUBLISHER_PIXEL."</td></tr>";
313
+    $form .= $tabletag1._MB_PUBLISHER_BORDER.$tabletag2;
314
+    $form .= "<input type='text' name='options[]' value='".$options[13]."' size='4'>&nbsp;"._MB_PUBLISHER_PIXEL."</td></tr>";
315
+    $form .= $tabletag1._MB_PUBLISHER_BORDERCOLOR.$tabletag2;
316
+    $form .= "<input type='text' name='options[]' value='".$options[14]."' size='8'></td></tr>";
317
+    $form .= $tabletag1._MB_PUBLISHER_IMGPOSITION.$tabletag2;
318 318
     $form .= "<select name='options[]'>";
319 319
     $form .= "<option value='LEFT'";
320 320
     if ($options[15] === 'LEFT') {
321 321
         $form .= " selected='selected'";
322 322
     }
323
-    $form .= '>' . XoopsLocale::LEFT . "</option>\n";
323
+    $form .= '>'.XoopsLocale::LEFT."</option>\n";
324 324
 
325 325
     $form .= "<option value='CENTER'";
326 326
     if ($options[15] === 'CENTER') {
327 327
         $form .= " selected='selected'";
328 328
     }
329
-    $form .= '>' . XoopsLocale::CENTER . "</option>\n";
329
+    $form .= '>'.XoopsLocale::CENTER."</option>\n";
330 330
 
331 331
     $form .= "<option value='RIGHT'";
332 332
     if ($options[15] === 'RIGHT') {
333 333
         $form .= " selected='selected'";
334 334
     }
335
-    $form .= '>' . XoopsLocale::RIGHT . '</option>';
335
+    $form .= '>'.XoopsLocale::RIGHT.'</option>';
336 336
     $form .= "</select></td></tr>";
337 337
 
338
-    $form .= $tabletag3 . _MB_PUBLISHER_LINKSCONFIG . $tabletag4; // Links Options
339
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_TOPICLINK . $tabletag2;
338
+    $form .= $tabletag3._MB_PUBLISHER_LINKSCONFIG.$tabletag4; // Links Options
339
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_TOPICLINK.$tabletag2;
340 340
     $form .= publisher_mk_chkbox($options, 16);
341
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_ARCHIVELINK . $tabletag2;
341
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_ARCHIVELINK.$tabletag2;
342 342
     $form .= publisher_mk_chkbox($options, 17);
343
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_SUBMITLINK . $tabletag2;
343
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_SUBMITLINK.$tabletag2;
344 344
     $form .= publisher_mk_chkbox($options, 18);
345
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_POSTEDBY . $tabletag2;
345
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_POSTEDBY.$tabletag2;
346 346
     $form .= publisher_mk_chkbox($options, 19);
347
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_POSTTIME . $tabletag2;
347
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_POSTTIME.$tabletag2;
348 348
     $form .= publisher_mk_chkbox($options, 20);
349
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_TOPICTITLE . $tabletag2;
349
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_TOPICTITLE.$tabletag2;
350 350
     $form .= publisher_mk_chkbox($options, 21);
351
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_READ . $tabletag2;
351
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_READ.$tabletag2;
352 352
     $form .= publisher_mk_chkbox($options, 22);
353
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_COMMENT . $tabletag2;
353
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_COMMENT.$tabletag2;
354 354
     $form .= publisher_mk_chkbox($options, 23);
355
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_PRINT . $tabletag2;
355
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_PRINT.$tabletag2;
356 356
     $form .= publisher_mk_chkbox($options, 24);
357
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_PDF . $tabletag2;
357
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_PDF.$tabletag2;
358 358
     $form .= publisher_mk_chkbox($options, 25);
359
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_EMAIL . $tabletag2;
359
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_EMAIL.$tabletag2;
360 360
     $form .= publisher_mk_chkbox($options, 26);
361
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_MORELINK . $tabletag2;
361
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_MORELINK.$tabletag2;
362 362
     $form .= publisher_mk_chkbox($options, 27);
363 363
 
364 364
 
365
-    $form .= $tabletag3 . _MB_PUBLISHER_TEMPLATESCONFIG . $tabletag4; // Templates Options
366
-    $form .= $tabletag1 . _MB_PUBLISHER_TEMPLATE . $tabletag2;
365
+    $form .= $tabletag3._MB_PUBLISHER_TEMPLATESCONFIG.$tabletag4; // Templates Options
366
+    $form .= $tabletag1._MB_PUBLISHER_TEMPLATE.$tabletag2;
367 367
     $form .= "<select size='1' name='options[28]'>";
368 368
 
369 369
     $templates = array('normal' => _MB_PUBLISHER_TEMPLATE_NORMAL, 'extended' => _MB_PUBLISHER_TEMPLATE_EXTENDED, 'ticker' => _MB_PUBLISHER_TEMPLATE_TICKER, 'slider1' => _MB_PUBLISHER_TEMPLATE_SLIDER1, 'slider2' => _MB_PUBLISHER_TEMPLATE_SLIDER2);
@@ -377,8 +377,8 @@  discard block
 block discarded – undo
377 377
     $form .= "</select></td></tr>";
378 378
 
379 379
     //Select Which Categories To Show
380
-    $form .= $tabletag3 . _MB_PUBLISHER_TOPICSCONFIG . $tabletag4; // Topics Options
381
-    $form .= $tabletag1 . _MB_PUBLISHER_TOPICSDISPLAY . $tabletag2;
380
+    $form .= $tabletag3._MB_PUBLISHER_TOPICSCONFIG.$tabletag4; // Topics Options
381
+    $form .= $tabletag1._MB_PUBLISHER_TOPICSDISPLAY.$tabletag2;
382 382
     $form .= PublisherUtils::createCategorySelect($options[29], 0, true, 'options[29]');
383 383
     $form .= '</td></tr>';
384 384
 
@@ -392,12 +392,12 @@  discard block
 block discarded – undo
392 392
     if ($options[$number] == 1) {
393 393
         $chk = " checked='checked'";
394 394
     }
395
-    $chkbox = "<input type='radio' name='options[{$number}]' value='1'" . $chk . " />&nbsp;" . XoopsLocale::YES . "&nbsp;&nbsp;";
395
+    $chkbox = "<input type='radio' name='options[{$number}]' value='1'".$chk." />&nbsp;".XoopsLocale::YES."&nbsp;&nbsp;";
396 396
     $chk = "";
397 397
     if ($options[$number] == 0) {
398 398
         $chk = " checked='checked'";
399 399
     }
400
-    $chkbox .= "<input type='radio' name='options[{$number}]' value='0'" . $chk . " />&nbsp;" . XoopsLocale::NO . "</td></tr>";
400
+    $chkbox .= "<input type='radio' name='options[{$number}]' value='0'".$chk." />&nbsp;".XoopsLocale::NO."</td></tr>";
401 401
     return $chkbox;
402 402
 }
403 403
 
@@ -407,16 +407,16 @@  discard block
 block discarded – undo
407 407
     if ($options[$number] == 2) {
408 408
         $slc = " checked='checked'";
409 409
     }
410
-    $select = "<input type='radio' name='options[{$number}]' value='2'" . $slc . " />&nbsp;" . XoopsLocale::LEFT . "&nbsp;&nbsp;";
410
+    $select = "<input type='radio' name='options[{$number}]' value='2'".$slc." />&nbsp;".XoopsLocale::LEFT."&nbsp;&nbsp;";
411 411
     $slc = "";
412 412
     if ($options[$number] == 1) {
413 413
         $slc = " checked='checked'";
414 414
     }
415
-    $select .= "<input type='radio' name='options[{$number}]' value='1'" . $slc . " />&nbsp;" . XoopsLocale::CENTER . "&nbsp;&nbsp;";
415
+    $select .= "<input type='radio' name='options[{$number}]' value='1'".$slc." />&nbsp;".XoopsLocale::CENTER."&nbsp;&nbsp;";
416 416
     $slc = "";
417 417
     if ($options[$number] == 0) {
418 418
         $slc = " checked='checked'";
419 419
     }
420
-    $select .= "<input type='radio' name='options[{$number}]' value='0'" . $slc . " />&nbsp;" . XoopsLocale::RIGHT . "</td></tr>";
420
+    $select .= "<input type='radio' name='options[{$number}]' value='0'".$slc." />&nbsp;".XoopsLocale::RIGHT."</td></tr>";
421 421
     return $select;
422 422
 }
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_menu.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_items_menu_show($options)
26 26
 {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
     // Getting all top cats
32 32
     $block_categoriesObj = $publisher->getCategoryHandler()->getCategories(0, 0, 0);
33 33
 
34
-    if (count($block_categoriesObj) == 0) return $block;
34
+    if (count($block_categoriesObj) == 0) {
35
+        return $block;
36
+    }
35 37
 
36 38
     // Are we in Publisher ?
37 39
     $block['inModule'] = $publisher->isCurrentModule();
Please login to merge, or discard this patch.
htdocs/modules/publisher/class/file.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  * @version         $Id$
27 27
  */
28 28
 
29
-include_once dirname(__DIR__) . '/include/common.php';
29
+include_once dirname(__DIR__).'/include/common.php';
30 30
 
31 31
 // File status
32 32
 define("_PUBLISHER_STATUS_FILE_NOTSET", -1);
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
         if (!is_dir(PublisherUtils::getUploadDir())) {
115 115
             mkdir(PublisherUtils::getUploadDir(), 0757);
116 116
         }
117
-        $uploader = new XoopsMediaUploader(PublisherUtils::getUploadDir() . '/', $allowed_mimetypes, $maxfilesize, $maxfilewidth, $maxfileheight);
117
+        $uploader = new XoopsMediaUploader(PublisherUtils::getUploadDir().'/', $allowed_mimetypes, $maxfilesize, $maxfilewidth, $maxfileheight);
118 118
         if ($uploader->fetchMedia($post_field)) {
119
-            $uploader->setTargetFileName($itemid . "_" . $uploader->getMediaName());
119
+            $uploader->setTargetFileName($itemid."_".$uploader->getMediaName());
120 120
             if ($uploader->upload()) {
121 121
                 $this->setVar('filename', $uploader->getSavedFileName());
122 122
                 if ($this->getVar('name') == '') {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function getFileUrl()
186 186
     {
187
-        return PublisherUtils::getUploadDir(false) . $this->getVar('filename');
187
+        return PublisherUtils::getUploadDir(false).$this->getVar('filename');
188 188
     }
189 189
 
190 190
     /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function getFilePath()
194 194
     {
195
-        return PublisherUtils::getUploadDir() . $this->getVar('filename');
195
+        return PublisherUtils::getUploadDir().$this->getVar('filename');
196 196
     }
197 197
 
198 198
     /**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public function getFileLink()
202 202
     {
203
-        return "<a href='" . PUBLISHER_URL . "/visit.php?fileid=" . $this->getVar('fileid') . "'>" . $this->getVar('name') . "</a>";
203
+        return "<a href='".PUBLISHER_URL."/visit.php?fileid=".$this->getVar('fileid')."'>".$this->getVar('name')."</a>";
204 204
     }
205 205
 
206 206
     /**
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function getItemLink()
210 210
     {
211
-        return "<a href='" . PUBLISHER_URL . "/item.php?itemid=" . $this->getVar('itemid') . "'>" . $this->getVar('name') . "</a>";
211
+        return "<a href='".PUBLISHER_URL."/item.php?itemid=".$this->getVar('itemid')."'>".$this->getVar('name')."</a>";
212 212
     }
213 213
 
214 214
     /**
Please login to merge, or discard this patch.
htdocs/modules/publisher/class/utils.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         if (!$withLink) {
152 152
             return $publisher->getModule()->getVar('name');
153 153
         } else {
154
-            return '<a href="' . $xoops->url(PUBLISHER_URL) . '/">' . $publisher->getModule()->getVar('name') . '</a>';
154
+            return '<a href="'.$xoops->url(PUBLISHER_URL).'/">'.$publisher->getModule()->getVar('name').'</a>';
155 155
         }
156 156
     }
157 157
 
@@ -227,10 +227,10 @@  discard block
 block discarded – undo
227 227
             $path_status = _AM_PUBLISHER_AVAILABLE;
228 228
         } elseif (!@is_dir($thePath)) {
229 229
             $pathCheckResult = -1;
230
-            $path_status = _AM_PUBLISHER_NOTAVAILABLE . " <a href='" . $publisher->url("admin/index.php?op=createdir&amp;path={$item}") . "'>" . _AM_PUBLISHER_CREATETHEDIR . "</a>";
230
+            $path_status = _AM_PUBLISHER_NOTAVAILABLE." <a href='".$publisher->url("admin/index.php?op=createdir&amp;path={$item}")."'>"._AM_PUBLISHER_CREATETHEDIR."</a>";
231 231
         } else {
232 232
             $pathCheckResult = -2;
233
-            $path_status = _AM_PUBLISHER_NOTWRITABLE . " <a href='" . $publisher->url("admin/index.php?op=setperm&amp;path={$item}") . "'>" . _AM_SCS_SETMPERM . "</a>";
233
+            $path_status = _AM_PUBLISHER_NOTWRITABLE." <a href='".$publisher->url("admin/index.php?op=setperm&amp;path={$item}")."'>"._AM_SCS_SETMPERM."</a>";
234 234
         }
235 235
         if (!$getStatus) {
236 236
             return $path_status;
@@ -298,16 +298,16 @@  discard block
 block discarded – undo
298 298
             if ($item === 'root') {
299 299
                 $item = '';
300 300
             } else {
301
-                $item = $item . '/';
301
+                $item = $item.'/';
302 302
             }
303 303
         } else {
304 304
             $item = '';
305 305
         }
306 306
 
307 307
         if ($hasPath) {
308
-            return $xoops->path(PUBLISHER_UPLOADS_PATH . '/' . $item);
308
+            return $xoops->path(PUBLISHER_UPLOADS_PATH.'/'.$item);
309 309
         } else {
310
-            return $xoops->url(PUBLISHER_UPLOADS_URL . '/' . $item);
310
+            return $xoops->url(PUBLISHER_UPLOADS_URL.'/'.$item);
311 311
         }
312 312
     }
313 313
 
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
     {
338 338
         $ret = '';
339 339
         foreach ($errors as $value) {
340
-            $ret .= '<br /> - ' . $value;
340
+            $ret .= '<br /> - '.$value;
341 341
         }
342 342
 
343 343
         return $ret;
@@ -428,11 +428,11 @@  discard block
 block discarded – undo
428 428
             $display = 'block';
429 429
         }
430 430
 
431
-        echo "<h3 style=\"color: #2F5376; font-weight: bold; font-size: 14px; margin: 6px 0 0 0; \"><a href='javascript:;' onclick=\"toggle('" . $tablename . "'); toggleIcon('" . $iconname . "')\";>";
432
-        echo "<img id='" . $iconname . "' src='" . $publisher->url("images/links/" . $image) . "' alt='' /></a>&nbsp;" . $tabletitle . "</h3>";
433
-        echo "<div id='" . $tablename . "' style='display: " . $display . ";'>";
431
+        echo "<h3 style=\"color: #2F5376; font-weight: bold; font-size: 14px; margin: 6px 0 0 0; \"><a href='javascript:;' onclick=\"toggle('".$tablename."'); toggleIcon('".$iconname."')\";>";
432
+        echo "<img id='".$iconname."' src='".$publisher->url("images/links/".$image)."' alt='' /></a>&nbsp;".$tabletitle."</h3>";
433
+        echo "<div id='".$tablename."' style='display: ".$display.";'>";
434 434
         if ($tabledsc != '') {
435
-            echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . $tabledsc . "</span>";
435
+            echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">".$tabledsc."</span>";
436 436
         }
437 437
     }
438 438
 
@@ -449,14 +449,14 @@  discard block
 block discarded – undo
449 449
         $urls = self::getCurrentUrls();
450 450
         $path = $urls['phpself'];
451 451
 
452
-        $cookie_name = $path . '_publisher_collaps_' . $name;
452
+        $cookie_name = $path.'_publisher_collaps_'.$name;
453 453
         $cookie_name = str_replace('.', '_', $cookie_name);
454 454
         $cookie = self::getCookieVar($cookie_name, '');
455 455
 
456 456
         if ($cookie === 'none') {
457 457
             echo '
458 458
         <script type="text/javascript"><!--
459
-        toggle("' . $name . '"); toggleIcon("' . $icon . '");
459
+        toggle("' . $name.'"); toggleIcon("'.$icon.'");
460 460
         //-->
461 461
         </script>
462 462
         ';
@@ -504,10 +504,10 @@  discard block
 block discarded – undo
504 504
         $querystring = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';
505 505
 
506 506
         if ($querystring != '') {
507
-            $querystring = '?' . $querystring;
507
+            $querystring = '?'.$querystring;
508 508
         }
509 509
 
510
-        $currenturl = $http . $httphost . $phpself . $querystring;
510
+        $currenturl = $http.$httphost.$phpself.$querystring;
511 511
 
512 512
         $urls = array();
513 513
         $urls['http'] = $http;
@@ -547,13 +547,13 @@  discard block
 block discarded – undo
547 547
             $spaces .= '--';
548 548
         }
549 549
 
550
-        $ret .= "<option value='" . $categoryObj->getVar('categoryid') . "'";
550
+        $ret .= "<option value='".$categoryObj->getVar('categoryid')."'";
551 551
         if (is_array($selectedid) && in_array($categoryObj->getVar('categoryid'), $selectedid)) {
552 552
             $ret .= " selected='selected'";
553 553
         } elseif ($categoryObj->getVar('categoryid') == $selectedid) {
554 554
             $ret .= " selected='selected'";
555 555
         }
556
-        $ret .= ">" . $spaces . $categoryObj->getVar('name') . "</option>\n";
556
+        $ret .= ">".$spaces.$categoryObj->getVar('name')."</option>\n";
557 557
 
558 558
         $subCategoriesObj = $publisher->getCategoryHandler()->getCategories(0, 0, $categoryObj->getVar('categoryid'));
559 559
         if (count($subCategoriesObj) > 0) {
@@ -581,13 +581,13 @@  discard block
 block discarded – undo
581 581
 
582 582
         $selectedid = explode(',', $selectedid);
583 583
 
584
-        $ret = "<select name='" . $selectname . "[]' multiple='multiple' size='10'>";
584
+        $ret = "<select name='".$selectname."[]' multiple='multiple' size='10'>";
585 585
         if ($allCatOption) {
586 586
             $ret .= "<option value='0'";
587 587
             if (in_array(0, $selectedid)) {
588 588
                 $ret .= " selected='selected'";
589 589
             }
590
-            $ret .= ">" . _MB_PUBLISHER_ALLCAT . "</option>";
590
+            $ret .= ">"._MB_PUBLISHER_ALLCAT."</option>";
591 591
         }
592 592
 
593 593
         // Creating category objects
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
         $ret = "";
619 619
         if ($allCatOption) {
620 620
             $ret .= "<option value='0'";
621
-            $ret .= ">" . _MB_PUBLISHER_ALLCAT . "</option>\n";
621
+            $ret .= ">"._MB_PUBLISHER_ALLCAT."</option>\n";
622 622
         }
623 623
 
624 624
         // Creating category objects
@@ -642,12 +642,12 @@  discard block
 block discarded – undo
642 642
     public static function renderErrors(&$err_arr, $reseturl = '')
643 643
     {
644 644
         if (is_array($err_arr) && count($err_arr) > 0) {
645
-            echo '<div id="readOnly" class="errorMsg" style="border:1px solid #D24D00; background:#FEFECC url(' . PUBLISHER_URL . '/images/important-32.png) no-repeat 7px 50%;color:#333;padding-left:45px;">';
645
+            echo '<div id="readOnly" class="errorMsg" style="border:1px solid #D24D00; background:#FEFECC url('.PUBLISHER_URL.'/images/important-32.png) no-repeat 7px 50%;color:#333;padding-left:45px;">';
646 646
 
647
-            echo '<h4 style="text-align:left;margin:0; padding-top:0">' . _AM_PUBLISHER_MSG_SUBMISSION_ERR;
647
+            echo '<h4 style="text-align:left;margin:0; padding-top:0">'._AM_PUBLISHER_MSG_SUBMISSION_ERR;
648 648
 
649 649
             if ($reseturl) {
650
-                echo ' <a href="' . $reseturl . '">[' . _AM_PUBLISHER_TEXT_SESSION_RESET . ']</a>';
650
+                echo ' <a href="'.$reseturl.'">['._AM_PUBLISHER_TEXT_SESSION_RESET.']</a>';
651 651
             }
652 652
 
653 653
             echo '</h4><ul>';
@@ -655,10 +655,10 @@  discard block
 block discarded – undo
655 655
             foreach ($err_arr as $key => $error) {
656 656
                 if (is_array($error)) {
657 657
                     foreach ($error as $err) {
658
-                        echo '<li><a href="#' . $key . '" onclick="var e = xoopsGetElementById(\'' . $key . '\'); e.focus();">' . htmlspecialchars($err) . '</a></li>';
658
+                        echo '<li><a href="#'.$key.'" onclick="var e = xoopsGetElementById(\''.$key.'\'); e.focus();">'.htmlspecialchars($err).'</a></li>';
659 659
                     }
660 660
                 } else {
661
-                    echo '<li><a href="#' . $key . '" onclick="var e = xoopsGetElementById(\'' . $key . '\'); e.focus();">' . htmlspecialchars($error) . '</a></li>';
661
+                    echo '<li><a href="#'.$key.'" onclick="var e = xoopsGetElementById(\''.$key.'\'); e.focus();">'.htmlspecialchars($error).'</a></li>';
662 662
                 }
663 663
             }
664 664
             echo "</ul></div><br />";
@@ -687,11 +687,11 @@  discard block
 block discarded – undo
687 687
 
688 688
         $qs = '';
689 689
         foreach ($vars as $key => $value) {
690
-            $qs .= $joinStr . $key . '=' . $value;
690
+            $qs .= $joinStr.$key.'='.$value;
691 691
             $joinStr = $amp;
692 692
         }
693 693
 
694
-        return $page . '?' . $qs;
694
+        return $page.'?'.$qs;
695 695
     }
696 696
 
697 697
     /**
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
         }
708 708
         $target_uri = $xoops->url($_SERVER['REQUEST_URI']);
709 709
 
710
-        return $xoops->url('modules/tellafriend/index.php?target_uri=' . rawurlencode($target_uri) . '&amp;subject=' . rawurlencode($subject));
710
+        return $xoops->url('modules/tellafriend/index.php?target_uri='.rawurlencode($target_uri).'&amp;subject='.rawurlencode($subject));
711 711
     }
712 712
 
713 713
     /**
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 
756 756
                 $message = sprintf(_CO_PUBLISHER_MESSAGE_FILE_ERROR, $errorstxt);
757 757
                 if ($withRedirect) {
758
-                    $xoops->redirect("file.php?op=mod&itemid=" . $itemid, 5, $message);
758
+                    $xoops->redirect("file.php?op=mod&itemid=".$itemid, 5, $message);
759 759
                 } else {
760 760
                     return $message;
761 761
                 }
@@ -765,15 +765,15 @@  discard block
 block discarded – undo
765 765
         // Storing the file
766 766
         if (!$fileObj->store($allowed_mimetypes)) {
767 767
             if ($withRedirect) {
768
-                $xoops->redirect("file.php?op=mod&itemid=" . $fileObj->getVar('itemid'), 3, _CO_PUBLISHER_FILEUPLOAD_ERROR . self::formatErrors($fileObj->getErrors()));
768
+                $xoops->redirect("file.php?op=mod&itemid=".$fileObj->getVar('itemid'), 3, _CO_PUBLISHER_FILEUPLOAD_ERROR.self::formatErrors($fileObj->getErrors()));
769 769
             } else {
770
-                return _CO_PUBLISHER_FILEUPLOAD_ERROR . self::formatErrors($fileObj->getErrors());
770
+                return _CO_PUBLISHER_FILEUPLOAD_ERROR.self::formatErrors($fileObj->getErrors());
771 771
             }
772 772
         }
773 773
 
774 774
         if ($withRedirect) {
775 775
             $redirect_page = $another ? 'file.php' : 'item.php';
776
-            $xoops->redirect($redirect_page . "?op=mod&itemid=" . $fileObj->getVar('itemid'), 2, _CO_PUBLISHER_FILEUPLOAD_SUCCESS);
776
+            $xoops->redirect($redirect_page."?op=mod&itemid=".$fileObj->getVar('itemid'), 2, _CO_PUBLISHER_FILEUPLOAD_SUCCESS);
777 777
         }
778 778
 
779 779
         return true;
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
      */
785 785
     public static function newFeatureTag()
786 786
     {
787
-        $ret = '<span style="padding-right: 4px; font-weight: bold; color: red;">' . _CO_PUBLISHER_NEW_FEATURE . '</span>';
787
+        $ret = '<span style="padding-right: 4px; font-weight: bold; color: red;">'._CO_PUBLISHER_NEW_FEATURE.'</span>';
788 788
 
789 789
         return $ret;
790 790
     }
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
                 $string = self::closeTags($string);
825 825
             }
826 826
 
827
-            return $string . $etc;
827
+            return $string.$etc;
828 828
         } else {
829 829
             return $string;
830 830
         }
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
 
863 863
             $complete_tags = array_reverse($complete_tags);
864 864
             for ($i = 0; $i < count($complete_tags); ++$i) {
865
-                $string .= '</' . $complete_tags[$i] . '>';
865
+                $string .= '</'.$complete_tags[$i].'>';
866 866
             }
867 867
         }
868 868
 
@@ -911,26 +911,26 @@  discard block
 block discarded – undo
911 911
 
912 912
         if (!$gperm_handler->checkRight('global', _PUBLISHER_RATE, $groups, $publisher->getModule()->getVar('mid'))) {
913 913
             $static_rater = array();
914
-            $static_rater[] .= "\n" . '<div class="publisher_ratingblock">';
915
-            $static_rater[] .= '<div id="unit_long' . $itemid . '">';
916
-            $static_rater[] .= '<div id="unit_ul' . $itemid . '" class="publisher_unit-rating" style="width:' . $rating_unitwidth * $units . 'px;">';
917
-            $static_rater[] .= '<div class="publisher_current-rating" style="width:' . $rating_width . 'px;">' . _MD_PUBLISHER_VOTE_RATING . ' ' . $rating2 . '/' . $units . '</div>';
914
+            $static_rater[] .= "\n".'<div class="publisher_ratingblock">';
915
+            $static_rater[] .= '<div id="unit_long'.$itemid.'">';
916
+            $static_rater[] .= '<div id="unit_ul'.$itemid.'" class="publisher_unit-rating" style="width:'.$rating_unitwidth * $units.'px;">';
917
+            $static_rater[] .= '<div class="publisher_current-rating" style="width:'.$rating_width.'px;">'._MD_PUBLISHER_VOTE_RATING.' '.$rating2.'/'.$units.'</div>';
918 918
             $static_rater[] .= '</div>';
919
-            $static_rater[] .= '<div class="publisher_static">' . _MD_PUBLISHER_VOTE_RATING . ': <strong> ' . $rating1 . '</strong>/' . $units . ' (' . $count . ' ' . $tense . ') <br /><em>' . _MD_PUBLISHER_VOTE_DISABLE . '</em></div>';
919
+            $static_rater[] .= '<div class="publisher_static">'._MD_PUBLISHER_VOTE_RATING.': <strong> '.$rating1.'</strong>/'.$units.' ('.$count.' '.$tense.') <br /><em>'._MD_PUBLISHER_VOTE_DISABLE.'</em></div>';
920 920
             $static_rater[] .= '</div>';
921
-            $static_rater[] .= '</div>' . "\n\n";
921
+            $static_rater[] .= '</div>'."\n\n";
922 922
 
923 923
             return join("\n", $static_rater);
924 924
         } else {
925 925
             $rater = '';
926 926
             $rater .= '<div class="publisher_ratingblock">';
927
-            $rater .= '<div id="unit_long' . $itemid . '">';
928
-            $rater .= '<div id="unit_ul' . $itemid . '" class="publisher_unit-rating" style="width:' . $rating_unitwidth * $units . 'px;">';
929
-            $rater .= '<div class="publisher_current-rating" style="width:' . $rating_width . 'px;">' . _MD_PUBLISHER_VOTE_RATING . ' ' . $rating2 . '/' . $units . '</div>';
927
+            $rater .= '<div id="unit_long'.$itemid.'">';
928
+            $rater .= '<div id="unit_ul'.$itemid.'" class="publisher_unit-rating" style="width:'.$rating_unitwidth * $units.'px;">';
929
+            $rater .= '<div class="publisher_current-rating" style="width:'.$rating_width.'px;">'._MD_PUBLISHER_VOTE_RATING.' '.$rating2.'/'.$units.'</div>';
930 930
 
931 931
             for ($ncount = 1; $ncount <= $units; ++$ncount) { // loop from 1 to the number of units
932 932
                 if (!$voted) { // if the user hasn't yet voted, draw the voting stars
933
-                    $rater .= '<div><a href="' . PUBLISHER_URL . '/rate.php?itemid=' . $itemid . '&amp;rating=' . $ncount . '" title="' . $ncount . ' ' . _MD_PUBLISHER_VOTE_OUTOF . ' ' . $units . '" class="publisher_r' . $ncount . '-unit rater" rel="nofollow">' . $ncount . '</a></div>';
933
+                    $rater .= '<div><a href="'.PUBLISHER_URL.'/rate.php?itemid='.$itemid.'&amp;rating='.$ncount.'" title="'.$ncount.' '._MD_PUBLISHER_VOTE_OUTOF.' '.$units.'" class="publisher_r'.$ncount.'-unit rater" rel="nofollow">'.$ncount.'</a></div>';
934 934
                 }
935 935
             }
936 936
 
@@ -941,7 +941,7 @@  discard block
 block discarded – undo
941 941
                 $rater .= ' class="publisher_voted"';
942 942
             }
943 943
 
944
-            $rater .= '>' . _MD_PUBLISHER_VOTE_RATING . ': <strong> ' . $rating1 . '</strong>/' . $units . ' (' . $count . ' ' . $tense . ')';
944
+            $rater .= '>'._MD_PUBLISHER_VOTE_RATING.': <strong> '.$rating1.'</strong>/'.$units.' ('.$count.' '.$tense.')';
945 945
             $rater .= '  </div>';
946 946
             $rater .= '</div>';
947 947
             $rater .= '</div>';
@@ -1081,12 +1081,12 @@  discard block
 block discarded – undo
1081 1081
         $publisher = Publisher::getInstance();
1082 1082
         if ($publisher->getConfig('seo_url_rewrite') !== 'none') {
1083 1083
             if (!empty($short_url)) {
1084
-                $short_url = $short_url . '.html';
1084
+                $short_url = $short_url.'.html';
1085 1085
             }
1086 1086
 
1087 1087
             if ($publisher->getConfig('seo_url_rewrite') === 'htaccess') {
1088 1088
                 // generate SEO url using htaccess
1089
-                return \XoopsBaseConfig::get('url') . '/' . $publisher->getConfig('seo_module_name') . ".${op}.${id}/${short_url}";
1089
+                return \XoopsBaseConfig::get('url').'/'.$publisher->getConfig('seo_module_name').".${op}.${id}/${short_url}";
1090 1090
             } else {
1091 1091
                 if ($publisher->getConfig('seo_url_rewrite') === 'path-info') {
1092 1092
                     // generate SEO url using path-info
Please login to merge, or discard this patch.