@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function update(string $tableName, array $record, string $where, int $limit = 10000000): int |
| 44 | 44 | { |
| 45 | - $this->updateWasCalledCounter ++; |
|
| 45 | + $this->updateWasCalledCounter++; |
|
| 46 | 46 | |
| 47 | 47 | return 1; |
| 48 | 48 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function delete($tableName, $where, $limit = 10000000): int |
| 63 | 63 | { |
| 64 | - $this->deleteWasCalledCounter ++; |
|
| 64 | + $this->deleteWasCalledCounter++; |
|
| 65 | 65 | |
| 66 | 66 | return 1; |
| 67 | 67 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function insert(string $tableName, array $record): int |
| 161 | 161 | { |
| 162 | - $this->insertsCounter ++; |
|
| 162 | + $this->insertsCounter++; |
|
| 163 | 163 | |
| 164 | 164 | return 1; |
| 165 | 165 | } |
@@ -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 | } |