Code Duplication    Length = 8-8 lines in 2 locations

src/Gaufrette/Adapter/GoogleCloudStorage.php 1 location

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

src/Gaufrette/Adapter/AwsS3.php 1 location

@@ 337-344 (lines=8) @@
334
        return $options;
335
    }
336
337
    protected function computePath($key)
338
    {
339
        if (empty($this->options['directory'])) {
340
            return $key;
341
        }
342
343
        return sprintf('%s/%s', $this->options['directory'], $key);
344
    }
345
346
    /**
347
     * Computes the key from the specified path.