Completed
Push — master ( 551cc9...be1647 )
by James Ekow Abaka
06:35
created
src/DataOperations.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $invalidFields = [];
62 62
         $data = $this->wrapper->getData();
63 63
 
64
-        if(empty($data)) {
64
+        if (empty($data)) {
65 65
             return true;
66 66
         }
67 67
         
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
         $relationships = $this->wrapper->getDescription()->getRelationships();
160 160
         $presentRelationships = [];
161 161
         
162
-        foreach($relationships ?? [] as $model => $relationship) {
163
-            if(isset($record[$model])) {
162
+        foreach ($relationships ?? [] as $model => $relationship) {
163
+            if (isset($record[$model])) {
164 164
                 $relationship->preSave($record, $record[$model]);
165 165
                 $presentRelationships[$model] = $relationship;
166 166
             }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         
183 183
         // Reset the data so it contains any modifications made by callbacks
184 184
         $record = $this->wrapper->getData()[0];
185
-        foreach($presentRelationships as $model => $relationship) {
185
+        foreach ($presentRelationships as $model => $relationship) {
186 186
             $relationship->postSave($record);
187 187
         }        
188 188
 
Please login to merge, or discard this patch.