Code Duplication    Length = 8-8 lines in 2 locations

src/Gaufrette/Adapter/AwsS3.php 1 location

@@ 297-304 (lines=8) @@
294
        return $options;
295
    }
296
297
    protected function computePath($key)
298
    {
299
        if (empty($this->options['directory'])) {
300
            return $key;
301
        }
302
303
        return sprintf('%s/%s', $this->options['directory'], $key);
304
    }
305
306
    /**
307
     * Computes the key from the specified path.

src/Gaufrette/Adapter/GoogleCloudStorage.php 1 location

@@ 360-367 (lines=8) @@
357
        }
358
    }
359
360
    protected function computePath($key)
361
    {
362
        if (empty($this->options['directory'])) {
363
            return $key;
364
        }
365
366
        return sprintf('%s/%s', $this->options['directory'], $key);
367
    }
368
369
    /**
370
     * @param string $path