Completed
Push — master ( 0c98dc...038288 )
by Richard
15s queued 11s
created
htdocs/modules/page/admin/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  * @author          Mage Grégory (AKA Mage)
20 20
  * @version         $Id$
21 21
  */
22
-include __DIR__ . '/header.php';
22
+include __DIR__.'/header.php';
23 23
 
24 24
 // heaser
25 25
 $xoops->header();
Please login to merge, or discard this patch.
htdocs/modules/page/jquery_rating.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@
 block discarded – undo
31 31
     $time = time();
32 32
     $content_id = Request::getInt('content_id', 0);
33 33
     $option = Request::getInt('option', 0);
34
-    if (!isset($_SESSION['page_rating' . $content_id]) || $_SESSION['page_rating' . $content_id] < $time) {
35
-        $_SESSION['page_rating' . $content_id] = $time + $interval;
34
+    if (!isset($_SESSION['page_rating'.$content_id]) || $_SESSION['page_rating'.$content_id] < $time) {
35
+        $_SESSION['page_rating'.$content_id] = $time + $interval;
36 36
 
37 37
         // Test if the page exist
38 38
         $contentObj = $content_Handler->get($content_id);
39 39
         if (($contentObj === null)
40 40
 //            || $contentObj->getVar('content_author') == $uid
41
-            || $contentObj->getVar('content_status') == 0 ||  $contentObj->getVar('content_dorating') == 0) {
41
+            || $contentObj->getVar('content_status') == 0 || $contentObj->getVar('content_dorating') == 0) {
42 42
             echo json_encode($ret);
43 43
             exit();
44 44
         }
Please login to merge, or discard this patch.
htdocs/modules/page/xoops_version.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 // paypal
45 45
 $modversion['paypal']                  = array();
46 46
 $modversion['paypal']['business']      = '[email protected]';
47
-$modversion['paypal']['item_name']     = 'Donation : ' . PageLocale::MODULE_DESC;
47
+$modversion['paypal']['item_name']     = 'Donation : '.PageLocale::MODULE_DESC;
48 48
 $modversion['paypal']['amount']        = 0;
49 49
 $modversion['paypal']['currency_code'] = 'USD';
50 50
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 $modversion['hasMain'] = 1;
68 68
 
69 69
 // Mysql file
70
-$modversion['schema']           = 'sql/schema.yml';
70
+$modversion['schema'] = 'sql/schema.yml';
71 71
 //$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
72 72
 
73 73
 // Tables created by sql file (without prefix!)
Please login to merge, or discard this patch.
htdocs/modules/page/preloads/preload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $path = dirname(__DIR__);
37 37
         XoopsLoad::addMap(array(
38
-            'page' => $path . '/class/helper.php',
38
+            'page' => $path.'/class/helper.php',
39 39
         ));
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
htdocs/modules/page/blocks/page_blocks.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             $block[$k] = $v;
38 38
         }
39 39
         // related
40
-        $block['related'] =  $page->getLinkHandler()->menu_related($options[1]);
40
+        $block['related'] = $page->getLinkHandler()->menu_related($options[1]);
41 41
 
42 42
         // get vote by user
43 43
         $block['yourvote'] = $page->getRatingHandler()->getVotebyUser($options[1]);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             $sort = ('sqlite' === \XoopsBaseConfig::get('db-type')) ? 'RANDOM()' : 'RAND()';
53 53
             $content = $page->getContentHandler()->getPagePublished(0, $options[3], $sort);
54 54
         } else {
55
-            $content = $page->getContentHandler()->getPagePublished(0, $options[3], 'content_' . $options[1], $options[2]);
55
+            $content = $page->getContentHandler()->getPagePublished(0, $options[3], 'content_'.$options[1], $options[2]);
56 56
         }
57 57
         foreach (array_keys($content) as $i) {
58 58
             $block['content'][$i] = $content[$i]->getValues();
Please login to merge, or discard this patch.
htdocs/modules/page/class/page_content.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
         // criteria
180 180
         $criteria = new CriteriaCompo();
181
-        $criteria->add(new Criteria('content_id', '(' . implode(', ', $pages_ids) . ')', 'IN'));
181
+        $criteria->add(new Criteria('content_id', '('.implode(', ', $pages_ids).')', 'IN'));
182 182
         $criteria->add(new Criteria('content_status', 0, '!='));
183 183
         $criteria->add(new Criteria('content_maindisplay', 0, '!='));
184 184
         $criteria->setSort($sort);
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
         // criteria
202 202
         $criteria = new CriteriaCompo();
203
-        $criteria->add(new Criteria('content_id', '(' . implode(', ', $pages_ids) . ')', 'IN'));
203
+        $criteria->add(new Criteria('content_id', '('.implode(', ', $pages_ids).')', 'IN'));
204 204
         $criteria->add(new Criteria('content_status', 0, '!='));
205 205
         $criteria->add(new Criteria('content_maindisplay', 0, '!='));
206 206
         $criteria->setSort($sort);
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     {
246 246
         $values = parent::get($content_id)->toArray();
247 247
         $values['content_id'] = 0;
248
-        $values['content_title'] = PageLocale::CONTENT_COPY . $values['content_title'];
248
+        $values['content_title'] = PageLocale::CONTENT_COPY.$values['content_title'];
249 249
         $values['content_weight'] = 0;
250 250
         $values['content_hits'] = 0;
251 251
         $values['content_votes'] = 0;
Please login to merge, or discard this patch.
htdocs/modules/page/class/page_rating.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,6 +100,6 @@
 block discarded – undo
100 100
             ++$i;
101 101
             $total += $v->getVar('rating_rating');
102 102
         }
103
-        return array('voters' => $i, 'average' => $total/$i);
103
+        return array('voters' => $i, 'average' => $total / $i);
104 104
     }
105 105
 }
Please login to merge, or discard this patch.
htdocs/modules/page/class/plugin/system.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@
 block discarded – undo
66 66
         $contents = $page->getContentHandler()->getPagePublished(0, $limit);
67 67
         foreach ($contents as $k => $content) {
68 68
             $ret[$k]['title']   = $content->getVar('content_title');
69
-            $ret[$k]['link']    = $page->url('viewpage.php') . '?id=' . $content->getVar('content_id');
70
-            $ret[$k]['content'] = $content->getVar('content_shorttext') . '<br />' . $content->getVar('content_text');
69
+            $ret[$k]['link']    = $page->url('viewpage.php').'?id='.$content->getVar('content_id');
70
+            $ret[$k]['content'] = $content->getVar('content_shorttext').'<br />'.$content->getVar('content_text');
71 71
             $ret[$k]['date']    = $content->getVar('content_create');
72 72
         }
73 73
         return $ret;
Please login to merge, or discard this patch.
htdocs/modules/page/class/plugin/notifications.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $xoops = Xoops::getInstance();
33 33
         $item = array();
34
-        $item_id = (int) $item_id;
34
+        $item_id = (int)$item_id;
35 35
 
36 36
         if ($category === 'global') {
37 37
             $item['name'] = '';
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
         }
41 41
 
42 42
         if ($category == 'item') {
43
-            $sql = 'SELECT content_title FROM ' . $xoopsDB->prefix('page_content') . ' WHERE content_id = ' . $item_id;
43
+            $sql = 'SELECT content_title FROM '.$xoopsDB->prefix('page_content').' WHERE content_id = '.$item_id;
44 44
             $result = $xoopsDB->query($sql); // TODO: error check
45 45
             $result_array = $xoopsDB->fetchArray($result);
46 46
             $item['name'] = $result_array['title'];
47
-            $item['url'] = \XoopsBaseConfig::get('url') . '/modules/page/viewpage.php?id=' . $item_id;
47
+            $item['url'] = \XoopsBaseConfig::get('url').'/modules/page/viewpage.php?id='.$item_id;
48 48
             return $item;
49 49
         }
50 50
 
Please login to merge, or discard this patch.