Permalink
Browse files

[#4169] CS fixes

- Conditionals require block format
  • Loading branch information...
1 parent 751f077 commit 14fa68a5e32e28f595d7f2e0aa67dd889602fd85 @weierophinney weierophinney committed Apr 12, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 library/Zend/Paginator/Adapter/DbTableGateway.php
View
8 library/Zend/Paginator/Adapter/DbTableGateway.php
@@ -23,8 +23,12 @@ class DbTableGateway extends DbSelect
public function __construct(TableGateway $tableGateway, $where = null, $order = null)
{
$select = $tableGateway->getSql()->select();
- if ($where) $select->where($where);
- if ($order) $select->order($order);
+ if ($where) {
+ $select->where($where);
+ }
+ if ($order) {
+ $select->order($order);
+ }
$dbAdapter = $tableGateway->getAdapter();
$resultSetPrototype = $tableGateway->getResultSetPrototype();

0 comments on commit 14fa68a

Please sign in to comment.