@@ -97,10 +97,10 @@ |
||
| 97 | 97 | public function getRecordsCount(string $fieldName = 'records_count'):int{ |
| 98 | 98 | $records = $this->executeSelect(); |
| 99 | 99 | |
| 100 | - if(empty($records)){ |
|
| 100 | + if (empty($records)) { |
|
| 101 | 101 | return 0; |
| 102 | 102 | } |
| 103 | - else{ |
|
| 103 | + else { |
|
| 104 | 104 | return $records[0]->$fieldName; |
| 105 | 105 | } |
| 106 | 106 | } |
@@ -99,8 +99,7 @@ |
||
| 99 | 99 | |
| 100 | 100 | if(empty($records)){ |
| 101 | 101 | return 0; |
| 102 | - } |
|
| 103 | - else{ |
|
| 102 | + } else{ |
|
| 104 | 103 | return $records[0]->$fieldName; |
| 105 | 104 | } |
| 106 | 105 | } |