Completed
Pull Request — gcconnex (#1593)
by
unknown
45:53 queued 28:10
created
mod/gccollab_theme/include/fgcontactform.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -724,6 +724,9 @@
 block discarded – undo
724 724
         $this->message = $this->StripSlashes($_POST['message']);
725 725
     }
726 726
 
727
+    /**
728
+     * @param string $error
729
+     */
727 730
     function add_error($error)
728 731
     {
729 732
         array_push($this->errors,$error);
Please login to merge, or discard this patch.
mod/gcconnex_theme/include/fgcontactform.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -724,6 +724,9 @@
 block discarded – undo
724 724
         $this->message = $this->StripSlashes($_POST['message']);
725 725
     }
726 726
 
727
+    /**
728
+     * @param string $error
729
+     */
727 730
     function add_error($error)
728 731
     {
729 732
         array_push($this->errors,$error);
Please login to merge, or discard this patch.
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Since.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
     /** @var string The version vector. */
44 44
     private $version = '';
45 45
 
46
+    /**
47
+     * @param string $version
48
+     */
46 49
     public function __construct($version = null, Description $description = null)
47 50
     {
48 51
         Assert::nullOrStringNotEmpty($version);
Please login to merge, or discard this patch.
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Version.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
     /** @var string The version vector. */
44 44
     private $version = '';
45 45
 
46
+    /**
47
+     * @param string $version
48
+     */
46 49
     public function __construct($version = null, Description $description = null)
47 50
     {
48 51
         Assert::nullOrStringNotEmpty($version);
Please login to merge, or discard this patch.
mod/missions/api/v0/export.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
     private $before = null;
14 14
     private $limit = null;
15 15
 
16
+    /**
17
+     * @param string $object_type
18
+     */
16 19
     function __construct($object_type, $subtype = false, $guid = null,
17 20
       $since = null, $before = null, $limit = null, $resume = null,
18 21
       $sort = false) {
Please login to merge, or discard this patch.
mod/missions/lib/missions.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -10,6 +10,12 @@  discard block
 block discarded – undo
10 10
 /*
11 11
  * Packs the language variables for a single language into a single string.
12 12
  */
13
+/**
14
+ * @param string|null $lwc
15
+ * @param string|null $lwe
16
+ * @param string|null $lop
17
+ * @param string|null $lang
18
+ */
13 19
 function mm_pack_language($lwc, $lwe, $lop, $lang)
14 20
 {
15 21
     $returner = '';
@@ -41,6 +47,9 @@  discard block
 block discarded – undo
41 47
 /*
42 48
  * Unpacks a language string into an array of its component variable.
43 49
  */
50
+/**
51
+ * @param string|null $lang
52
+ */
44 53
 function mm_unpack_language($data_string, $lang)
45 54
 {
46 55
     $returner = array();
@@ -71,6 +80,11 @@  discard block
 block discarded – undo
71 80
 /*
72 81
  * Packs the time (hour and minute) into a single string.
73 82
  */
83
+/**
84
+ * @param string|null $hour
85
+ * @param string|null $min
86
+ * @param string|null $day
87
+ */
74 88
 function mm_pack_time($hour, $min, $day)
75 89
 {
76 90
     $returner = '';
@@ -95,6 +109,9 @@  discard block
 block discarded – undo
95 109
 /*
96 110
  * Unpacks the time into an array of hour and minute.
97 111
  */
112
+/**
113
+ * @param string|null $day
114
+ */
98 115
 function mm_unpack_time($data_string, $day)
99 116
 {
100 117
     $returner = array();
@@ -429,6 +446,10 @@  discard block
 block discarded – undo
429 446
  * Notify user function which uses messages_send() to send on site notifications and mail() to send e-mail.
430 447
  * This is here because notify_user() is currently not working.
431 448
  */
449
+/**
450
+ * @param string $title_en
451
+ * @param string $title_fr
452
+ */
432 453
 function mm_notify_user($recipient, $sender, $subject, $title_en,$title_fr,$body_en, $body_fr) {
433 454
 	//notify_user($recipient, $sender, $subject, $body, array(), 'email');
434 455
 
@@ -619,6 +640,9 @@  discard block
 block discarded – undo
619 640
 /*
620 641
  * Returns an accept button to a user who has received an offer if the mission is not full.
621 642
  */
643
+/**
644
+ * @param ElggUser|null $applicant
645
+ */
622 646
 function mm_finalize_button($mission, $applicant) {
623 647
 	$relationship_count = elgg_get_entities_from_relationship(array(
624 648
 			'relationship' => 'mission_accepted',
@@ -784,6 +808,9 @@  discard block
 block discarded – undo
784 808
 /*
785 809
  * Check if the user is opted in to any of the opt-in options.
786 810
  */
811
+/**
812
+ * @param ElggEntity|null $current_user
813
+ */
787 814
 function check_if_opted_in($current_user) {
788 815
     //Nick - adding additional checks for other opportunity types
789 816
 	if($current_user->opt_in_missions == 'gcconnex_profile:opt:yes') {
Please login to merge, or discard this patch.
mod/cp_notifications/start.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
  * @param mixed  $value   The current value of the plugin hook
130 130
  * @param mixed  $params  Data passed from the trigger
131 131
  *
132
- * @return mixed if not null, this will be the new value of the plugin hook
132
+ * @return boolean if not null, this will be the new value of the plugin hook
133 133
  */
134 134
 function minor_save_hook_handler($hook, $type, $value, $params) {
135 135
 
@@ -1299,6 +1299,9 @@  discard block
 block discarded – undo
1299 1299
 }
1300 1300
 
1301 1301
 
1302
+/**
1303
+ * @param string $error_message
1304
+ */
1302 1305
 function notification_logging($error_message) {
1303 1306
 	// logging mechanism
1304 1307
 	if (elgg_is_active_plugin('wet4')) {
@@ -1349,8 +1352,6 @@  discard block
 block discarded – undo
1349 1352
  * run crontab, retrieve users, send digest, reset timer (update timestamp)
1350 1353
  *
1351 1354
  * @param string $hook    The name of the plugin hook
1352
- * @param string $type    The type of the plugin hook
1353
- * @param mixed  $value   The current value of the plugin hook
1354 1355
  * @param mixed  $params  Data passed from the trigger
1355 1356
  */
1356 1357
 function cp_digest_weekly_cron_handler($hook, $entity_type, $return_value, $params) {
@@ -1623,7 +1624,6 @@  discard block
 block discarded – undo
1623 1624
  *
1624 1625
  * @param string $hook    The name of the plugin hook
1625 1626
  * @param string $type    The type of the plugin hook
1626
- * @param mixed  $value   The current value of the plugin hook
1627 1627
  * @param mixed  $params  Data passed from the trigger
1628 1628
  */
1629 1629
 function cpn_email_handler_hook($hook, $type, $notification, $params) {
@@ -1637,7 +1637,6 @@  discard block
 block discarded – undo
1637 1637
  *
1638 1638
  * @param string $hook    The name of the plugin hook
1639 1639
  * @param string $type    The type of the plugin hook
1640
- * @param mixed  $value   The current value of the plugin hook
1641 1640
  * @param mixed  $params  Data passed from the trigger
1642 1641
  *
1643 1642
  * @return mixed if not null, this will be the new value of the plugin hook
Please login to merge, or discard this patch.