Passed
Push — master ( c71eae...5d8d83 )
by Alex
03:24
created
Mezon/PdoCrud/PdoCrud.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,10 +97,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Mezon/PdoCrud/Tests/PdoCrudMock.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.