@@ -823,7 +823,7 @@ discard block |
||
| 823 | 823 | * |
| 824 | 824 | * @return string|boolean |
| 825 | 825 | */ |
| 826 | - protected function getReturnType(){ |
|
| 826 | + protected function getReturnType() { |
|
| 827 | 827 | $type = false; |
| 828 | 828 | if ($this->temporaryReturnRecordType == 'array') { |
| 829 | 829 | $type = 'array'; |
@@ -835,7 +835,7 @@ discard block |
||
| 835 | 835 | * Check if soft delete is enable setting the condition |
| 836 | 836 | * @return object the current instance |
| 837 | 837 | */ |
| 838 | - protected function checkForSoftDelete(){ |
|
| 838 | + protected function checkForSoftDelete() { |
|
| 839 | 839 | if ($this->softDeleteStatus && $this->returnRecordWithDeleted !== true) { |
| 840 | 840 | $this->getQueryBuilder()->where( |
| 841 | 841 | $this->softDeleteTableColumn, |
@@ -855,11 +855,11 @@ discard block |
||
| 855 | 855 | * |
| 856 | 856 | * @return array|object the final row values |
| 857 | 857 | */ |
| 858 | - protected function relateOneToManyAndManyToOne($relationship, $options, $row, $type){ |
|
| 858 | + protected function relateOneToManyAndManyToOne($relationship, $options, $row, $type) { |
|
| 859 | 859 | if (in_array($relationship, $this->withs)) { |
| 860 | 860 | get_instance()->loader->model($options['model'], $relationship . '_model'); |
| 861 | 861 | $model = get_instance()->{$relationship . '_model'}; |
| 862 | - if($type == 'manyToOne'){ |
|
| 862 | + if ($type == 'manyToOne') { |
|
| 863 | 863 | if (is_object($row)) { |
| 864 | 864 | $row->{$relationship} = $model->getSingleRecord($row->{$options['primary_key']}); |
| 865 | 865 | } else { |
@@ -969,7 +969,7 @@ discard block |
||
| 969 | 969 | } else { |
| 970 | 970 | if (is_int($field)) { |
| 971 | 971 | //Condition like xxxx->getListRecordCond(array('id')); |
| 972 | - $this->getQueryBuilder()->where($value); // WHERE id = '' |
|
| 972 | + $this->getQueryBuilder()->where($value); // WHERE id = '' |
|
| 973 | 973 | } else { |
| 974 | 974 | //Condition like xxxx->getListRecordCond(array('status' => 0)); |
| 975 | 975 | $this->getQueryBuilder()->where($field, $value); // WHERE status = 0 |