@@ -88,11 +88,11 @@ |
||
88 | 88 | |
89 | 89 | $limit = $this->getSelectPayload()->getLimit(); |
90 | 90 | if(!empty($limit)) |
91 | - $select->limit($this->getSelectPayload()->getLimit()); |
|
91 | + $select->limit($this->getSelectPayload()->getLimit()); |
|
92 | 92 | |
93 | 93 | $offset = $this->getSelectPayload()->getOffset(); |
94 | 94 | if(!empty($offset)) |
95 | - $select->offset($this->getSelectPayload()->getOffset()); |
|
95 | + $select->offset($this->getSelectPayload()->getOffset()); |
|
96 | 96 | |
97 | 97 | return $select; |
98 | 98 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getProtectedColumns() |
54 | 54 | { |
55 | - if(is_null($this->protectedColumns)) |
|
55 | + if (is_null($this->protectedColumns)) |
|
56 | 56 | $this->protectedColumns = []; |
57 | 57 | |
58 | 58 | return $this->protectedColumns; |
@@ -80,18 +80,18 @@ discard block |
||
80 | 80 | // Adapta o payload ao padrão do zend |
81 | 81 | $select = new Select(); |
82 | 82 | |
83 | - if(!is_null($this->getSelectPayload()->getOrder())) |
|
83 | + if (!is_null($this->getSelectPayload()->getOrder())) |
|
84 | 84 | $select->order($this->getSelectPayload()->getOrder()); |
85 | 85 | |
86 | 86 | $select->columns($columns); |
87 | 87 | $select->where($this->getSelectPayload()->getWhere()); |
88 | 88 | |
89 | 89 | $limit = $this->getSelectPayload()->getLimit(); |
90 | - if(!empty($limit)) |
|
90 | + if (!empty($limit)) |
|
91 | 91 | $select->limit($this->getSelectPayload()->getLimit()); |
92 | 92 | |
93 | 93 | $offset = $this->getSelectPayload()->getOffset(); |
94 | - if(!empty($offset)) |
|
94 | + if (!empty($offset)) |
|
95 | 95 | $select->offset($this->getSelectPayload()->getOffset()); |
96 | 96 | |
97 | 97 | return $select; |
@@ -52,8 +52,9 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getProtectedColumns() |
54 | 54 | { |
55 | - if(is_null($this->protectedColumns)) |
|
56 | - $this->protectedColumns = []; |
|
55 | + if(is_null($this->protectedColumns)) { |
|
56 | + $this->protectedColumns = []; |
|
57 | + } |
|
57 | 58 | |
58 | 59 | return $this->protectedColumns; |
59 | 60 | } |
@@ -80,19 +81,22 @@ discard block |
||
80 | 81 | // Adapta o payload ao padrão do zend |
81 | 82 | $select = new Select(); |
82 | 83 | |
83 | - if(!is_null($this->getSelectPayload()->getOrder())) |
|
84 | - $select->order($this->getSelectPayload()->getOrder()); |
|
84 | + if(!is_null($this->getSelectPayload()->getOrder())) { |
|
85 | + $select->order($this->getSelectPayload()->getOrder()); |
|
86 | + } |
|
85 | 87 | |
86 | 88 | $select->columns($columns); |
87 | 89 | $select->where($this->getSelectPayload()->getWhere()); |
88 | 90 | |
89 | 91 | $limit = $this->getSelectPayload()->getLimit(); |
90 | - if(!empty($limit)) |
|
91 | - $select->limit($this->getSelectPayload()->getLimit()); |
|
92 | + if(!empty($limit)) { |
|
93 | + $select->limit($this->getSelectPayload()->getLimit()); |
|
94 | + } |
|
92 | 95 | |
93 | 96 | $offset = $this->getSelectPayload()->getOffset(); |
94 | - if(!empty($offset)) |
|
95 | - $select->offset($this->getSelectPayload()->getOffset()); |
|
97 | + if(!empty($offset)) { |
|
98 | + $select->offset($this->getSelectPayload()->getOffset()); |
|
99 | + } |
|
96 | 100 | |
97 | 101 | return $select; |
98 | 102 | } |