Passed
Pull Request — master (#585)
by
unknown
17:41
created
htdocs/modules/publisher/class/form/category.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  * @version         $Id$
23 23
  */
24 24
 
25
-include_once dirname(dirname(__DIR__)) . '/include/common.php';
25
+include_once dirname(dirname(__DIR__)).'/include/common.php';
26 26
 
27 27
 class PublisherCategoryForm extends Xoops\Form\ThemeForm
28 28
 {
@@ -107,10 +107,10 @@  discard block
 block discarded – undo
107 107
         // IMAGE
108 108
         $image_select = new Xoops\Form\Select('', 'image', $obj->image());
109 109
         \Xoops\Core\Lists\ImageFile::setOptionsArray($image_select, PublisherUtils::getImageDir('category'));
110
-        $image_select->setExtra("onchange='showImgSelected(\"image3\", \"image\", \"" . 'uploads/' . PUBLISHER_DIRNAME . '/images/category/' . "\", \"\", \"" . \XoopsBaseConfig::get('url') . "\")'");
110
+        $image_select->setExtra("onchange='showImgSelected(\"image3\", \"image\", \"".'uploads/'.PUBLISHER_DIRNAME.'/images/category/'."\", \"\", \"".\XoopsBaseConfig::get('url')."\")'");
111 111
         $image_tray = new Xoops\Form\ElementTray(_AM_PUBLISHER_IMAGE, ' ');
112 112
         $image_tray->addElement($image_select);
113
-        $image_tray->addElement(new Xoops\Form\Label('', "<br /><br /><img src='" . PublisherUtils::getImageDir('category', false) . $obj->image() . "' name='image3' id='image3' alt='' />"));
113
+        $image_tray->addElement(new Xoops\Form\Label('', "<br /><br /><img src='".PublisherUtils::getImageDir('category', false).$obj->image()."' name='image3' id='image3' alt='' />"));
114 114
         $image_tray->setDescription(_AM_PUBLISHER_IMAGE_DSC);
115 115
         $this->addElement($image_tray);
116 116
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             } else {
178 178
                 $subname = '';
179 179
             }
180
-            $cat_tray->addElement(new Xoops\Form\Text('', 'scname[' . $i . ']', 50, 255, $subname));
180
+            $cat_tray->addElement(new Xoops\Form\Text('', 'scname['.$i.']', 50, 255, $subname));
181 181
         }
182 182
         $t = new Xoops\Form\Text('', 'nb_subcats', 3, 2);
183 183
         $l = new Xoops\Form\Label('', sprintf(_AM_PUBLISHER_ADD_OPT, $t->render()));
Please login to merge, or discard this patch.
htdocs/modules/publisher/class/permission.php 1 patch
Spacing   +2 added lines, -2 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
 class PublisherPermissionHandler extends XoopsObjectHandler
32 32
 {
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         // Save the new permissions
162 162
         if (count($groups) > 0) {
163 163
             foreach ($groups as $group_id) {
164
-                echo $group_id . "-";
164
+                echo $group_id."-";
165 165
                 echo $gperm_handler->addRight($perm_name, $itemid, $group_id, $module_id);
166 166
             }
167 167
         }
Please login to merge, or discard this patch.
htdocs/modules/publisher/class/formdatetime.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  * @version         $Id$
20 20
  */
21 21
 
22
-include_once dirname(__DIR__) . '/include/common.php';
22
+include_once dirname(__DIR__).'/include/common.php';
23 23
 
24 24
 class PublisherFormDateTime extends Xoops\Form\ElementTray
25 25
 {
@@ -37,16 +37,16 @@  discard block
 block discarded – undo
37 37
         $value = (int)($value);
38 38
         $value = ($value > 0) ? $value : time();
39 39
         $datetime = getdate($value);
40
-        $this->addElement(new Xoops\Form\DateSelect('', $name . '[date]', $value));
40
+        $this->addElement(new Xoops\Form\DateSelect('', $name.'[date]', $value));
41 41
         $timearray = array();
42 42
         for ($i = 0; $i < 24; ++$i) {
43 43
             for ($j = 0; $j < 60; $j = $j + 10) {
44 44
                 $key = ($i * 3600) + ($j * 60);
45
-                $timearray[$key] = ($j != 0) ? $i . ':' . $j : $i . ':0' . $j;
45
+                $timearray[$key] = ($j != 0) ? $i.':'.$j : $i.':0'.$j;
46 46
             }
47 47
         }
48 48
         ksort($timearray);
49
-        $timeselect = new Xoops\Form\Select('', $name . '[time]', $datetime['hours'] * 3600 + 600 * floor($datetime['minutes'] / 10));
49
+        $timeselect = new Xoops\Form\Select('', $name.'[time]', $datetime['hours'] * 3600 + 600 * floor($datetime['minutes'] / 10));
50 50
         $timeselect->addOptionArray($timearray);
51 51
         $this->addElement($timeselect);
52 52
     }
Please login to merge, or discard this patch.
htdocs/modules/publisher/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  * @version         $Id$
23 23
  */
24 24
 
25
-include_once __DIR__ . '/header.php';
25
+include_once __DIR__.'/header.php';
26 26
 
27 27
 $xoops = Xoops::getInstance();
28 28
 $publisher = Publisher::getInstance();
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     $xoops->redirect(\XoopsBaseConfig::get('url'), 2, _MD_PUBLISHER_NO_TOP_PERMISSIONS);
43 43
 }
44 44
 
45
-$xoops->header('module:publisher/publisher_display' . '_' . $publisher->getConfig('idxcat_items_display_type') . '.tpl');
45
+$xoops->header('module:publisher/publisher_display'.'_'.$publisher->getConfig('idxcat_items_display_type').'.tpl');
46 46
 $xoopsTpl = $xoops->tpl();
47 47
 XoopsLoad::loadFile($publisher->path('footer.php'));
48 48
 
@@ -193,16 +193,16 @@  discard block
 block discarded – undo
193 193
 // Category Navigation Bar
194 194
 $pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_cat_perpage'), $catstart, 'catstart', '');
195 195
 if ($publisher->getConfig('format_image_nav') == 1) {
196
-    $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>');
196
+    $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>');
197 197
 } else {
198
-    $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>');
198
+    $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>');
199 199
 }
200 200
 // ITEM Navigation Bar
201 201
 $pagenav = new XoopsPageNav($real_total_items, $publisher->getConfig('idxcat_index_perpage'), $start, 'start', '');
202 202
 if ($publisher->getConfig('format_image_nav') == 1) {
203
-    $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>');
203
+    $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>');
204 204
 } else {
205
-    $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>');
205
+    $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>');
206 206
 }
207 207
 //show subcategories
208 208
 $xoopsTpl->assign('show_subcats', $publisher->getConfig('idxcat_show_subcats'));
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
 // RSS Link
218 218
 if ($publisher->getConfig('idxcat_show_rss_link') == 1) {
219
-    $link = sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s'></a>", PUBLISHER_URL . "/backend.php", _MD_PUBLISHER_RSSFEED, PUBLISHER_URL . "/images/rss.gif", _MD_PUBLISHER_RSSFEED);
219
+    $link = sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s'></a>", PUBLISHER_URL."/backend.php", _MD_PUBLISHER_RSSFEED, PUBLISHER_URL."/images/rss.gif", _MD_PUBLISHER_RSSFEED);
220 220
     $xoopsTpl->assign('rssfeed_link', $link);
221 221
 }
222 222
 
Please login to merge, or discard this patch.
htdocs/modules/publisher/header.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
  * @version         $Id$
20 20
  */
21 21
 
22
-include_once dirname(dirname(__DIR__)) . '/mainfile.php';
23
-include_once __DIR__ . '/include/common.php';
22
+include_once dirname(dirname(__DIR__)).'/mainfile.php';
23
+include_once __DIR__.'/include/common.php';
24 24
 $publisher = Publisher::getInstance();
25 25
 if ($publisher->getConfig('seo_url_rewrite') !== 'none') {
26 26
     XoopsLoad::loadFile($publisher->path('include/seo.inc.php'));
Please login to merge, or discard this patch.
htdocs/modules/waiting/admin/plugins.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  * @author          trabis <[email protected]>
22 22
  * @version         $Id$
23 23
  */
24
-include __DIR__ . '/header.php';
24
+include __DIR__.'/header.php';
25 25
 
26 26
 // Get main instance
27 27
 $xoops = \Xoops::getInstance();
Please login to merge, or discard this patch.
htdocs/modules/waiting/admin/index.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 __DIR__ . '/header.php';
23
+include __DIR__.'/header.php';
24 24
 $xoops = Xoops::getInstance();
25 25
 
26 26
 // header
Please login to merge, or discard this patch.
htdocs/modules/waiting/admin/header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,4 +20,4 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
23
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
Please login to merge, or discard this patch.
htdocs/modules/waiting/blocks/waiting_waiting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
                     //Image support
43 43
                     if (XoopsLoad::fileExists($helper->path('icons/logo_small.png'))) {
44 44
                         $res['image'] = $helper->url('icons/logo_small.png');
45
-                        $res['icon'] = "$dirName-icon" ;
45
+                        $res['icon'] = "$dirName-icon";
46 46
                     } else {
47 47
                         //Icon support
48 48
                         $res['icon'] = isset($res['icon']) ? $res['icon'] : 'glyphicon-time';
Please login to merge, or discard this patch.