Completed
Push — master ( fab0a4...8e249d )
by Jeroen
41:43 queued 16:43
created
engine/classes/Elgg/Database/ConfigTable.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 	 *
130 130
 	 * @param string $name The name of the config value
131 131
 	 *
132
-	 * @return mixed|null
132
+	 * @return string|boolean
133 133
 	 */
134 134
 	function get($name) {
135 135
 		$sql = "
Please login to merge, or discard this patch.
engine/classes/Elgg/ViewsService.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -285,6 +285,7 @@  discard block
 block discarded – undo
285 285
 
286 286
 	/**
287 287
 	 * @access private
288
+	 * @param string $viewtype
288 289
 	 */
289 290
 	public function registerViewtypeFallback($viewtype) {
290 291
 		$this->fallbacks[] = $viewtype;
@@ -292,6 +293,7 @@  discard block
 block discarded – undo
292 293
 
293 294
 	/**
294 295
 	 * @access private
296
+	 * @param string $viewtype
295 297
 	 */
296 298
 	public function doesViewtypeFallback($viewtype) {
297 299
 		return in_array($viewtype, $this->fallbacks);
@@ -454,6 +456,7 @@  discard block
 block discarded – undo
454 456
 
455 457
 	/**
456 458
 	 * @access private
459
+	 * @param string $view
457 460
 	 */
458 461
 	public function viewExists($view, $viewtype = '', $recurse = true) {
459 462
 		$view = self::canonicalizeViewName($view);
@@ -495,6 +498,8 @@  discard block
 block discarded – undo
495 498
 
496 499
 	/**
497 500
 	 * @access private
501
+	 * @param string $view
502
+	 * @param string $view_extension
498 503
 	 */
499 504
 	public function extendView($view, $view_extension, $priority = 501) {
500 505
 		$view = self::canonicalizeViewName($view);
@@ -541,6 +546,8 @@  discard block
 block discarded – undo
541 546
 
542 547
 	/**
543 548
 	 * @access private
549
+	 * @param string $view
550
+	 * @param string $view_extension
544 551
 	 */
545 552
 	public function unextendView($view, $view_extension) {
546 553
 		$view = self::canonicalizeViewName($view);
@@ -562,6 +569,7 @@  discard block
 block discarded – undo
562 569
 
563 570
 	/**
564 571
 	 * @access private
572
+	 * @param string $view
565 573
 	 */
566 574
 	public function registerCacheableView($view) {
567 575
 		$view = self::canonicalizeViewName($view);
@@ -571,6 +579,7 @@  discard block
 block discarded – undo
571 579
 
572 580
 	/**
573 581
 	 * @access private
582
+	 * @param string $view
574 583
 	 */
575 584
 	public function isCacheableView($view) {
576 585
 		$view = self::canonicalizeViewName($view);
Please login to merge, or discard this patch.
engine/classes/ElggMemcache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 	 * @param int    $unused1 Unused
114 114
 	 * @param int    $unused2 Unused
115 115
 	 *
116
-	 * @return mixed
116
+	 * @return ElggEntity
117 117
 	 */
118 118
 	public function load($key, $unused1 = 0, $unused2 = null) {
119 119
 		$key = $this->makeMemcacheKey($key);
Please login to merge, or discard this patch.
engine/lib/notification.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
  *
56 56
  * @param string $object_type    'object', 'user', 'group', 'site'
57 57
  * @param string $object_subtype The subtype or name of the entity
58
- * @param array  $actions        Array of actions or empty array for the action event.
58
+ * @param string[]  $actions        Array of actions or empty array for the action event.
59 59
  *                                An event is usually described by the first string passed
60 60
  *                                to elgg_trigger_event(). Examples include
61 61
  *                                'create', 'update', and 'publish'. The default is 'create'.
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
  * @param string $type   Hook type
212 212
  * @param bool   $result Has anyone sent a message yet?
213 213
  * @param array  $params Hook parameters
214
- * @return bool
214
+ * @return null|boolean
215 215
  * @access private
216 216
  */
217 217
 function _elgg_send_email_notification($hook, $type, $result, $params) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
  *
258 258
  * @see    https://tools.ietf.org/html/rfc5322#section-3.6.4
259 259
  *
260
- * @return array
260
+ * @return null|Elgg\Email
261 261
  * @access private
262 262
  */
263 263
 function _elgg_notifications_smtp_default_message_id_header($hook, $type, $email) {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
  * @param string      $type  "system:email"
285 285
  * @param \Elgg\Email $email Email instance
286 286
  *
287
- * @return array
287
+ * @return null|Elgg\Email
288 288
  * @access private
289 289
  */
290 290
 function _elgg_notifications_smtp_thread_headers($hook, $type, $email) {
@@ -356,12 +356,12 @@  discard block
 block discarded – undo
356 356
 /**
357 357
  * Notify a user via their preferences.
358 358
  *
359
- * @param mixed  $to               Either a guid or an array of guid's to notify.
359
+ * @param integer  $to               Either a guid or an array of guid's to notify.
360 360
  * @param int    $from             GUID of the sender, which may be a user, site or object.
361 361
  * @param string $subject          Message subject.
362 362
  * @param string $message          Message body.
363 363
  * @param array  $params           Misc additional parameters specific to various methods.
364
- * @param mixed  $methods_override A string, or an array of strings specifying the delivery
364
+ * @param string[]  $methods_override A string, or an array of strings specifying the delivery
365 365
  *                                 methods to use - or leave blank for delivery using the
366 366
  *                                 user's chosen delivery methods.
367 367
  *
Please login to merge, or discard this patch.
engine/lib/annotations.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
  *
34 34
  * @param int $id The id of the annotation object being retrieved.
35 35
  *
36
- * @return \ElggAnnotation|false
36
+ * @return ElggExtender
37 37
  */
38 38
 function elgg_get_annotation_from_id($id) {
39 39
 	return _elgg_services()->annotations->get($id);
Please login to merge, or discard this patch.
engine/lib/elgglib.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
  *
250 250
  * @param string $location 'head' or 'footer'
251 251
  *
252
- * @return array
252
+ * @return string[]
253 253
  * @since 1.8.0
254 254
  */
255 255
 function elgg_get_loaded_js($location = 'head') {
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 /**
301 301
  * Get the loaded CSS URLs
302 302
  *
303
- * @return array
303
+ * @return string[]
304 304
  * @since 1.8.0
305 305
  */
306 306
 function elgg_get_loaded_css() {
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
  * @param string $type     Type of file: js or css
356 356
  * @param string $location Page location
357 357
  *
358
- * @return array
358
+ * @return string[]
359 359
  * @since 1.8.0
360 360
  */
361 361
 function elgg_get_loaded_external_files($type, $location) {
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
  * @param string $directory  Directory to look in
371 371
  * @param array  $exceptions Array of filenames to ignore
372 372
  * @param array  $list       Array of files to append to
373
- * @param mixed  $extensions Array of extensions to allow, null for all. Use a dot: array('.php').
373
+ * @param string[]  $extensions Array of extensions to allow, null for all. Use a dot: array('.php').
374 374
  *
375 375
  * @return array Filenames in $directory, in the form $directory/filename.
376 376
  */
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
 /**
439 439
  * Display a system message on next page load.
440 440
  *
441
- * @param string|array $message Message or messages to add
441
+ * @param string $message Message or messages to add
442 442
  *
443 443
  * @return bool
444 444
  */
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
  * @param string $object_type The object type
636 636
  * @param string $object      The object involved in the event
637 637
  *
638
- * @return true
638
+ * @return boolean
639 639
  *
640 640
  * @see elgg_trigger_before_event
641 641
  */
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
  * @param string $hook Hook name
817 817
  * @param string $type Hook type
818 818
  *
819
- * @return array
819
+ * @return callable[]
820 820
  *
821 821
  * @since 2.0.0
822 822
  */
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
  * @param string $event Event name
831 831
  * @param string $type  Object type
832 832
  *
833
- * @return array
833
+ * @return callable[]
834 834
  *
835 835
  * @since 2.0.0
836 836
  */
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
  * A {@elgg_plugin_hook debug log} is called.  If a handler returns
881 881
  * false, it will stop the default logging method.
882 882
  *
883
- * @param mixed $value     The value
883
+ * @param string $value     The value
884 884
  * @param bool  $to_screen Display to screen?
885 885
  * @return void
886 886
  * @since 1.7.0
@@ -1222,7 +1222,7 @@  discard block
 block discarded – undo
1222 1222
  * Extract class names from an array with key "class", optionally merging into a preexisting set.
1223 1223
  *
1224 1224
  * @param array           $array    Source array
1225
- * @param string|string[] $existing Existing name(s)
1225
+ * @param string[] $existing Existing name(s)
1226 1226
  * @return string[]
1227 1227
  *
1228 1228
  * @since 2.3.0
Please login to merge, or discard this patch.
engine/lib/relationships.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
  *                                     subject of the relationships.
88 88
  * @param string $type                 The type of entity related to $guid (defaults to all)
89 89
  *
90
- * @return true
90
+ * @return boolean
91 91
  */
92 92
 function remove_entity_relationships($guid, $relationship = "", $inverse_relationship = false, $type = '') {
93 93
 	return _elgg_services()->relationshipsTable->removeAll($guid, $relationship, $inverse_relationship, $type);
Please login to merge, or discard this patch.
engine/classes/Elgg/Application.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
 	/**
458 458
 	 * Elgg's front controller. Handles basically all incoming URL requests.
459 459
 	 *
460
-	 * @return bool True if Elgg will handle the request, false if the server should (PHP-CLI server)
460
+	 * @return boolean|null True if Elgg will handle the request, false if the server should (PHP-CLI server)
461 461
 	 */
462 462
 	public static function index() {
463 463
 		$req = Request::createFromGlobals();
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
 	/**
475 475
 	 * Routes the request, booting core if not yet booted
476 476
 	 *
477
-	 * @return bool False if Elgg wants the PHP CLI server to handle the request
477
+	 * @return boolean|null False if Elgg wants the PHP CLI server to handle the request
478 478
 	 */
479 479
 	public function run() {
480 480
 		$config = $this->_services->config;
@@ -852,7 +852,7 @@  discard block
 block discarded – undo
852 852
 	 * @param int    $linenum  The line number the error was raised at
853 853
 	 * @param array  $vars     An array that points to the active symbol table where error occurred
854 854
 	 *
855
-	 * @return true
855
+	 * @return boolean
856 856
 	 * @throws \Exception
857 857
 	 * @access private
858 858
 	 */
Please login to merge, or discard this patch.
engine/lib/access.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@
 block discarded – undo
301 301
  * @param string $name       The name of the collection.
302 302
  * @param int    $owner_guid The GUID of the owner (default: currently logged in user).
303 303
  *
304
- * @return int|false The collection ID if successful and false on failure.
304
+ * @return integer The collection ID if successful and false on failure.
305 305
  * @see update_access_collection()
306 306
  * @see delete_access_collection()
307 307
  */
Please login to merge, or discard this patch.