Code Duplication    Length = 8-8 lines in 2 locations

src/Gaufrette/Adapter/GoogleCloudStorage.php 1 location

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

src/Gaufrette/Adapter/AwsS3.php 1 location

@@ 315-322 (lines=8) @@
312
        return $options;
313
    }
314
315
    protected function computePath($key)
316
    {
317
        if (empty($this->options['directory'])) {
318
            return $key;
319
        }
320
321
        return sprintf('%s/%s', $this->options['directory'], $key);
322
    }
323
324
    /**
325
     * Computes the key from the specified path.