Passed
Push — distributed_digests ( 175d64...7330b5 )
by Ilia
15:43
created
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.
mod/sphinx/start.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@
 block discarded – undo
22 22
 	elgg_register_action('sphinx/configure', dirname(__FILE__) . '/actions/sphinx/configure.php', 'admin');
23 23
 }
24 24
 
25
+/**
26
+ * @param string $index
27
+ */
25 28
 function sphinx_query($params, $index) {
26 29
 	$cl = new SphinxClient();
27 30
 	$cl->SetServer("localhost", 9312);
Please login to merge, or discard this patch.
mod/tidypics/lib/migrate.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -265,6 +265,8 @@  discard block
 block discarded – undo
265 265
 /**
266 266
  * Grabs all user IDs with images in the files repo.
267 267
  * return mixed. False on fail, array of GUIDs on success.
268
+ * @param integer $offset
269
+ * @param integer $limit
268 270
  */
269 271
 function tidypics_get_user_guids_with_pics_in_files($offset, $limit) {
270 272
 	$db_prefix = elgg_get_config('dbprefix');
@@ -296,6 +298,7 @@  discard block
 block discarded – undo
296 298
 
297 299
 /**
298 300
  * Gets a list of images for a single user.
301
+ * @param integer|null $user_guid
299 302
  * @return array of GUIDs, false on fail.
300 303
  */
301 304
 function tidypics_get_user_pics_from_files($user_guid) {
Please login to merge, or discard this patch.
mod/tidypics/lib/resize.php 1 patch
Doc Comments   +13 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
  * @param ElggFile holds the image that was uploaded
15 15
  * @param string   folder to store thumbnail in
16 16
  * @param string   name of the thumbnail
17
+ * @param TidypicsImage $file
18
+ * @param string $prefix
19
+ * @param string $filestorename
17 20
  * @return bool    TRUE on success
18 21
  */
19 22
 function tp_create_gd_thumbnails($file, $prefix, $filestorename) {
@@ -91,7 +94,8 @@  discard block
 block discarded – undo
91 94
  * @param bool - watermark this image?
92 95
  * @param int $maxwidth The maximum width of the resized image
93 96
  * @param int $maxheight The maximum height of the resized image
94
- * @param TRUE|FALSE $square If set to TRUE, will take the smallest of maxwidth and maxheight and use it to set the dimensions on all size; the image will be cropped.
97
+ * @param boolean $square If set to TRUE, will take the smallest of maxwidth and maxheight and use it to set the dimensions on all size; the image will be cropped.
98
+ * @param boolean $watermark
95 99
  * @return bool TRUE on success or FALSE on failure
96 100
  */
97 101
 function tp_gd_resize($input_name, $output_name, $watermark, $maxwidth, $maxheight, $square = FALSE, $x1 = 0, $y1 = 0, $x2 = 0, $y2 = 0) {
@@ -194,6 +198,9 @@  discard block
 block discarded – undo
194 198
  * @param ElggFile holds the image that was uploaded
195 199
  * @param string   folder to store thumbnail in
196 200
  * @param string   name of the thumbnail
201
+ * @param TidypicsImage $file
202
+ * @param string $prefix
203
+ * @param string $filestorename
197 204
  * @return bool    TRUE on success
198 205
  */
199 206
 function tp_create_imagick_thumbnails($file, $prefix, $filestorename) {
@@ -269,7 +276,7 @@  discard block
 block discarded – undo
269 276
  * @param string $output_name The name of the file to be written
270 277
  * @param int $maxwidth The maximum width of the resized image
271 278
  * @param int $maxheight The maximum height of the resized image
272
- * @param TRUE|FALSE $square If set to TRUE, will take the smallest of maxwidth and maxheight and use it to set the dimensions on all size; the image will be cropped.
279
+ * @param boolean $square If set to TRUE, will take the smallest of maxwidth and maxheight and use it to set the dimensions on all size; the image will be cropped.
273 280
  * @return bool TRUE on success
274 281
  */
275 282
 function tp_imagick_resize($input_name, $output_name, $maxwidth, $maxheight, $square = FALSE, $x1 = 0, $y1 = 0, $x2 = 0, $y2 = 0) {
@@ -324,6 +331,9 @@  discard block
 block discarded – undo
324 331
  * @param ElggFile holds the image that was uploaded
325 332
  * @param string   folder to store thumbnail in
326 333
  * @param string   name of the thumbnail
334
+ * @param TidypicsImage $file
335
+ * @param string $prefix
336
+ * @param string $filestorename
327 337
  * @return bool    TRUE on success
328 338
  */
329 339
 function tp_create_im_cmdline_thumbnails($file, $prefix, $filestorename) {
@@ -398,7 +408,7 @@  discard block
 block discarded – undo
398 408
  * @param string $output_name The name of the file to be written
399 409
  * @param int $maxwidth The maximum width of the resized image
400 410
  * @param int $maxheight The maximum height of the resized image
401
- * @param TRUE|FALSE $square If set to TRUE, will take the smallest of maxwidth and maxheight and use it to set the dimensions on all size; the image will be cropped.
411
+ * @param boolean $square If set to TRUE, will take the smallest of maxwidth and maxheight and use it to set the dimensions on all size; the image will be cropped.
402 412
  * @return bool
403 413
  */
404 414
 function tp_im_cmdline_resize($input_name, $output_name, $maxwidth, $maxheight, $square = FALSE, $x1 = 0, $y1 = 0, $x2 = 0, $y2 = 0) {
Please login to merge, or discard this patch.
mod/tidypics/lib/tidypics.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -60,6 +60,7 @@
 block discarded – undo
60 60
  *
61 61
  * Each album gets a subdirectory based on its container id
62 62
  *
63
+ * @param integer $album_guid
63 64
  * @return string	path to image directory
64 65
  */
65 66
 function tp_get_img_dir($album_guid) {
Please login to merge, or discard this patch.
mod/tidypics/lib/upload.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
  * Check if there is enough memory to process this image
54 54
  *
55 55
  * @param string $image_lib
56
- * @param int $requiredMemory
56
+ * @param integer $mem_required
57 57
  * @return bool false = not enough memory
58 58
  */
59 59
 function tp_upload_memory_check($image_lib, $mem_required) {
Please login to merge, or discard this patch.
mod/twitter_api/lib/twitter_api.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -333,6 +333,7 @@
 block discarded – undo
333 333
  * Gets the url to authorize a user.
334 334
  *
335 335
  * @param string $callback The callback URL
336
+ * @return string
336 337
  */
337 338
 function twitter_api_get_authorize_url($callback = NULL, $login = true) {
338 339
 	$session = elgg_get_session();
Please login to merge, or discard this patch.
mod/twitter_api/start.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
  * @param string $type
165 165
  * @param array  $return_value
166 166
  * @param array  $params
167
- * @return array
167
+ * @return string[]
168 168
  */
169 169
 function twitter_api_public_pages($hook, $type, $return_value, $params) {
170 170
 	$return_value[] = 'twitter_api/forward';
Please login to merge, or discard this patch.