Code Duplication    Length = 10-10 lines in 2 locations

src/ArrayStore.php 2 locations

@@ 93-102 (lines=10) @@
90
    /**
91
     * {@inheritdoc}
92
     */
93
    public function get($key, $default = null)
94
    {
95
        KeyUtil::validate($key);
96
97
        if (!array_key_exists($key, $this->array)) {
98
            return $default;
99
        }
100
101
        return call_user_func($this->unserialize, $this->array[$key]);
102
    }
103
104
    /**
105
     * {@inheritdoc}
@@ 107-116 (lines=10) @@
104
    /**
105
     * {@inheritdoc}
106
     */
107
    public function getOrFail($key)
108
    {
109
        KeyUtil::validate($key);
110
111
        if (!array_key_exists($key, $this->array)) {
112
            throw NoSuchKeyException::forKey($key);
113
        }
114
115
        return call_user_func($this->unserialize, $this->array[$key]);
116
    }
117
118
    /**
119
     * {@inheritdoc}