Passed
Push — master ( 4c7da5...a55b86 )
by Ilia
09:52
created
mod/missions/lib/missions-errors.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@  discard block
 block discarded – undo
41 41
  * Wes7ley
42 42
  * Wesley9
43 43
  */
44
+/**
45
+ * @param string $name
46
+ */
44 47
 function mm_is_valid_person_name($name)
45 48
 {
46 49
 	$regex = "/^[^0-9]+$/";
@@ -57,6 +60,9 @@  discard block
 block discarded – undo
57 60
  * 532K351
58 61
  * @578(532)
59 62
  */
63
+/**
64
+ * @param string $num
65
+ */
60 66
 function mm_is_guid_number($num)
61 67
 {
62 68
 	$regex = "/^[0-9]*$/";
@@ -110,6 +116,9 @@  discard block
 block discarded – undo
110 116
  * Tests a the start time and duration of the given day of the week.
111 117
  * Also defaults the minutes to '00' if the hour is set and the minute value is null.
112 118
  */
119
+/**
120
+ * @param string $day
121
+ */
113 122
 function mm_validate_time($day, $input_array)
114 123
 {
115 124
 	/*$start_hour = $input_array[$day . '_start_hour'];
Please login to merge, or discard this patch.
mod/missions/start.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
  * @param $type
196 196
  * @param $value
197 197
  * @param $params
198
- * @return array
198
+ * @return string[]
199 199
  *
200 200
  * to run the tests: http://127.0.0.1/gcconnex/engine/tests/suite.php
201 201
  *
Please login to merge, or discard this patch.
mod/mt_activity_tabs/lib/events.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 /**
6 6
  * Pagesetup
7 7
  * 
8
- * @return type
8
+ * @return null|boolean
9 9
  */
10 10
 function pagesetup() {
11 11
 	if (!elgg_is_logged_in()) {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 /**
141 141
  * Run-once upgrades
142
- * @return boolean
142
+ * @return boolean|null
143 143
  */
144 144
 function upgrades() {
145 145
 	if (!elgg_is_admin_logged_in()) {
Please login to merge, or discard this patch.
mod/pages/start.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
  * @param bool   $returnvalue
317 317
  * @param array  $params
318 318
  *
319
- * @return bool
319
+ * @return null|boolean
320 320
  */
321 321
 function pages_write_permission_check($hook, $entity_type, $returnvalue, $params) {
322 322
 	if (!pages_is_page($params['entity'])) {
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
  * @param bool   $returnvalue
360 360
  * @param array  $params
361 361
  *
362
- * @return bool
362
+ * @return null|boolean
363 363
  */
364 364
 function pages_container_permission_check($hook, $entity_type, $returnvalue, $params) {
365 365
 	if (elgg_get_context() != "pages") {
Please login to merge, or discard this patch.
mod/polls/start.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
  * poll page handler; allows the use of fancy URLs
69 69
  *
70 70
  * @param array $page From the page_handler function
71
- * @return true|false Depending on success
71
+ * @return boolean Depending on success
72 72
  */
73 73
 function polls_page_handler($page) {
74 74
 	elgg_load_library('elgg:polls');
@@ -108,7 +108,6 @@  discard block
 block discarded – undo
108 108
 /**
109 109
  * Populates the ->getUrl() method for poll objects
110 110
  *
111
- * @param ElggEntity $pollpost poll post entity
112 111
  * @return string poll post URL
113 112
  */
114 113
 function polls_url($poll) {
Please login to merge, or discard this patch.
mod/search/search_hooks.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -361,7 +361,7 @@
 block discarded – undo
361 361
  * @param string $type   Hook type
362 362
  * @param array  $value  Array of custom search types
363 363
  * @param array  $params Search parameters
364
- * @return array
364
+ * @return string[]
365 365
  */
366 366
 function search_custom_types_tags_hook($hook, $type, $value, $params) {
367 367
 	$value[] = 'tags';
Please login to merge, or discard this patch.
mod/search/start.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
  * (Unless the entire query is < ft_min_word_chars, in which case
294 294
  * it's taken literally.)
295 295
  *
296
- * @param array $query
296
+ * @param string $query
297 297
  * @param str $format Return as an array or a string
298 298
  * @return mixed
299 299
  */
@@ -330,7 +330,6 @@  discard block
 block discarded – undo
330 330
  * Passes results, and original params to the view functions for
331 331
  * search type.
332 332
  *
333
- * @param array $results
334 333
  * @param array $params
335 334
  * @param string $view_type = list, entity or layout
336 335
  * @return string
@@ -379,7 +378,7 @@  discard block
 block discarded – undo
379 378
  * Returns a where clause for a search query.
380 379
  *
381 380
  * @param str $table Prefix for table to search on
382
- * @param array $fields Fields to match against
381
+ * @param string[] $fields Fields to match against
383 382
  * @param array $params Original search params
384 383
  * @return str
385 384
  */
Please login to merge, or discard this patch.
mod/simplesaml/lib/functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
  *
454 454
  * @see simplesaml_generate_unique_username()
455 455
  *
456
- * @return bool|string a unique username, false on failure
456
+ * @return string|false a unique username, false on failure
457 457
  */
458 458
 function simplesaml_generate_username_from_email($email) {
459 459
 	$result = false;
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
  *
477 477
  * @param string $username the username to use as a base
478 478
  *
479
- * @return bool|string a unique username, false on failure
479
+ * @return string|false a unique username, false on failure
480 480
  */
481 481
 function simplesaml_generate_unique_username($username) {
482 482
 	$result = false;
Please login to merge, or discard this patch.
mod/simplesaml/lib/hooks.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  * @param array  $return_value the default return value
12 12
  * @param array  $params       an array with parameter to help extending the result
13 13
  *
14
- * @return array an array with all the allowed pages
14
+ * @return string[] an array with all the allowed pages
15 15
  */
16 16
 function simplesaml_walled_garden_hook($hook, $type, $return_value, $params) {
17 17
 	$result = $return_value;
Please login to merge, or discard this patch.