diff --git a/src/MockCollection.php b/src/MockCollection.php index 6e1b51b..18a41f1 100644 --- a/src/MockCollection.php +++ b/src/MockCollection.php @@ -215,16 +215,13 @@ private function updateCore(&$doc, $update) } foreach ($update['$inc'] ?? [] as $k => $v) { - if (array_key_exists($k, $doc) && - is_integer($v) && - is_integer($doc[$k])) { + if (array_key_exists($k, $doc) && is_integer($v) && is_integer($doc[$k])) { $doc[$k] += $v; } } foreach ($update['$push'] ?? [] as $k => $v) { - if (array_key_exists($k, $doc) && - is_array($doc[$k])) { + if (array_key_exists($k, $doc) && is_array($doc[$k])) { $doc[$k][] = $v; } }