Code Duplication    Length = 4-4 lines in 2 locations

source/Spiral/ODM/Accessors/AbstractArray.php 1 location

@@ 179-182 (lines=4) @@
176
177
        //Mongo does not support multiple operations for one field, switching to $set (make sure it's
178
        //reasonable)
179
        if ($this->solidState || count($this->atomics) > 1) {
180
            //We don't care about atomics in solid state
181
            return ['$set' => [$container => $this->packValue()]];
182
        }
183
184
        $atomics = [];
185
        foreach ($this->atomics as $operation => $values) {

source/Spiral/ODM/Entities/DocumentCompositor.php 1 location

@@ 299-302 (lines=4) @@
296
297
        //Mongo does not support multiple operations for one field, switching to $set (make sure it's
298
        //reasonable)
299
        if ($this->solidState || count($this->atomics) > 1 || $changedEntities) {
300
            //We don't care about atomics in solid state
301
            return ['$set' => [$container => $this->packValue()]];
302
        }
303
304
        //Aggregate composition specific atomics (pull, push, addToSet) and entity specific atomics
305
        $atomics = [];