Code Duplication    Length = 10-10 lines in 2 locations

src/ArrayStore.php 2 locations

@@ 60-69 (lines=10) @@
57
    /**
58
     * {@inheritdoc}
59
     */
60
    public function get($key, $default = null)
61
    {
62
        KeyUtil::validate($key);
63
64
        if (!array_key_exists($key, $this->array)) {
65
            return $default;
66
        }
67
68
        return $this->array[$key];
69
    }
70
71
    /**
72
     * {@inheritdoc}
@@ 122-131 (lines=10) @@
119
    /**
120
     * {@inheritdoc}
121
     */
122
    public function remove($key)
123
    {
124
        KeyUtil::validate($key);
125
126
        $removed = array_key_exists($key, $this->array);
127
128
        unset($this->array[$key]);
129
130
        return $removed;
131
    }
132
133
    /**
134
     * {@inheritdoc}