Completed
Pull Request — master (#435)
by Albin
09:27
created
src/Gaufrette/Adapter/AclAwareAmazonS3.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -145,6 +145,9 @@
 block discarded – undo
145 145
         return isset($this->metadata[$key]) ? $this->metadata[$key] : array();
146 146
     }
147 147
 
148
+    /**
149
+     * @param string $key
150
+     */
148 151
     private function find($key, array $fields = array())
149 152
     {
150 153
         return $this->gridFS->findOne($key, $fields);
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Aws/spec/S3Spec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace spec\Gaufrette\Adapter\Aws;
4 4
 
5 5
 use PhpSpec\ObjectBehavior;
6
-use Prophecy\Argument;
7 6
 
8 7
 class S3Spec extends ObjectBehavior
9 8
 {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Aws/src/S3.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
     protected $metadata = array();
22 22
     protected $detectContentType;
23 23
 
24
+    /**
25
+     * @param string $bucket
26
+     */
24 27
     public function __construct(S3Client $service, $bucket, array $options = array(), $detectContentType = false)
25 28
     {
26 29
         $this->service = $service;
@@ -282,6 +285,9 @@  discard block
 block discarded – undo
282 285
         return true;
283 286
     }
284 287
 
288
+    /**
289
+     * @param string $key
290
+     */
285 291
     protected function getOptions($key, array $options = array())
286 292
     {
287 293
         $options['ACL'] = $this->options['acl'];
@@ -297,6 +303,9 @@  discard block
 block discarded – undo
297 303
         return $options;
298 304
     }
299 305
 
306
+    /**
307
+     * @return string
308
+     */
300 309
     protected function computePath($key)
301 310
     {
302 311
         if (empty($this->options['directory'])) {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Aws/tests/Gaufrette/Functional/S3Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
     public function testCreatesBucketIfMissing()
24 24
     {
25 25
         $mock = new MockPlugin(array(
26
-            new Response(404),                // Head bucket response
27
-            new Response(200),                // Create bucket response
26
+            new Response(404), // Head bucket response
27
+            new Response(200), // Create bucket response
28 28
             new Response(200, array(), 'foo') // Get object response
29 29
         ));
30 30
         $client = $this->getClient();
Please login to merge, or discard this patch.