Test Failed
Pull Request — master (#40)
by Giacomo
04:25
created
src/Relationships/EmbedsMany.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function performInsert(Model $model)
40 40
     {
41 41
         // Generate a new key if needed.
42
-        if ($model->getKeyName() == '_id' && ! $model->getKey()) {
42
+        if ($model->getKeyName() == '_id' && !$model->getKey()) {
43 43
             $model->setAttribute('_id', new ObjectID);
44 44
         }
45 45
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function associate(Model $model)
127 127
     {
128
-        if (! $this->contains($model)) {
128
+        if (!$this->contains($model)) {
129 129
             return $this->associateNew($model);
130 130
         }
131 131
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     protected function associateNew($model)
229 229
     {
230 230
         // Create a new key if needed.
231
-        if ($model->getKeyName() === '_id' && ! $model->getAttribute('_id')) {
231
+        if ($model->getKeyName() === '_id' && !$model->getAttribute('_id')) {
232 232
             $model->setAttribute('_id', new ObjectID);
233 233
         }
234 234
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     protected function setEmbedded($models)
313 313
     {
314
-        if (! is_array($models)) {
314
+        if (!is_array($models)) {
315 315
             $models = [$models];
316 316
         }
317 317
 
Please login to merge, or discard this patch.