Completed
Push — master ( 0f1131...6b0411 )
by Bas
05:36
created
src/Schema/Grammars/Grammar.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             $filter[] = ['doc.'.$attribute, '!=', 'null'];
36 36
         }
37 37
 
38
-        $qb = AQB::for('doc', $collection)
38
+        $qb = AQB::for ('doc', $collection)
39 39
             ->filter($filter)
40 40
             ->limit(1)
41 41
             ->return('true')
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             ['doc.'.$command->to],
66 66
         ];
67 67
 
68
-        $qb = AQB::for('doc', $collection)
68
+        $qb = AQB::for ('doc', $collection)
69 69
             ->filter($filter)
70 70
             ->update(
71 71
                 'doc',
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                     $command->to => 'doc.'.$command->from,
75 75
                 ],
76 76
                 $collection)
77
-            ->options( ['keepNull' => true])
77
+            ->options(['keepNull' => true])
78 78
             ->get();
79 79
 
80 80
         $command->aqb = $qb;
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
             $filter[] = ['doc.'.$attribute, '!=', 'null', 'OR'];
102 102
             $data[$attribute] = 'null';
103 103
         }
104
-        $qb = AQB::for('doc', $collection)
105
-            ->filter($filter )
104
+        $qb = AQB::for ('doc', $collection)
105
+            ->filter($filter)
106 106
             ->update('doc', $data, $collection)
107 107
             ->options(['keepNull' => false])
108 108
             ->get();
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,11 +35,12 @@  discard block
 block discarded – undo
35 35
             $filter[] = ['doc.'.$attribute, '!=', 'null'];
36 36
         }
37 37
 
38
-        $qb = AQB::for('doc', $collection)
39
-            ->filter($filter)
38
+        $qb = AQB::for('doc', $collection) {
39
+                    ->filter($filter)
40 40
             ->limit(1)
41 41
             ->return('true')
42 42
             ->get();
43
+        }
43 44
 
44 45
         $command->aqb = $qb;
45 46
 
@@ -65,8 +66,8 @@  discard block
 block discarded – undo
65 66
             ['doc.'.$command->to],
66 67
         ];
67 68
 
68
-        $qb = AQB::for('doc', $collection)
69
-            ->filter($filter)
69
+        $qb = AQB::for('doc', $collection) {
70
+                    ->filter($filter)
70 71
             ->update(
71 72
                 'doc',
72 73
                 [
@@ -76,6 +77,7 @@  discard block
 block discarded – undo
76 77
                 $collection)
77 78
             ->options( ['keepNull' => true])
78 79
             ->get();
80
+        }
79 81
 
80 82
         $command->aqb = $qb;
81 83
 
@@ -101,11 +103,12 @@  discard block
 block discarded – undo
101 103
             $filter[] = ['doc.'.$attribute, '!=', 'null', 'OR'];
102 104
             $data[$attribute] = 'null';
103 105
         }
104
-        $qb = AQB::for('doc', $collection)
105
-            ->filter($filter )
106
+        $qb = AQB::for('doc', $collection) {
107
+                    ->filter($filter )
106 108
             ->update('doc', $data, $collection)
107 109
             ->options(['keepNull' => false])
108 110
             ->get();
111
+        }
109 112
 
110 113
         $command->aqb = $qb;
111 114
 
Please login to merge, or discard this patch.