@@ -341,6 +341,10 @@ |
||
341 | 341 | return $file; |
342 | 342 | } |
343 | 343 | |
344 | + /** |
|
345 | + * @param string $class |
|
346 | + * @param string $ext |
|
347 | + */ |
|
344 | 348 | private function findFileWithExtension($class, $ext) |
345 | 349 | { |
346 | 350 | // PSR-4 lookup |
@@ -302,6 +302,9 @@ |
||
302 | 302 | { |
303 | 303 | private $filename; |
304 | 304 | |
305 | + /** |
|
306 | + * @param string $filename |
|
307 | + */ |
|
305 | 308 | public function __construct($filename) |
306 | 309 | { |
307 | 310 | $this->filename = $filename; |
@@ -137,7 +137,7 @@ |
||
137 | 137 | /** |
138 | 138 | * @param string $key - by default '' |
139 | 139 | * @param integer $format - by default APC_ITER_NONE |
140 | - * @return \APCIterator |
|
140 | + * @return \Traversable |
|
141 | 141 | * |
142 | 142 | */ |
143 | 143 | protected function getCachedKeysIterator($key = '', $format = APC_ITER_NONE) |
@@ -152,6 +152,10 @@ |
||
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( |
@@ -162,6 +162,9 @@ |
||
162 | 162 | } |
163 | 163 | } |
164 | 164 | |
165 | + /** |
|
166 | + * @param string $key |
|
167 | + */ |
|
165 | 168 | private function getDropboxMetadata($key) |
166 | 169 | { |
167 | 170 | try { |
@@ -328,6 +328,11 @@ discard block |
||
328 | 328 | } |
329 | 329 | } |
330 | 330 | |
331 | + /** |
|
332 | + * @param string $key |
|
333 | + * |
|
334 | + * @return string |
|
335 | + */ |
|
331 | 336 | protected function computePath($key) |
332 | 337 | { |
333 | 338 | if (empty($this->options['directory'])) { |
@@ -341,7 +346,7 @@ discard block |
||
341 | 346 | * @param string $path |
342 | 347 | * @param array $options |
343 | 348 | * |
344 | - * @return bool|\Google_Service_Storage_StorageObject |
|
349 | + * @return string |
|
345 | 350 | */ |
346 | 351 | private function getObjectData($path, $options = array()) |
347 | 352 | { |
@@ -145,6 +145,9 @@ |
||
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); |
@@ -250,7 +250,7 @@ discard block |
||
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 | * @return mixed Array on success, false on failure |
256 | 256 | */ |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | /** |
302 | 302 | * Get file location at server from MogileFS tracker |
303 | 303 | * |
304 | - * @param key File key |
|
304 | + * @param key string key |
|
305 | 305 | * @return mixed Array on success, false on failure |
306 | 306 | */ |
307 | 307 | private function getPaths($key) |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * Sends file to MogileFS tracker |
317 | 317 | * |
318 | 318 | * @param path Save path at server |
319 | - * @param data Data to save |
|
319 | + * @param data string to save |
|
320 | 320 | * @return boolean |
321 | 321 | */ |
322 | 322 | private function putFile($path, $data) |
@@ -185,6 +185,10 @@ discard block |
||
185 | 185 | $this->initialized = true; |
186 | 186 | } |
187 | 187 | |
188 | + /** |
|
189 | + * @param string|null $directory |
|
190 | + * @param boolean $create |
|
191 | + */ |
|
188 | 192 | protected function ensureDirectoryExists($directory, $create) |
189 | 193 | { |
190 | 194 | $pwd = $this->sftp->pwd(); |
@@ -199,6 +203,9 @@ discard block |
||
199 | 203 | } |
200 | 204 | } |
201 | 205 | |
206 | + /** |
|
207 | + * @param string $key |
|
208 | + */ |
|
202 | 209 | protected function computePath($key) |
203 | 210 | { |
204 | 211 | return $this->directory . '/' . ltrim($key, '/'); |