Code Duplication    Length = 1-1 lines in 2 locations

src/DotKey.php 2 locations

@@ 164-164 (lines=1) @@
161
                return;
162
            }
163
            
164
            if (!isset($item[$key]) && $create) {
165
                $item[$key] = $create === 'array' ? [] : (object)[];
166
            }
167
            
@@ 177-177 (lines=1) @@
174
                return;
175
            }
176
            
177
            if (!isset($item->$key) && $create) {
178
                $item->$key = $create === 'array' ? [] : (object)[];
179
            }
180