Code Duplication    Length = 14-14 lines in 2 locations

src/Gaufrette/Adapter/AclAwareAmazonS3.php 2 locations

@@ 85-98 (lines=14) @@
82
    /**
83
     * {@inheritdoc}
84
     */
85
    public function rename($key, $new)
86
    {
87
        $rs = $this->delegate->rename($key, $new);
88
89
        try {
90
            $this->updateAcl($new);
91
92
            return $rs;
93
        } catch (\Exception $ex) {
94
            $this->delete($new);
95
96
            return false;
97
        }
98
    }
99
100
    /**
101
     * {@inheritdoc}
@@ 103-116 (lines=14) @@
100
    /**
101
     * {@inheritdoc}
102
     */
103
    public function write($key, $content)
104
    {
105
        $rs = $this->delegate->write($key, $content);
106
107
        try {
108
            $this->updateAcl($key);
109
110
            return $rs;
111
        } catch (\Exception $ex) {
112
            $this->delete($key);
113
114
            return false;
115
        }
116
    }
117
118
    /**
119
     * {@inheritdoc}