@@ -30,6 +30,7 @@ discard block |
||
30 | 30 | * Construct with or without current working directory |
31 | 31 | * |
32 | 32 | * @param string $setCwd |
33 | + * @return void |
|
33 | 34 | */ |
34 | 35 | public function __construct($setCwd = false); |
35 | 36 | |
@@ -51,7 +52,7 @@ discard block |
||
51 | 52 | * |
52 | 53 | * @param string $filename |
53 | 54 | * @param string $dirname |
54 | - * @param mixed $data |
|
55 | + * @param string $data |
|
55 | 56 | * @param int $flags |
56 | 57 | * @param resource $context |
57 | 58 | */ |
@@ -102,6 +103,7 @@ discard block |
||
102 | 103 | * |
103 | 104 | * @param unknown $pathname |
104 | 105 | * @param string $shred |
106 | + * @return boolean |
|
105 | 107 | */ |
106 | 108 | public function rm($pathname, $shred = false); |
107 | 109 | |
@@ -167,6 +169,7 @@ discard block |
||
167 | 169 | * |
168 | 170 | * @param string $filename |
169 | 171 | * @param string $user |
172 | + * @return boolean |
|
170 | 173 | */ |
171 | 174 | public function chown($filename = false, $user = false); |
172 | 175 | |
@@ -228,7 +231,7 @@ discard block |
||
228 | 231 | * which is similar to the rules used by common shells. |
229 | 232 | * |
230 | 233 | * @param string $pattern |
231 | - * @param number $flags |
|
234 | + * @param integer $flags |
|
232 | 235 | * @return array matching paths |
233 | 236 | */ |
234 | 237 | public function getGlob($pattern = false, $flags = 0); |
@@ -49,6 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * Assert that if some wierd reason this is called in file |
51 | 51 | * that we return false |
52 | + * @return boolean |
|
52 | 53 | */ |
53 | 54 | public function getLinkTarget(); |
54 | 55 | |
@@ -82,6 +83,7 @@ discard block |
||
82 | 83 | * No purpose |
83 | 84 | * inherited from iterator but useless |
84 | 85 | * An FileObject does not have children so this method returns allways NULL. |
86 | + * @return boolean |
|
85 | 87 | */ |
86 | 88 | public function getChildren(); |
87 | 89 | |
@@ -90,7 +92,7 @@ discard block |
||
90 | 92 | * |
91 | 93 | * Forces a write of all buffered output to the file. |
92 | 94 | * |
93 | - * @return Returns TRUE on success or FALSE on failure |
|
95 | + * @return boolean TRUE on success or FALSE on failure |
|
94 | 96 | */ |
95 | 97 | public function fflush(); |
96 | 98 | |
@@ -146,14 +148,8 @@ discard block |
||
146 | 148 | * |
147 | 149 | * @param array $fields |
148 | 150 | * An array of values. |
149 | - * @param string $delimiter |
|
150 | - * The optional delimiter parameter sets the field delimiter (one character only). |
|
151 | - * @param string $enclosure |
|
152 | - * The optional enclosure parameter sets the field enclosure (one character only). |
|
153 | - * @param string $escape |
|
154 | - * The optional escape parameter sets the escape character (one character only). |
|
155 | 151 | * |
156 | - * @return int|bool Returns the length of the written string or FALSE on failure. |
|
152 | + * @return integer Returns the length of the written string or FALSE on failure. |
|
157 | 153 | * returns FALSE, and does not write the CSV line to the file, if the delimiter |
158 | 154 | * or enclosure parameter is not a single character. |
159 | 155 | * |
@@ -313,7 +309,7 @@ discard block |
||
313 | 309 | * FileObject::setMaxLineLen() is used to read fixed lengths of the file. |
314 | 310 | * |
315 | 311 | * |
316 | - * @return Returns the current line number. |
|
312 | + * @return integer the current line number. |
|
317 | 313 | */ |
318 | 314 | public function key(); |
319 | 315 |
@@ -37,6 +37,7 @@ |
||
37 | 37 | * Gets an InfoObject object for the file |
38 | 38 | * |
39 | 39 | * @param string $class_name |
40 | + * @return \SplFileInfo |
|
40 | 41 | */ |
41 | 42 | public function getFileInfo($class_name = '\HOWI3\libhowi\Filesystem\php5\Objects\InfoObject'); |
42 | 43 | } |
@@ -28,6 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | /** |
30 | 30 | * symlink — Creates a symbolic link |
31 | + * @return boolean |
|
31 | 32 | */ |
32 | 33 | public function symlink($target = false, $link = false); |
33 | 34 | |
@@ -43,6 +44,7 @@ discard block |
||
43 | 44 | |
44 | 45 | /** |
45 | 46 | * link — Create a hard link |
47 | + * @return boolean |
|
46 | 48 | */ |
47 | 49 | public function hardlink($target = false, $link = false); |
48 | 50 | |
@@ -68,6 +70,7 @@ discard block |
||
68 | 70 | |
69 | 71 | /** |
70 | 72 | * readlink — Returns the target of a symbolic link |
73 | + * @return false|string |
|
71 | 74 | */ |
72 | 75 | public function readlink($link = false); |
73 | 76 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * tmpfile — Creates a temporary file |
55 | 55 | * |
56 | - * @return filehandler |
|
56 | + * @return resource |
|
57 | 57 | */ |
58 | 58 | public function tmpfile(); |
59 | 59 | } |
@@ -72,21 +72,33 @@ discard block |
||
72 | 72 | private $level; |
73 | 73 | |
74 | 74 | |
75 | + /** |
|
76 | + * @param boolean $arg |
|
77 | + */ |
|
75 | 78 | public function setStatus($arg) |
76 | 79 | { |
77 | 80 | $this->status = is_bool($arg) ? $arg : false; |
78 | 81 | } |
79 | 82 | |
83 | + /** |
|
84 | + * @param integer $code |
|
85 | + */ |
|
80 | 86 | public function setCode($code) |
81 | 87 | { |
82 | 88 | $this->code = is_int($code) ? $code : 0; |
83 | 89 | } |
84 | 90 | |
91 | + /** |
|
92 | + * @param string $msg |
|
93 | + */ |
|
85 | 94 | public function setMsg($msg) |
86 | 95 | { |
87 | 96 | $this->message = is_string($msg) ? $msg : 'BUG'; |
88 | 97 | } |
89 | 98 | |
99 | + /** |
|
100 | + * @param integer $UID |
|
101 | + */ |
|
90 | 102 | public function setUID($UID) |
91 | 103 | { |
92 | 104 | $this->UID = is_int($UID) ? $UID : 'BUG'; |
@@ -102,6 +114,9 @@ discard block |
||
102 | 114 | $this->microtime = microtime(true); |
103 | 115 | } |
104 | 116 | |
117 | + /** |
|
118 | + * @param string $context |
|
119 | + */ |
|
105 | 120 | public function setContext($context) |
106 | 121 | { |
107 | 122 | $this->context = $context; |
@@ -46,7 +46,6 @@ discard block |
||
46 | 46 | * Gets last access time of file |
47 | 47 | * |
48 | 48 | * @param string $timeformat |
49 | - * @param string $filename |
|
50 | 49 | * @return int or formated output |
51 | 50 | */ |
52 | 51 | public function getATime($timeformat = false, $pathname = false); |
@@ -55,7 +54,6 @@ discard block |
||
55 | 54 | * Gets inode change time of file |
56 | 55 | * |
57 | 56 | * @param string $timeformat |
58 | - * @param string $filename |
|
59 | 57 | * @return int or formated output |
60 | 58 | */ |
61 | 59 | public function getCTime($timeformat = false, $pathname = false); |
@@ -64,7 +62,6 @@ discard block |
||
64 | 62 | * Gets file modification time |
65 | 63 | * |
66 | 64 | * @param string $timeformat |
67 | - * @param string $filename |
|
68 | 65 | * @return int or formated output |
69 | 66 | */ |
70 | 67 | public function getMTime($timeformat = false, $pathname = false); |
@@ -81,6 +78,7 @@ discard block |
||
81 | 78 | * ommit emty values? |
82 | 79 | * @param string $ago_single |
83 | 80 | * @param array $clocale |
81 | + * @return string |
|
84 | 82 | */ |
85 | 83 | public function ct_ago($timestamp, $date_format = 'y,m,d,h,i,s', $sfx = true, $ommit_zero = true, $ago_single = true, $clocale = []); |
86 | 84 | |
@@ -101,6 +99,7 @@ discard block |
||
101 | 99 | * Sets the class used with InfoObject::openFile() |
102 | 100 | * |
103 | 101 | * @param string $class_name |
102 | + * @return boolean |
|
104 | 103 | */ |
105 | 104 | public function setFileClass($class_name = "\HOWI3\libhowi\Filesystem\php5\Objects\FileObject"); |
106 | 105 | |
@@ -108,6 +107,7 @@ discard block |
||
108 | 107 | * Sets the class used with InfoObject::getFileInfo() and SplFileInfo::getPathInfo() |
109 | 108 | * |
110 | 109 | * @param string $class_name |
110 | + * @return boolean |
|
111 | 111 | */ |
112 | 112 | public function setInfoClass($class_name = "\HOWI3\libhowi\Filesystem\php5\Objects\InfoObject"); |
113 | 113 |
@@ -173,9 +173,9 @@ discard block |
||
173 | 173 | /** |
174 | 174 | * Add message to log |
175 | 175 | * |
176 | - * @param array $LEVEL |
|
176 | + * @param string $LEVEL |
|
177 | 177 | * from private static $LEVEL; |
178 | - * @param number $code |
|
178 | + * @param integer $code |
|
179 | 179 | * @param string $context |
180 | 180 | * @param string $append_msg |
181 | 181 | * @return void |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | /** |
220 | 220 | * Set loglevel |
221 | 221 | * |
222 | - * @param number $level |
|
222 | + * @param integer $level |
|
223 | 223 | */ |
224 | 224 | public function setLogLevel($level = 0) |
225 | 225 | { |
@@ -274,6 +274,7 @@ discard block |
||
274 | 274 | |
275 | 275 | /** |
276 | 276 | * Return event microtime |
277 | + * @return string |
|
277 | 278 | */ |
278 | 279 | public function getTime() |
279 | 280 | { |
@@ -291,7 +292,6 @@ discard block |
||
291 | 292 | /** |
292 | 293 | * Get response with or without log |
293 | 294 | * |
294 | - * @param string $key |
|
295 | 295 | * @return object |
296 | 296 | */ |
297 | 297 | public function response() |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | /** |
339 | 339 | * Set user id |
340 | 340 | * |
341 | - * @param number $ID |
|
341 | + * @param number $UID |
|
342 | 342 | * @return void |
343 | 343 | */ |
344 | 344 | public function setUID($UID) |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * |
33 | 33 | * @name $FS = FS::load( string $pathname | $ser_cwd_by_caller boolean true = false, PHP_VERSION_ID ); |
34 | 34 | * |
35 | - * @param string|boolean $pathname|$ser_cwd_by_caller |
|
35 | + * @param string|boolean $ser_cwd_by_caller |
|
36 | 36 | * Optional: defaults to false. |
37 | 37 | * If path is supplied then that will be current working directory. |
38 | 38 | * If boolean true is supplied it will try to set current working directory as one |