@@ -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 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function update(string $tableName, array $record, string $where, int $limit = 10000000): int |
| 52 | 52 | { |
| 53 | - $this->updateWasCalledCounter ++; |
|
| 53 | + $this->updateWasCalledCounter++; |
|
| 54 | 54 | |
| 55 | 55 | $this->updateCalls[] = [ |
| 56 | 56 | $tableName, |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | public function delete($tableName, $where, $limit = 10000000): int |
| 78 | 78 | { |
| 79 | - $this->deleteWasCalledCounter ++; |
|
| 79 | + $this->deleteWasCalledCounter++; |
|
| 80 | 80 | |
| 81 | 81 | return 1; |
| 82 | 82 | } |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | */ |
| 182 | 182 | public function insert(string $tableName, array $record): int |
| 183 | 183 | { |
| 184 | - $this->insertWasCalledCounter ++; |
|
| 184 | + $this->insertWasCalledCounter++; |
|
| 185 | 185 | |
| 186 | 186 | $this->insertCalls[] = [ |
| 187 | 187 | $tableName, |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | */ |
| 228 | 228 | public function executeSelect(?array $data = null): array |
| 229 | 229 | { |
| 230 | - $this->executeSelectWasCalledCounter ++; |
|
| 230 | + $this->executeSelectWasCalledCounter++; |
|
| 231 | 231 | |
| 232 | 232 | $this->selectResults = array_reverse($this->selectResults); |
| 233 | 233 | |