Code Duplication    Length = 7-8 lines in 2 locations

src/Container/FlatContainer.php 2 locations

@@ 82-88 (lines=7) @@
79
     *
80
     * @return bool
81
     */
82
    public function has($key)
83
    {
84
        if (mb_strpos($key, static::DELIMITER) !== false) {
85
            return (!is_null($this->getChild($key)));
86
        }
87
        return parent::has($key);
88
    }
89
90
    /**
91
     * @param string $key
@@ 95-102 (lines=8) @@
92
     *
93
     * @return mixed|null
94
     */
95
    public function get($key)
96
    {
97
        if (mb_strpos($key, static::DELIMITER) !== false) {
98
            return $this->getChild($key);
99
        }
100
101
        return parent::get($key);
102
    }
103
104
    /**
105
     * @param string $key