Completed
Push — master ( fab0a4...8e249d )
by Jeroen
41:43 queued 16:43
created
engine/classes/Elgg/Application/Database.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	 * @note WARNING! update_data() has the 2nd and 3rd arguments reversed.
95 95
 	 *
96 96
 	 * @param string $query        The query to run.
97
-	 * @param bool   $get_num_rows Return the number of rows affected (default: false).
97
+	 * @param bool   $getNumRows Return the number of rows affected (default: false).
98 98
 	 * @param array  $params       Query params. E.g. [1, 'steve'] or [':id' => 1, ':name' => 'steve']
99 99
 	 *
100 100
 	 * @return bool|int
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	 *
149 149
 	 * @param string $type The type of link we want: "read", "write" or "readwrite".
150 150
 	 *
151
-	 * @return Connection
151
+	 * @return \Doctrine\DBAL\Connection
152 152
 	 * @throws \DatabaseException
153 153
 	 * @access private
154 154
 	 */
Please login to merge, or discard this patch.
engine/classes/Elgg/Database/Seeds/Seeding.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 	 * @param array $attributes Object entity attributes
398 398
 	 * @param array $metadata   Object entity metadata
399 399
 	 *
400
-	 * @return ElggObject
400
+	 * @return \ElggSite
401 401
 	 */
402 402
 	public function createSite(array $attributes = [], array $metadata = []) {
403 403
 		// We don't want to create more than one site
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 	 *
437 437
 	 * @param int[] $exclude GUIDs to exclude
438 438
 	 *
439
-	 * @return ElggGroup|false
439
+	 * @return ElggEntity
440 440
 	 */
441 441
 	public function getRandomGroup(array $exclude = []) {
442 442
 
Please login to merge, or discard this patch.
engine/classes/Elgg/Printer.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,8 @@
 block discarded – undo
12 12
 	/**
13 13
 	 * Prints data
14 14
 	 *
15
-	 * @param mixed $message Data to print
16 15
 	 * @param bool  $display If display is expected by the logger
17
-	 * @param null  $level   Logging level
16
+	 * @param integer  $level   Logging level
18 17
 	 *
19 18
 	 * @return mixed
20 19
 	 */
Please login to merge, or discard this patch.
engine/classes/Elgg/Cli/Command.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
 	 * @param int    $linenum  The line number the error was raised at
115 115
 	 * @param array  $vars     An array that points to the active symbol table where error occurred
116 116
 	 *
117
-	 * @return true
117
+	 * @return boolean
118 118
 	 * @throws \Exception
119 119
 	 * @access private
120 120
 	 */
Please login to merge, or discard this patch.
engine/classes/Elgg/EventsService.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,8 @@  discard block
 block discarded – undo
42 42
 
43 43
 	/**
44 44
 	 * {@inheritdoc}
45
+	 * @param string $name
46
+	 * @param string $type
45 47
 	 */
46 48
 	public function registerHandler($name, $type, $callback, $priority = 500) {
47 49
 		if (in_array($type, ['member', 'friend', 'attached'])
@@ -59,6 +61,7 @@  discard block
 block discarded – undo
59 61
 	 * @see elgg_trigger_event
60 62
 	 * @see elgg_trigger_after_event
61 63
 	 * @access private
64
+	 * @param string|null $type
62 65
 	 */
63 66
 	public function trigger($name, $type, $object = null, array $options = []) {
64 67
 		$options = array_merge([
@@ -142,7 +145,7 @@  discard block
 block discarded – undo
142 145
 	 * @param string $object_type The object type
143 146
 	 * @param string $object      The object involved in the event
144 147
 	 *
145
-	 * @return true
148
+	 * @return boolean
146 149
 	 *
147 150
 	 * @see triggerBefore
148 151
 	 * @since 2.0.0
Please login to merge, or discard this patch.
engine/lib/users.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
  *                                      registered multiple times?
294 294
  * @param string $subtype               Subtype of the user entity
295 295
  *
296
- * @return int|false The new user's GUID; false on failure
296
+ * @return integer The new user's GUID; false on failure
297 297
  * @throws RegistrationException
298 298
  */
299 299
 function register_user($username, $password, $name, $email, $allow_multiple_emails = false, $subtype = null) {
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 /**
416 416
  * Sets the last action time of the given user to right now.
417 417
  *
418
- * @param ElggUser|int $user The user or GUID
418
+ * @param ElggUser $user The user or GUID
419 419
  * @return void
420 420
  */
421 421
 function set_last_action($user) {
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
  * /avatar/edit/<username>
588 588
  *
589 589
  * @param array $page
590
- * @return bool
590
+ * @return boolean|null
591 591
  * @access private
592 592
  */
593 593
 function elgg_avatar_page_handler($page) {
Please login to merge, or discard this patch.
engine/classes/Elgg/I18n/Translator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	/**
80 80
 	 * Get a map of all loaded translations
81 81
 	 *
82
-	 * @return array
82
+	 * @return string
83 83
 	 */
84 84
 	public function getLoadedTranslations() {
85 85
 		return $this->translations;
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 	/**
596 596
 	 * Returns an array of language codes.
597 597
 	 *
598
-	 * @return array
598
+	 * @return string[]
599 599
 	 */
600 600
 	public static function getAllLanguageCodes() {
601 601
 		return [
Please login to merge, or discard this patch.
engine/classes/Elgg/UploadService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * Returns an array of uploaded file objects regardless of upload status/errors
42 42
 	 *
43 43
 	 * @param string $input_name Form input name
44
-	 * @return UploadedFile[]
44
+	 * @return Http\UploadedFile[]
45 45
 	 */
46 46
 	public function getFiles($input_name) {
47 47
 		$files = $this->request->getFiles($input_name);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 * @param string $input_name Form input name
59 59
 	 * @param bool   $check_for_validity If there is an uploaded file, is it required to be valid
60 60
 	 *
61
-	 * @return UploadedFile[]|false
61
+	 * @return string
62 62
 	 */
63 63
 	public function getFile($input_name, $check_for_validity = true) {
64 64
 		$file = $this->request->getFile($input_name, $check_for_validity);
Please login to merge, or discard this patch.
engine/lib/deprecated-2.3.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  *
41 41
  * @param string $input_name The name of the file input field on the submission form
42 42
  *
43
- * @return mixed|false The contents of the file, or false on failure.
43
+ * @return false|string The contents of the file, or false on failure.
44 44
  * @deprecated 2.3
45 45
  */
46 46
 function get_uploaded_file($input_name) {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
  *                           dimensions on all size; the image will be cropped.
95 95
  * @param bool   $upscale    Resize images smaller than $maxwidth x $maxheight?
96 96
  *
97
- * @return false|mixed The contents of the resized image, or false on failure
97
+ * @return false|string The contents of the resized image, or false on failure
98 98
  * @deprecated 2.3
99 99
  */
100 100
 function get_resized_image_from_uploaded_file($input_name, $maxwidth, $maxheight,
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
  * @param int    $y2         y coordinate for bottom, right corner
138 138
  * @param bool   $upscale    Resize images smaller than $maxwidth x $maxheight?
139 139
  *
140
- * @return false|mixed The contents of the resized image, or false on failure
140
+ * @return false|string The contents of the resized image, or false on failure
141 141
  * @deprecated 2.3
142 142
  */
143 143
 function get_resized_image_from_existing_file($input_name, $maxwidth, $maxheight,
Please login to merge, or discard this patch.