Code Duplication    Length = 7-9 lines in 2 locations

src/Gaufrette/File.php 2 locations

@@ 81-89 (lines=9) @@
78
     *
79
     * @return string
80
     */
81
    public function getContent($metadata = array())
82
    {
83
        if (isset($this->content)) {
84
            return $this->content;
85
        }
86
        $this->setMetadata($metadata);
87
88
        return $this->content = $this->filesystem->read($this->key);
89
    }
90
91
    /**
92
     * Returns Filesystem instance.
@@ 153-159 (lines=7) @@
150
     * @return int The number of bytes that were written into the file, or
151
     *             FALSE on failure
152
     */
153
    public function setContent($content, $metadata = array())
154
    {
155
        $this->content = $content;
156
        $this->setMetadata($metadata);
157
158
        return $this->size = $this->filesystem->write($this->key, $this->content, true);
159
    }
160
161
    /**
162
     * @param string $name name of the file