Completed
Branch master (2172af)
by Erwan
02:42
created
root/includes/acp/acp_directory.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -1521,6 +1521,9 @@  discard block
 block discarded – undo
1521 1521
 		adm_page_footer();
1522 1522
 	}
1523 1523
 
1524
+	/**
1525
+	 * @return string
1526
+	 */
1524 1527
 	function move_cat_by($dir_cat_row, $action = 'move_up', $steps = 1)
1525 1528
 	{
1526 1529
 		global $db;
@@ -1790,6 +1793,9 @@  discard block
 block discarded – undo
1790 1793
 		return $errors;
1791 1794
 	}
1792 1795
 
1796
+	/**
1797
+	 * @param integer $to_id
1798
+	 */
1793 1799
 	function move_cat_content($from_id, $to_id)
1794 1800
 	{
1795 1801
 		global $db;
@@ -1972,6 +1978,10 @@  discard block
 block discarded – undo
1972 1978
 	return;
1973 1979
 }
1974 1980
 
1981
+/**
1982
+ * @param integer $start
1983
+ * @param integer $stop
1984
+ */
1975 1985
 function sync_dir_links($start, $stop)
1976 1986
 {
1977 1987
 	global $db;
Please login to merge, or discard this patch.
root/includes/mods/directory/functions.php 1 patch
Doc Comments   +15 added lines, -19 removed lines patch added patch discarded remove patch
@@ -55,7 +55,6 @@  discard block
 block discarded – undo
55 55
 	* Edit a link of the db
56 56
 	*
57 57
 	* @param array $data contains all datas to edit in db
58
-	* @param int $u is link's id, for WHERE clause
59 58
 	*/
60 59
 	function edit($data, $url_id, $need_approval)
61 60
 	{
@@ -95,7 +94,6 @@  discard block
 block discarded – undo
95 94
 	/**
96 95
 	* Del a link of the db
97 96
 	*
98
-	* @param int $u is link's id, for WHERE clause
99 97
 	*/
100 98
 	function del($url_id, $cat_id, $cron = false)
101 99
 	{
@@ -168,7 +166,6 @@  discard block
 block discarded – undo
168 166
 	/**
169 167
 	* Increments link view counter
170 168
 	*
171
-	* @param int $u is link's id, for WHERE clause
172 169
 	*/
173 170
 	function view($url_id)
174 171
 	{
@@ -198,7 +195,7 @@  discard block
 block discarded – undo
198 195
 	*
199 196
 	* @param string $url
200 197
 	*
201
-	* @return true if ok, else false.
198
+	* @return boolean if ok, else false.
202 199
 	*/
203 200
 	function checkurl($url)
204 201
 	{
@@ -242,7 +239,7 @@  discard block
 block discarded – undo
242 239
 	*
243 240
 	* @param string $url to clean
244 241
 	*
245
-	* @return the correct string.
242
+	* @return string correct string.
246 243
 	*/
247 244
 	function clean_url($url)
248 245
 	{
@@ -260,7 +257,7 @@  discard block
 block discarded – undo
260 257
 	 *
261 258
 	 * @param array $data link's data from db
262 259
 	 *
263
-	 * @return flag image.
260
+	 * @return string image.
264 261
 	 */
265 262
 	function display_flag($data)
266 263
 	{
@@ -319,7 +316,7 @@  discard block
 block discarded – undo
319 316
 	*
320 317
 	* @param array $data link's data from db
321 318
 	*
322
-	* @return the html code.
319
+	* @return null|string html code.
323 320
 	*/
324 321
 	function display_vote($data, $votes_status)
325 322
 	{
@@ -392,7 +389,7 @@  discard block
 block discarded – undo
392 389
 	*
393 390
 	* @param array $data link's data from db
394 391
 	*
395
-	* @return pr image, false or 'n/a'.
392
+	* @return string|false image, false or 'n/a'.
396 393
 	*/
397 394
 	function display_pagerank($data)
398 395
 	{
@@ -427,9 +424,7 @@  discard block
 block discarded – undo
427 424
 	* Display and resize a banner
428 425
 	*
429 426
 	* @param array $data link's data from db
430
-	* @param bool $have_banner
431
-	*
432
-	* @return banner image.
427
+	* @return string
433 428
 	*/
434 429
 	function display_bann($data)
435 430
 	{
@@ -465,9 +460,9 @@  discard block
 block discarded – undo
465 460
 	* Display number of comments and link for posting
466 461
 	*
467 462
 	* @param int $u is link_id from db
468
-	* @param int $nb_comments si number of comments for this link
463
+	* @param int $nb_comment si number of comments for this link
469 464
 	*
470
-	* @return html code (counter + link).
465
+	* @return null|string code (counter + link).
471 466
 	*/
472 467
 	function display_comm($u, $nb_comment, $comments_status)
473 468
 	{
@@ -598,7 +593,6 @@  discard block
 block discarded – undo
598 593
 	/**
599 594
 	 * Send a email to user who want be notify of a new publication link
600 595
 	 *
601
-	 * @param array $data link's data from db
602 596
 	 */
603 597
 	function notify_member($site)
604 598
 	{
@@ -661,7 +655,7 @@  discard block
 block discarded – undo
661 655
 	*
662 656
 	* @param string $url is link's url
663 657
 	*
664
-	* @return the thumb url
658
+	* @return string thumb url
665 659
 	*/
666 660
 	function thumb_process($url)
667 661
 	{
@@ -794,7 +788,7 @@  discard block
 block discarded – undo
794 788
 	*
795 789
 	* @param string $banner is banner's remote url
796 790
 	*
797
-	* @return false if error, true for ok
791
+	* @return false|string if error, true for ok
798 792
 	*/
799 793
 	function banner_remote($banner, &$error)
800 794
 	{
@@ -865,7 +859,7 @@  discard block
 block discarded – undo
865 859
 	* @param string $destination path to banner directory
866 860
 	* @param string $file is file's name
867 861
 	*
868
-	* @return true if delete success, else false
862
+	* @return boolean if delete success, else false
869 863
 	*/
870 864
 	function banner_delete($destination, $file)
871 865
 	{
@@ -1423,10 +1417,9 @@  discard block
 block discarded – undo
1423 1417
 /**
1424 1418
  * List flags
1425 1419
  *
1426
- * @param string $dir is flag directory path
1427 1420
  * @param $value selected flag
1428 1421
  *
1429
- * @return html code
1422
+ * @return string code
1430 1423
  */
1431 1424
 function get_dir_flag_list($value)
1432 1425
 {
@@ -1638,6 +1631,9 @@  discard block
 block discarded – undo
1638 1631
 	}
1639 1632
 }
1640 1633
 
1634
+/**
1635
+ * @param boolean $optional
1636
+ */
1641 1637
 function validate_link_back($remote_url, $optional, $cron = false)
1642 1638
 {
1643 1639
 	global $config;
Please login to merge, or discard this patch.