Passed
Push — master ( 4c7da5...a55b86 )
by Ilia
09:52
created
mod/contactform/include/simple-captcha.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -80,6 +80,10 @@
 block discarded – undo
80 80
         }//else
81 81
         return $ret;
82 82
     }
83
+
84
+    /**
85
+     * @param string $answer
86
+     */
83 87
     function Md5CaptchaAnswer($answer)
84 88
     {
85 89
         return md5($this->GetKey().$answer);
Please login to merge, or discard this patch.
mod/cp_notifications/actions/cp_notifications/set_personal_subscription.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
 /**
101 101
  * @param 	$user_guid user's guid
102
- * @return 	query for all the content that the user is associated with
102
+ * @return 	string for all the content that the user is associated with
103 103
  */
104 104
 function get_content($user_guid) {
105 105
 	$dbprefix = elgg_get_config('dbprefix');
Please login to merge, or discard this patch.
custom_index_widgets/views/default/widgets/latest_events_index/content.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -9,6 +9,11 @@
 block discarded – undo
9 9
 	require_once($CONFIG->pluginspath.'event_calendar/models/model.php');
10 10
 	
11 11
 	if(!function_exists('getLastDayOfMonth')){
12
+
13
+		/**
14
+		 * @param string $month
15
+		 * @param string $year
16
+		 */
12 17
 		function getLastDayOfMonth($month,$year) {
13 18
 			return idate('d', mktime(0, 0, 0, ($month + 1), 0, $year));
14 19
 		}
Please login to merge, or discard this patch.
mod/diagnostics/start.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
  * Recursively list through a directory tree producing a hash of all installed files
53 53
  *
54 54
  * @param starting dir $dir
55
- * @param buffer $buffer
55
+ * @param string $dir
56 56
  */
57 57
 function diagnostics_md5_dir($dir) {
58 58
 	$extensions_allowed = array('.php', '.js', '.css');
Please login to merge, or discard this patch.
mod/elgg_solr/lib/functions.php 1 patch
Doc Comments   +12 added lines, -3 removed lines patch added patch discarded remove patch
@@ -524,9 +524,11 @@  discard block
 block discarded – undo
524 524
 /**
525 525
  * Register a function to define specific configuration of an entity in solr
526 526
  * 
527
- * @param type $type - the entity type
528
- * @param type $subtype - the entity subtype
529
- * @param type $function - the function to call for updating an entity in solr
527
+ * @param string $type - the entity type
528
+ * @param type string - the entity subtype
529
+ * @param type string - the function to call for updating an entity in solr
530
+ * @param string $subtype
531
+ * @param string $function
530 532
  */
531 533
 function elgg_solr_register_solr_entity_type($type, $subtype, $function) {
532 534
 	$solr_entities = elgg_get_config('solr_entities');
@@ -779,6 +781,9 @@  discard block
 block discarded – undo
779 781
 	return true;
780 782
 }
781 783
 
784
+/**
785
+ * @param string $message
786
+ */
782 787
 function elgg_solr_debug_log($message) {
783 788
 	error_log($message);
784 789
 }
@@ -1020,6 +1025,10 @@  discard block
 block discarded – undo
1020 1025
 	return $stats;
1021 1026
 }
1022 1027
 
1028
+/**
1029
+ * @param integer $starttime
1030
+ * @param integer $endtime
1031
+ */
1023 1032
 function elgg_solr_get_system_count($options, $starttime, $endtime) {
1024 1033
 	$options['wheres'] = array(
1025 1034
 		"e.time_created >= {$starttime}",
Please login to merge, or discard this patch.
mod/embed_extender/lib/embed_extender.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -6,6 +6,10 @@
 block discarded – undo
6 6
 	return embed_extender_parser(' ' . $returnvalue . ' ', $view, $context);
7 7
 }
8 8
 
9
+/**
10
+ * @param string $input
11
+ * @param string|null $context
12
+ */
9 13
 function embed_extender_parser($input, $view, $context)
10 14
 {
11 15
 	$allowed_contexts = array('blog', 'messageboard', 'widgets', 'pages', 'bookmarks', 'file', 'event_calendar', 'photos', 'polls');
Please login to merge, or discard this patch.
mod/enhanced_user_search/lib/functions.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@  discard block
 block discarded – undo
39 39
    * @param string term   Search term
40 40
    * @param int    limit  Maximum number of results to return
41 41
    * @param int    offset Begin returning results starting from offset
42
+   * @param string $term
43
+   * @param integer $limit
44
+   * @param integer $offset
42 45
    *
43 46
    * @return array Query result set
44 47
    *               array(
@@ -175,6 +178,7 @@  discard block
 block discarded – undo
175 178
    *
176 179
    * @param string haystack String to search in
177 180
    * @param string term     String to search for in haystack
181
+   * @param string $term
178 182
    * @return boolean
179 183
    */
180 184
   private function isMatched($haystack, $term) {
Please login to merge, or discard this patch.
mod/event_calendar/models/model.php 1 patch
Doc Comments   +61 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,6 +276,10 @@  discard block
 block discarded – undo
276 276
 	return $event;
277 277
 }
278 278
 
279
+/**
280
+ * @param integer $start_date
281
+ * @param integer $end_date
282
+ */
279 283
 function event_calendar_get_events_between($start_date, $end_date, $is_count=false, $limit=10, $offset=0, $container_guid=0, $region='-') {
280 284
 	$polls_supported = elgg_is_active_plugin('event_poll');
281 285
 	if ($is_count) {
@@ -324,6 +328,10 @@  discard block
 block discarded – undo
324 328
 	return $non_repeating_events;
325 329
 }
326 330
 
331
+/**
332
+ * @param integer $container_guid
333
+ * @param string $region
334
+ */
327 335
 function event_calendar_get_repeating_events_between($start_date, $end_date, $container_guid, $region) {
328 336
 	// game plan: get all repeating events with start date <= $end_date and then generate all possible events
329 337
 	// sanity check
@@ -428,6 +436,10 @@  discard block
 block discarded – undo
428 436
 	return $repeating_events;
429 437
 }
430 438
 
439
+/**
440
+ * @param integer $start_date
441
+ * @param integer $end_date
442
+ */
431 443
 function event_calendar_get_open_events_between($start_date, $end_date, $is_count=false, $limit=10, $offset=0, $container_guid=0, $region='-', $meta_max = 'spots', $relationship_name = 'personal_event') {
432 444
 	if ($is_count) {
433 445
 		$count = event_calendar_get_entities_from_metadata_between('start_date', 'end_date', $start_date, $end_date, "object", "event_calendar", 0, $container_guid, $limit, $offset, "", 0, false, true, $region, $meta_max, $relationship_name);
@@ -441,6 +453,10 @@  discard block
 block discarded – undo
441 453
 	}
442 454
 }
443 455
 
456
+/**
457
+ * @param integer $container_guid
458
+ * @param string $region
459
+ */
444 460
 function event_calendar_get_open_repeating_events_between($start_date, $end_date, $container_guid, $region) {
445 461
 	$db_prefix = elgg_get_config('dbprefix');
446 462
 	$meta_max = 'spots';
@@ -505,6 +521,9 @@  discard block
 block discarded – undo
505 521
 
506 522
 
507 523
 //For list event
524
+/**
525
+ * @param boolean $is_count
526
+ */
508 527
 function event_calendar_get_events_for_user_between($start_date, $end_date, $is_count, $limit=10, $offset=0, $user_guid, $container_guid=0, $region='-') {
509 528
 	$options = array(
510 529
 		'type' => 'object',
@@ -549,6 +568,12 @@  discard block
 block discarded – undo
549 568
 
550 569
 
551 570
 //For calendar event
571
+/**
572
+ * @param integer $start_date
573
+ * @param integer $end_date
574
+ * @param boolean $is_count
575
+ * @param integer $user_guid
576
+ */
552 577
 function event_calendar_get_events_for_user_between2($start_date, $end_date, $is_count, $limit=10, $offset=0, $user_guid, $container_guid=0, $region='-') {
553 578
 	$options = array(
554 579
 		'type' => 'object',
@@ -590,6 +615,10 @@  discard block
 block discarded – undo
590 615
 	}
591 616
 }
592 617
 
618
+/**
619
+ * @param integer $container_guid
620
+ * @param string $region
621
+ */
593 622
 function event_calendar_get_repeating_events_for_user_between($user_guid, $start_date, $end_date, $container_guid, $region) {
594 623
 	$options = array(
595 624
 			'type' => 'object',
@@ -628,6 +657,9 @@  discard block
 block discarded – undo
628 657
 	return event_calendar_get_repeating_event_structure($events, $start_date, $end_date);
629 658
 }
630 659
 
660
+/**
661
+ * @param string $friend_list
662
+ */
631 663
 function event_calendar_get_repeating_events_for_friends_between($user_guid, $friend_list, $start_date, $end_date, $container_guid=0, $region='-') {
632 664
 
633 665
 	$db_prefix = elgg_get_config('dbprefix');
@@ -664,6 +696,11 @@  discard block
 block discarded – undo
664 696
 	return event_calendar_get_repeating_event_structure($events, $start_date, $end_date);
665 697
 }
666 698
 
699
+/**
700
+ * @param integer $start_date
701
+ * @param integer $end_date
702
+ * @param boolean $is_count
703
+ */
667 704
 function event_calendar_get_events_for_friends_between($start_date, $end_date, $is_count, $limit=10, $offset=0, $user_guid, $container_guid=0, $region='-') {
668 705
 	if ($user_guid) {
669 706
 		$user = get_user($user_guid);
@@ -792,14 +829,14 @@  discard block
 block discarded – undo
792 829
  * @param mixed $meta_end_value - end of metadata range, must be numerical value
793 830
  * @param string $entity_type The type of entity to look for, eg 'site' or 'object'
794 831
  * @param string $entity_subtype The subtype of the entity.
795
- * @param mixed $owner_guid Either one integer user guid or an array of user guids
832
+ * @param integer $owner_guid Either one integer user guid or an array of user guids
796 833
  * @param int $container_guid If supplied, the result is restricted to events associated with a specific container
797 834
  * @param int $limit
798 835
  * @param int $offset
799 836
  * @param string $order_by Optional ordering.
800 837
  * @param int $site_guid The site to get entities for. Leave as 0 (default) for the current site; -1 for all sites.
801 838
  * @param boolean $filter Filter by events in personal calendar if true
802
- * @param true|false $count If set to true, returns the total number of entities rather than a list. (Default: false)
839
+ * @param boolean $count If set to true, returns the total number of entities rather than a list. (Default: false)
803 840
  * @param string $meta_max metadata name containing maximum relationship count
804 841
  * @param string $relationship_name relationship name to count
805 842
  *
@@ -979,6 +1016,9 @@  discard block
 block discarded – undo
979 1016
 	return false;
980 1017
 }
981 1018
 
1019
+/**
1020
+ * @param integer $event_guid
1021
+ */
982 1022
 function event_calendar_add_personal_events_from_group($event_guid, $group_guid) {
983 1023
 	$group = get_entity($group_guid);
984 1024
 
@@ -993,6 +1033,9 @@  discard block
 block discarded – undo
993 1033
 	remove_entity_relationship($user_guid, 'personal_event', $event_guid);
994 1034
 }
995 1035
 
1036
+/**
1037
+ * @param integer $limit
1038
+ */
996 1039
 function event_calendar_get_personal_events_for_user($user_guid, $limit) {
997 1040
 	$events = elgg_get_entities_from_relationship(array(
998 1041
 		'type' => 'object',
@@ -1018,6 +1061,9 @@  discard block
 block discarded – undo
1018 1061
 	return array_slice($sorted, 0, $limit);
1019 1062
 }
1020 1063
 
1064
+/**
1065
+ * @param integer $limit
1066
+ */
1021 1067
 function event_calendar_get_users_for_event($event_guid, $limit, $offset=0, $is_count=false) {
1022 1068
 	$options = array(
1023 1069
 		'type' => 'user',
@@ -1355,6 +1401,9 @@  discard block
 block discarded – undo
1355 1401
 }
1356 1402
 
1357 1403
 // returns open, closed or private for the given event and user
1404
+/**
1405
+ * @param integer $user_id
1406
+ */
1358 1407
 function event_calendar_personal_can_manage($event, $user_id) {
1359 1408
 	$status = 'private';
1360 1409
 	$event_calendar_personal_manage = elgg_get_plugin_setting('personal_manage', 'event_calendar');
@@ -2285,6 +2334,10 @@  discard block
 block discarded – undo
2285 2334
 	}
2286 2335
 }
2287 2336
 
2337
+/**
2338
+ * @param string $month
2339
+ * @param string $year
2340
+ */
2288 2341
 function getLastDayOfMonth($month, $year) {
2289 2342
 	return idate('d', mktime(0, 0, 0, ($month + 1), 0, $year));
2290 2343
 }
@@ -2493,6 +2546,9 @@  discard block
 block discarded – undo
2493 2546
 }
2494 2547
 
2495 2548
 // utility function for BBB api calls
2549
+/**
2550
+ * @param string $api_function
2551
+ */
2496 2552
 function event_calendar_bbb_api($api_function, $params=null) {
2497 2553
 
2498 2554
 	$bbb_security_salt = elgg_get_plugin_setting('bbb_security_salt', 'event_calendar');
@@ -2533,6 +2589,9 @@  discard block
 block discarded – undo
2533 2589
 	}
2534 2590
 }
2535 2591
 
2592
+/**
2593
+ * @param ElggEntity $event
2594
+ */
2536 2595
 function event_calendar_create_bbb_conf($event) {
2537 2596
 	$day_in_minutes = 60*24;
2538 2597
 	$now = time();
Please login to merge, or discard this patch.
mod/event_calendar/start.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
  * Title is ignored
179 179
  *
180 180
  * @param array $page
181
- * @return null
181
+ * @return boolean
182 182
  */
183 183
 function event_calendar_page_handler($page) {
184 184
 
Please login to merge, or discard this patch.