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
     * @return string name of the file
@@ 143-149 (lines=7) @@
140
     * @return int The number of bytes that were written into the file, or
141
     *             FALSE on failure
142
     */
143
    public function setContent($content, $metadata = array())
144
    {
145
        $this->content = $content;
146
        $this->setMetadata($metadata);
147
148
        return $this->size = $this->filesystem->write($this->key, $this->content, true);
149
    }
150
151
    /**
152
     * @param string $name name of the file