Completed
Pull Request — master (#427)
by
unknown
14:58
created
src/Gaufrette/Adapter/Cache.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Gaufrette\Adapter;
4 4
 
5
-use Gaufrette\File;
6 5
 use Gaufrette\Adapter;
7 6
 use Gaufrette\Adapter\InMemory as InMemoryAdapter;
8 7
 
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/DoctrineDbal.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -152,6 +152,10 @@
 block discarded – undo
152 152
         return false;
153 153
     }
154 154
 
155
+    /**
156
+     * @param string $key
157
+     * @param string $column
158
+     */
155 159
     private function getColumnValue($key, $column)
156 160
     {
157 161
         $value = $this->connection->fetchColumn(
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Dropbox.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -162,6 +162,9 @@
 block discarded – undo
162 162
         }
163 163
     }
164 164
 
165
+    /**
166
+     * @param string $key
167
+     */
165 168
     private function getDropboxMetadata($key)
166 169
     {
167 170
         try {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/GoogleCloudStorage.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -349,6 +349,9 @@
 block discarded – undo
349 349
         }
350 350
     }
351 351
 
352
+    /**
353
+     * @param string $key
354
+     */
352 355
     protected function computePath($key)
353 356
     {
354 357
         if (empty($this->options['directory'])) {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/PhpseclibSftp.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -187,6 +187,10 @@  discard block
 block discarded – undo
187 187
         $this->initialized = true;
188 188
     }
189 189
 
190
+    /**
191
+     * @param string|null $directory
192
+     * @param boolean $create
193
+     */
190 194
     protected function ensureDirectoryExists($directory, $create)
191 195
     {
192 196
         $pwd = $this->sftp->pwd();
@@ -201,6 +205,9 @@  discard block
 block discarded – undo
201 205
         }
202 206
     }
203 207
 
208
+    /**
209
+     * @param string $key
210
+     */
204 211
     protected function computePath($key)
205 212
     {
206 213
         return $this->directory.'/'.ltrim($key, '/');
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/OpenCloud.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @param string $key
86 86
      *
87
-     * @return string|bool if cannot read content
87
+     * @return string if cannot read content
88 88
      */
89 89
     public function read($key)
90 90
     {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      *
157 157
      * @param string $key
158 158
      *
159
-     * @return int|bool An UNIX like timestamp or false
159
+     * @return string|false An UNIX like timestamp or false
160 160
      */
161 161
     public function mtime($key)
162 162
     {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/GoogleCloudClientStorage.php 1 patch
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@  discard block
 block discarded – undo
24 24
     protected $resources    = array();
25 25
 
26 26
     /**
27
-     * @param Google\Cloud\Storage\StorageClient    $service    Authenticated storage client class
28 27
      * @param string                                $bucketName Name of the bucket
29 28
      * @param array                                 $options    Options are: "directory" and "acl" (see https://cloud.google.com/storage/docs/access-control/lists)
30 29
      */
@@ -61,6 +60,11 @@  discard block
 block discarded – undo
61 60
         $this->options = array_replace($this->options, $options);
62 61
     }
63 62
     
63
+    /**
64
+     * @param string $key
65
+     *
66
+     * @return string
67
+     */
64 68
     protected function computePath($key)
65 69
     {
66 70
         if (strlen($this->options['directory']))
@@ -86,6 +90,9 @@  discard block
 block discarded – undo
86 90
         return true;
87 91
     }
88 92
     
93
+    /**
94
+     * @param string $name
95
+     */
89 96
     public function setBucket($name)
90 97
     {
91 98
         $this->bucketValidated = null;
@@ -288,6 +295,7 @@  discard block
 block discarded – undo
288 295
     
289 296
     /**
290 297
      * {@inheritdoc}
298
+     * @param string $resourceName
291 299
      */
292 300
     public function getResourceByName($key, $resourceName)
293 301
     {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Apc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
      * @param string $key    - by default ''
139 139
      * @param int    $format - by default APC_ITER_NONE
140 140
      *
141
-     * @return \APCIterator
141
+     * @return \Traversable
142 142
      */
143 143
     protected function getCachedKeysIterator($key = '', $format = APC_ITER_NONE)
144 144
     {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/MogileFS.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     /**
251 251
      * Makes request to MogileFS tracker.
252 252
      *
253
-     * @param cmd Command
253
+     * @param cmd string
254 254
      * @param args Array of arguments
255 255
      *
256 256
      * @return mixed Array on success, false on failure
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
     /**
303 303
      * Get file location at server from MogileFS tracker.
304 304
      *
305
-     * @param key File key
305
+     * @param key string key
306 306
      *
307 307
      * @return mixed Array on success, false on failure
308 308
      */
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      * Sends file to MogileFS tracker.
319 319
      *
320 320
      * @param path Save path at server
321
-     * @param data Data to save
321
+     * @param data string to save
322 322
      *
323 323
      * @return bool
324 324
      */
Please login to merge, or discard this patch.