Passed
Push — master ( 5063d9...a1994b )
by Jeroen
22:08
created
engine/lib/upgrades/create_upgrade.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
  * @param string $directory  Directory to look in
168 168
  * @param array  $exceptions Array of filenames to ignore
169 169
  * @param array  $list       Array of files to append to
170
- * @param mixed  $extensions Array of extensions to allow, NULL for all. Use a dot: array('.php').
170
+ * @param string[]  $extensions Array of extensions to allow, NULL for all. Use a dot: array('.php').
171 171
  *
172 172
  * @return array Filenames in $directory, in the form $directory/filename.
173 173
  */
Please login to merge, or discard this patch.
mod/file/start.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -298,6 +298,9 @@
 block discarded – undo
298 298
 	return elgg_view('file/typecloud', $params);
299 299
 }
300 300
 
301
+/**
302
+ * @param boolean $friends
303
+ */
301 304
 function file_type_cloud_get_url($type, $friends) {
302 305
 	$url = elgg_get_site_url() . 'file/search?subtype=file';
303 306
 
Please login to merge, or discard this patch.
mod/messages/start.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -470,7 +470,7 @@
 block discarded – undo
470 470
  * @param string $return_value
471 471
  * @param array  $params
472 472
  *
473
- * @return array
473
+ * @return string
474 474
  */
475 475
 function messages_ecml_views_hook($hook, $entity_type, $return_value, $params) {
476 476
 	$return_value['messages/messages'] = elgg_echo('messages');
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
@@ -358,7 +358,7 @@
 block discarded – undo
358 358
  * @param string $type   Hook type
359 359
  * @param array  $value  Array of custom search types
360 360
  * @param array  $params Search parameters
361
- * @return array
361
+ * @return string[]
362 362
  */
363 363
 function search_custom_types_tags_hook($hook, $type, $value, $params) {
364 364
 	$value[] = 'tags';
Please login to merge, or discard this patch.
mod/web_services/classes/ElggHMACCache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 	 *
77 77
 	 * Not currently implemented in this cache type.
78 78
 	 *
79
-	 * @return true
79
+	 * @return boolean
80 80
 	 */
81 81
 	public function clear() {
82 82
 		return true;
Please login to merge, or discard this patch.
mod/web_services/lib/web_services.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  *
11 11
  * @param string $method The api name that was exposed
12 12
  *
13
- * @return true or throws an exception
13
+ * @return boolean or throws an exception
14 14
  * @throws APIException
15 15
  * @since 1.7.0
16 16
  * @access private
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
  * Get POST data
170 170
  * Since this is called through a handler, we need to manually get the post data
171 171
  *
172
- * @return POST data as string encoded as multipart/form-data
172
+ * @return string data as string encoded as multipart/form-data
173 173
  * @access private
174 174
  */
175 175
 function get_post_data() {
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
  * @param string $method     Method name
186 186
  * @param array  $parameters List of expected parameters
187 187
  *
188
- * @return true on success or exception
188
+ * @return boolean on success or exception
189 189
  * @throws APIException
190 190
  * @since 1.7.0
191 191
  * @access private
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 /**
339 339
  * PAM: Confirm the HMAC signature
340 340
  *
341
- * @return true if success - otherwise throws exception
341
+ * @return boolean if success - otherwise throws exception
342 342
  *
343 343
  * @throws SecurityException
344 344
  * @since 1.7.0
@@ -708,7 +708,7 @@  discard block
 block discarded – undo
708 708
  * If no handler is found, this returns a 404 error
709 709
  *
710 710
  * @param string $handler Handler name
711
- * @param array  $request Request string
711
+ * @param string  $request Request string
712 712
  *
713 713
  * @return void
714 714
  * @access private
Please login to merge, or discard this patch.
engine/classes/Elgg/Ajax/Service.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
 	/**
115 115
 	 * Send a JSON HTTP response with the given output
116 116
 	 *
117
-	 * @param mixed  $output     Output from a page/action handler
117
+	 * @param string  $output     Output from a page/action handler
118 118
 	 * @param string $hook_type  The hook type. If given, the response will be filtered by hook
119 119
 	 * @param bool   $try_decode Try to convert a JSON string back to an abject
120 120
 	 * @return JsonResponse
Please login to merge, or discard this patch.
engine/classes/Elgg/Database/Plugins.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -594,7 +594,7 @@
 block discarded – undo
594 594
 	 * @param string $type The type of provides to return
595 595
 	 * @param string $name A specific provided name to return. Requires $provide_type.
596 596
 	 *
597
-	 * @return array
597
+	 * @return string|null
598 598
 	 * @access private
599 599
 	 */
600 600
 	function getProvides($type = null, $name = null) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Elgg\Database;
3 3
 
4 4
 use Elgg\Cache\Pool;
5
-use Elgg\Config;
6 5
 use Elgg\Profilable;
7 6
 use Exception;
8 7
 use Elgg\Cache\PluginSettingsCache;
Please login to merge, or discard this patch.
engine/classes/Elgg/Database/SubtypeTable.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 	/**
37 37
 	 * Set the cached values from the boot data
38 38
 	 *
39
-	 * @param array $values Values from boot data
39
+	 * @param \stdClass[] $values Values from boot data
40 40
 	 * @return void
41 41
 	 */
42 42
 	public function setCachedValues(array $values) {
Please login to merge, or discard this patch.