@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | if (is_array($groupid)) { |
| 184 | 184 | if (count($groupid) > 1) { |
| 185 | - $in=array(); |
|
| 185 | + $in = array(); |
|
| 186 | 186 | foreach ($groupid as $gid) { |
| 187 | 187 | $in[] = $qb->createNamedParameter($gid, ParameterType::INTEGER); |
| 188 | 188 | } |
@@ -195,9 +195,9 @@ discard block |
||
| 195 | 195 | if (isset($side)) { |
| 196 | 196 | // get both sides in sidebox? (some themes need this) |
| 197 | 197 | if ($side == XOOPS_SIDEBLOCK_BOTH) { |
| 198 | - $qb->andWhere($eb->in('b.side', array(0,1))); |
|
| 198 | + $qb->andWhere($eb->in('b.side', array(0, 1))); |
|
| 199 | 199 | } elseif ($side == XOOPS_CENTERBLOCK_ALL) { |
| 200 | - $qb->andWhere($eb->in('b.side', array(3,4,5,7,8,9))); |
|
| 200 | + $qb->andWhere($eb->in('b.side', array(3, 4, 5, 7, 8, 9))); |
|
| 201 | 201 | } else { |
| 202 | 202 | $qb->andWhere($eb->eq('b.side', $qb->createNamedParameter($side, ParameterType::INTEGER))); |
| 203 | 203 | } |
@@ -248,9 +248,9 @@ discard block |
||
| 248 | 248 | if (isset($side)) { |
| 249 | 249 | // get both sides in sidebox? (some themes need this) |
| 250 | 250 | if ($side == XOOPS_SIDEBLOCK_BOTH) { |
| 251 | - $qb->andWhere($eb->in('side', array(0,1))); |
|
| 251 | + $qb->andWhere($eb->in('side', array(0, 1))); |
|
| 252 | 252 | } elseif ($side == XOOPS_CENTERBLOCK_ALL) { |
| 253 | - $qb->andWhere($eb->in('side', array(3,4,5,7,8,9))); |
|
| 253 | + $qb->andWhere($eb->in('side', array(3, 4, 5, 7, 8, 9))); |
|
| 254 | 254 | } else { |
| 255 | 255 | $qb->andWhere($eb->eq('side', $qb->createNamedParameter($side, ParameterType::INTEGER))); |
| 256 | 256 | } |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | $qb = $this->db2->createXoopsQueryBuilder(); |
| 348 | 348 | $eb = $qb->expr(); |
| 349 | 349 | |
| 350 | - $blockids=null; |
|
| 350 | + $blockids = null; |
|
| 351 | 351 | if (isset($groupid)) { |
| 352 | 352 | $qb ->select('DISTINCT gperm_itemid') |
| 353 | 353 | ->fromPrefix('system_permission', null) |
@@ -377,17 +377,17 @@ discard block |
||
| 377 | 377 | $qb ->fromPrefix('system_blockmodule', 'm') |
| 378 | 378 | ->andWhere($eb->eq('m.block_id', 'b.bid')); |
| 379 | 379 | if (!empty($module_id)) { |
| 380 | - $in=array(); |
|
| 381 | - $in[]=0; |
|
| 382 | - $in[]=(int)($module_id); |
|
| 380 | + $in = array(); |
|
| 381 | + $in[] = 0; |
|
| 382 | + $in[] = (int)($module_id); |
|
| 383 | 383 | if ($toponlyblock) { |
| 384 | - $in[]=(int)(-1); |
|
| 384 | + $in[] = (int)(-1); |
|
| 385 | 385 | } |
| 386 | 386 | } else { |
| 387 | 387 | if ($toponlyblock) { |
| 388 | - $in=array(0, -1); |
|
| 388 | + $in = array(0, -1); |
|
| 389 | 389 | } else { |
| 390 | - $in=0; |
|
| 390 | + $in = 0; |
|
| 391 | 391 | } |
| 392 | 392 | } |
| 393 | 393 | if (is_array($in)) { |
@@ -463,17 +463,17 @@ discard block |
||
| 463 | 463 | $qb ->fromPrefix('system_blockmodule', 'm') |
| 464 | 464 | ->andWhere($eb->eq('m.block_id', 'b.bid')); |
| 465 | 465 | if (!empty($module_id)) { |
| 466 | - $in=array(); |
|
| 467 | - $in[]=0; |
|
| 468 | - $in[]=(int)($module_id); |
|
| 466 | + $in = array(); |
|
| 467 | + $in[] = 0; |
|
| 468 | + $in[] = (int)($module_id); |
|
| 469 | 469 | if ($toponlyblock) { |
| 470 | - $in[]=(int)(-1); |
|
| 470 | + $in[] = (int)(-1); |
|
| 471 | 471 | } |
| 472 | 472 | } else { |
| 473 | 473 | if ($toponlyblock) { |
| 474 | - $in=array(0, -1); |
|
| 474 | + $in = array(0, -1); |
|
| 475 | 475 | } else { |
| 476 | - $in=0; |
|
| 476 | + $in = 0; |
|
| 477 | 477 | } |
| 478 | 478 | } |
| 479 | 479 | if (is_array($in)) { |
@@ -546,10 +546,10 @@ discard block |
||
| 546 | 546 | { |
| 547 | 547 | $ret = ''; |
| 548 | 548 | if ($position == 0) { |
| 549 | - $ret = $contentdb . $content; |
|
| 549 | + $ret = $contentdb.$content; |
|
| 550 | 550 | } else { |
| 551 | 551 | if ($position == 1) { |
| 552 | - $ret = $content . $contentdb; |
|
| 552 | + $ret = $content.$contentdb; |
|
| 553 | 553 | } |
| 554 | 554 | } |
| 555 | 555 | return $ret; |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | ->fromPrefix('system_usergroup', 'g') |
| 97 | 97 | ->where($eb->eq('g.groupid', ':gid')) |
| 98 | 98 | ->setParameter(':gid', $groupid, ParameterType::INTEGER); |
| 99 | - if ($limit!=0 || $start!=0) { |
|
| 99 | + if ($limit != 0 || $start != 0) { |
|
| 100 | 100 | $qb->setFirstResult($start) |
| 101 | 101 | ->setMaxResults($limit); |
| 102 | 102 | } |