Code Duplication    Length = 12-12 lines in 2 locations

phpstorm-stub.php 1 location

@@ 892-903 (lines=12) @@
889
     * @param mixed $key
890
     * @param mixed $value
891
     */
892
    public function put($key, $value)
893
    {
894
        $pair = $this->lookupKey($key);
895
896
        if ($pair) {
897
            $pair->value = $value;
898
899
        } else {
900
            $this->checkCapacity();
901
            $this->pairs[] = new Pair($key, $value);
902
        }
903
    }
904
905
    /**
906
     * Creates associations for all keys and corresponding values of either an

src/Map.php 1 location

@@ 345-356 (lines=12) @@
342
     * @param mixed $key
343
     * @param mixed $value
344
     */
345
    public function put($key, $value)
346
    {
347
        $pair = $this->lookupKey($key);
348
349
        if ($pair) {
350
            $pair->value = $value;
351
352
        } else {
353
            $this->checkCapacity();
354
            $this->pairs[] = new Pair($key, $value);
355
        }
356
    }
357
358
    /**
359
     * Creates associations for all keys and corresponding values of either an