@@ -28,6 +28,10 @@ discard block |
||
28 | 28 | protected $_extracted_from_source = FALSE; |
29 | 29 | |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $server |
|
33 | + * @param string $path |
|
34 | + */ |
|
31 | 35 | public function __construct($server, $path, $filename = NULL) |
32 | 36 | { |
33 | 37 | $this->server($server); |
@@ -320,7 +324,6 @@ discard block |
||
320 | 324 | /** |
321 | 325 | * Get the current url (temp or server) |
322 | 326 | * @param string $thumbnail |
323 | - * @param mixed $protocol |
|
324 | 327 | * @return string |
325 | 328 | */ |
326 | 329 | public function url($thumbnail = NULL) |
@@ -346,6 +349,10 @@ discard block |
||
346 | 349 | return $this->temp()->directory().'/'.$this->filename(); |
347 | 350 | } |
348 | 351 | |
352 | + /** |
|
353 | + * @param string $method |
|
354 | + * @param string $thumbnail |
|
355 | + */ |
|
349 | 356 | protected function location($method, $thumbnail = NULL) |
350 | 357 | { |
351 | 358 | if ( ! $this->filename()) |
@@ -14,6 +14,9 @@ discard block |
||
14 | 14 | return new Upload_Temp; |
15 | 15 | } |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $name |
|
19 | + */ |
|
17 | 20 | public static function config($name = NULL) |
18 | 21 | { |
19 | 22 | if ($name !== NULL) |
@@ -33,6 +36,9 @@ discard block |
||
33 | 36 | |
34 | 37 | protected $_directory; |
35 | 38 | |
39 | + /** |
|
40 | + * @param string $directory |
|
41 | + */ |
|
36 | 42 | public function directory($directory = NULL) |
37 | 43 | { |
38 | 44 | if ($directory !== NULL) |
@@ -11,6 +11,9 @@ discard block |
||
11 | 11 | */ |
12 | 12 | class Kohana_Upload_Util { |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $directory |
|
16 | + */ |
|
14 | 17 | public static function download($url, $directory, $filename = NULL) |
15 | 18 | { |
16 | 19 | $url = str_replace(' ', '%20', $url); |
@@ -63,8 +66,7 @@ discard block |
||
63 | 66 | * Move the contents of the stream to a specified directory with a given name |
64 | 67 | * |
65 | 68 | * @param string $stream |
66 | - * @param string $directory |
|
67 | - * @param string $filename |
|
69 | + * @param string $file |
|
68 | 70 | */ |
69 | 71 | public static function stream_copy_to_file($stream, $file) |
70 | 72 | { |
@@ -146,7 +148,7 @@ discard block |
||
146 | 148 | * Filenames can be in the query or the url of the file itself |
147 | 149 | * |
148 | 150 | * @param string $url |
149 | - * @return array |
|
151 | + * @return string[] |
|
150 | 152 | */ |
151 | 153 | public static function filenames_candidates_from_url($url) |
152 | 154 | { |
@@ -9,6 +9,9 @@ |
||
9 | 9 | */ |
10 | 10 | class Minion_Jam_Generate { |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $file |
|
14 | + */ |
|
12 | 15 | public static function modify_file($file, $content, $force = FALSE, $unlink = FALSE) |
13 | 16 | { |
14 | 17 | if ($unlink) |
@@ -43,7 +43,6 @@ |
||
43 | 43 | /** |
44 | 44 | * Automatically sets foreign to sensible defaults. |
45 | 45 | * |
46 | - * @param string $model |
|
47 | 46 | * @param string $name |
48 | 47 | * @return void |
49 | 48 | */ |