@@ -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 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function update(string $tableName, array $record, string $where, int $limit = 10000000): int |
51 | 51 | { |
52 | - $this->updateWasCalledCounter ++; |
|
52 | + $this->updateWasCalledCounter++; |
|
53 | 53 | |
54 | 54 | $this->updateCalls[] = [ |
55 | 55 | $tableName, |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function delete($tableName, $where, $limit = 10000000): int |
77 | 77 | { |
78 | - $this->deleteWasCalledCounter ++; |
|
78 | + $this->deleteWasCalledCounter++; |
|
79 | 79 | |
80 | 80 | return 1; |
81 | 81 | } |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | */ |
181 | 181 | public function insert(string $tableName, array $record): int |
182 | 182 | { |
183 | - $this->insertsCounter ++; |
|
183 | + $this->insertsCounter++; |
|
184 | 184 | |
185 | 185 | $this->insertCalls[] = [ |
186 | 186 | $tableName, |