Completed
Push — dev ( be8d0d...249ddf )
by James Ekow Abaka
01:51
created
src/relationships/HasManyRelationship.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
 
27 27
 namespace ntentan\nibii\relationships;
28 28
 
29
-use ntentan\nibii\exceptions\NibiiException;
30 29
 use ntentan\nibii\Relationship;
30
+use ntentan\nibii\exceptions\NibiiException;
31 31
 use ntentan\utils\Text;
32 32
 
33 33
 class HasManyRelationship extends Relationship
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
     public function postSave(&$wrapper)
70 70
     {
71
-        foreach($this->tempData as $relatedRecord) {
71
+        foreach ($this->tempData as $relatedRecord) {
72 72
             $relatedRecord[$this->options['foreign_key']] = $wrapper[$this->options['local_key']];
73 73
             if (!$relatedRecord->save()) {
74 74
                 throw new NibiiException("Failed to save related model [{$this->options['model']}]");
Please login to merge, or discard this patch.