Completed
Push — master ( fab0a4...8e249d )
by Jeroen
41:43 queued 16:43
created
engine/lib/views.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1938,7 +1938,7 @@
 block discarded – undo
1938 1938
  * @param array   $vars     View vars
1939 1939
  * @param string  $viewtype Temporary viewtype ('' to leave current)
1940 1940
  *
1941
- * @return mixed
1941
+ * @return string
1942 1942
  * @access private
1943 1943
  */
1944 1944
 function _elgg_view_under_viewtype($view, $vars, $viewtype) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,6 @@
 block discarded – undo
48 48
 
49 49
 use Elgg\Menu\Menu;
50 50
 use Elgg\Menu\UnpreparedMenu;
51
-use Elgg\Includer;
52 51
 use Elgg\Project\Paths;
53 52
 
54 53
 /**
Please login to merge, or discard this patch.
engine/classes/Elgg/ActionsService.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -211,6 +211,7 @@  discard block
 block discarded – undo
211 211
 	/**
212 212
 	 * @see elgg_unregister_action
213 213
 	 * @access private
214
+	 * @param string $action
214 215
 	 */
215 216
 	public function unregister($action) {
216 217
 		if (isset($this->actions[$action])) {
@@ -317,6 +318,7 @@  discard block
 block discarded – undo
317 318
 	}
318 319
 
319 320
 	/**
321
+	 * @param string $action
320 322
 	 * @return bool
321 323
 	 * @see action_gatekeeper
322 324
 	 * @access private
@@ -388,6 +390,7 @@  discard block
 block discarded – undo
388 390
 	/**
389 391
 	 * @see elgg_action_exists
390 392
 	 * @access private
393
+	 * @param string $action
391 394
 	 */
392 395
 	public function exists($action) {
393 396
 		return (isset($this->actions[$action]) && file_exists($this->actions[$action]['file']));
@@ -397,6 +400,9 @@  discard block
 block discarded – undo
397 400
 	 * @see ajax_forward_hook
398 401
 	 * @access private
399 402
 	 * @deprecated 2.3
403
+	 * @param string $hook
404
+	 * @param string $reason
405
+	 * @param string $forward_url
400 406
 	 */
401 407
 	public function ajaxForwardHook($hook, $reason, $forward_url, $params) {
402 408
 		if (!elgg_is_xhr()) {
Please login to merge, or discard this patch.
engine/classes/Elgg/Database/PrivateSettingsTable.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
 	 *
413 413
 	 * @param int    $entity_guid The Entity GUID
414 414
 	 * @param string $name        The name of the setting
415
-	 * @return bool
415
+	 * @return integer
416 416
 	 */
417 417
 	public function remove($entity_guid, $name) {
418 418
 		$this->cache->clear($entity_guid);
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 	 * Deletes all private settings for an entity
436 436
 	 *
437 437
 	 * @param int $entity_guid The Entity GUID
438
-	 * @return bool
438
+	 * @return integer
439 439
 	 */
440 440
 	public function removeAllForEntity($entity_guid) {
441 441
 		$this->cache->clear($entity_guid);
Please login to merge, or discard this patch.
engine/classes/ElggUpgrade.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	/**
97 97
 	 * Return instance of the class that processes the data
98 98
 	 *
99
-	 * @return Batch|false
99
+	 * @return integer
100 100
 	 */
101 101
 	public function getBatch() {
102 102
 		return _elgg_services()->upgradeLocator->getBatch($this->class);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 * Sets the timestamp for when the upgrade completed.
107 107
 	 *
108 108
 	 * @param int $time Timestamp when upgrade finished. Defaults to now.
109
-	 * @return bool
109
+	 * @return integer
110 110
 	 */
111 111
 	public function setCompletedTime($time = null) {
112 112
 		if (!$time) {
Please login to merge, or discard this patch.
engine/lib/comments.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
  * Page handler for generic comments manipulation.
39 39
  *
40 40
  * @param array $segments
41
- * @return bool
41
+ * @return boolean|null
42 42
  * @access private
43 43
  */
44 44
 function _elgg_comments_page_handler($segments) {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
  * @param boolean $return Can the current user write to this container?
167 167
  * @param array   $params Array of parameters (container, user, subtype)
168 168
  *
169
- * @return array
169
+ * @return boolean
170 170
  * @access private
171 171
  * @todo this doesn't seem to make a difference if a user can comment or not
172 172
  */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,6 @@
 block discarded – undo
7 7
  * @since 1.9
8 8
  */
9 9
 
10
-use Elgg\Project\Paths;
11
-
12 10
 /**
13 11
  * Comments initialization function
14 12
  *
Please login to merge, or discard this patch.
engine/lib/widgets.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
  * @param string $context    The context for this widget
34 34
  * @param int    $access_id  If not specified, it is set to the default access level
35 35
  *
36
- * @return int|false Widget GUID or false on failure
36
+ * @return integer Widget GUID or false on failure
37 37
  * @since 1.8.0
38 38
  */
39 39
 function elgg_create_widget($owner_guid, $handler, $context, $access_id = null) {
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
  *
61 61
  * This should be called by plugins in their init function.
62 62
  *
63
- * @param string|array $handler     An array of options or the identifier for the widget handler
63
+ * @param string $handler     An array of options or the identifier for the widget handler
64 64
  * @param string       $name        The name of the widget type
65 65
  * @param string       $description A description for the widget type
66
- * @param array        $context     An array of contexts where this widget is allowed
66
+ * @param string[]        $context     An array of contexts where this widget is allowed
67 67
  * @param bool         $multiple    Whether or not multiple instances of this widget
68 68
  *                                  are allowed in a single layout (default: false)
69 69
  *
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
  *
167 167
  * @param array $page Array of pages
168 168
  *
169
- * @return bool
169
+ * @return null|boolean
170 170
  * @access private
171 171
  */
172 172
 function _elgg_widgets_page_handler($page) {
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
  * @param string $type   The type of entity being created.
343 343
  * @param string $return Value
344 344
  * @param mixed  $params Params
345
- * @return true|null
345
+ * @return boolean|null
346 346
  * @access private
347 347
  */
348 348
 function _elgg_default_widgets_permissions_override($hook, $type, $return, $params) {
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
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
  * @param bool   $returnvalue
328 328
  * @param array  $params
329 329
  *
330
- * @return bool
330
+ * @return null|boolean
331 331
  */
332 332
 function pages_write_permission_check($hook, $entity_type, $returnvalue, $params) {
333 333
 	if (!pages_is_page($params['entity'])) {
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
  * @param bool   $returnvalue
371 371
  * @param array  $params
372 372
  *
373
- * @return bool
373
+ * @return null|boolean
374 374
  */
375 375
 function pages_container_permission_check($hook, $entity_type, $returnvalue, $params) {
376 376
 	$container = elgg_extract('container', $params);
Please login to merge, or discard this patch.
engine/lib/pagehandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@
 block discarded – undo
244 244
 /**
245 245
  * Front page handler
246 246
  *
247
- * @return bool
247
+ * @return Elgg\Http\OkResponse
248 248
  */
249 249
 function elgg_front_page_handler() {
250 250
 	return elgg_ok_response(elgg_view_resource('index'));
Please login to merge, or discard this patch.
mod/legacy_urls/start.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  * c) Silently forwards to the new URL
31 31
  *
32 32
  * @param string $url Relative or absolute URL
33
- * @return mixed
33
+ * @return boolean|null
34 34
  */
35 35
 function legacy_urls_redirect($url) {
36 36
 	$method = elgg_get_plugin_setting('redirect_method', 'legacy_urls');
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
  * Handle requests for /tag/<tag string>
92 92
  *
93 93
  * @param array $segments URL segments
94
- * @return mixed
94
+ * @return boolean|null
95 95
  */
96 96
 function legacy_urls_tag_handler($segments) {
97 97
 	$tag = $segments[0];
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
  * Handle requests for URLs that start with /pg/
104 104
  *
105 105
  * @param array $segments URL segments
106
- * @return mixed
106
+ * @return boolean|null
107 107
  */
108 108
 function legacy_urls_pg_handler($segments) {
109 109
 	$url = implode('/', $segments);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
  * @param $hook   string "route"
124 124
  * @param $type   string "blog"
125 125
  * @param $result mixed  Old identifier and segments
126
- * @return mixed
126
+ * @return false|null
127 127
  */
128 128
 function legacy_urls_blog_forward($hook, $type, $result) {
129 129
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
  * @param $hook   string "route"
203 203
  * @param $type   string "bookmarks"
204 204
  * @param $result mixed  Old identifier and segments
205
- * @return mixed
205
+ * @return false|null
206 206
  */
207 207
 function legacy_urls_bookmarks_forward($hook, $type, $result) {
208 208
 
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
  * @param $hook   string "route"
277 277
  * @param $type   string "file"
278 278
  * @param $result mixed  Old identifier and segments
279
- * @return mixed
279
+ * @return false|null
280 280
  */
281 281
 function legacy_urls_file_forward($hook, $type, $result) {
282 282
 
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
  * @param $hook   string "route"
301 301
  * @param $type   string "groups"
302 302
  * @param $result mixed  Old identifier and segments
303
- * @return mixed
303
+ * @return false|null
304 304
  */
305 305
 function legacy_urls_groups_forward($hook, $type, $result) {
306 306
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
  * @param $hook   string "route"
332 332
  * @param $type   string "settings"
333 333
  * @param $result mixed  Old identifier and segments
334
- * @return mixed
334
+ * @return false|null
335 335
  */
336 336
 function legacy_urls_settings_forward($hook, $type, $result) {
337 337
 
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
  * /forum/.*
358 358
  *
359 359
  * @param array $page URL segments
360
- * @return mixed
360
+ * @return boolean
361 361
  */
362 362
 function legacy_urls_forum_handler($page) {
363 363
 	switch ($page[0]) {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
  * @param $hook   string "route"
378 378
  * @param $type   string "messageboard"
379 379
  * @param $result mixed  Old identifier and segments
380
- * @return mixed
380
+ * @return false|null
381 381
  */
382 382
 function legacy_urls_messageboard_forward($hook, $type, $result) {
383 383
 
Please login to merge, or discard this patch.