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

@@ 350-357 (lines=8) @@
347
        }
348
    }
349
350
    protected function computePath($key)
351
    {
352
        if (empty($this->options['directory'])) {
353
            return $key;
354
        }
355
356
        return sprintf('%s/%s', $this->options['directory'], $key);
357
    }
358
359
    /**
360
     * @param string $path