Completed
Push — master ( fab0a4...8e249d )
by Jeroen
41:43 queued 16:43
created
engine/classes/ElggAnnotation.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Elgg\Database\EntityTable\UserFetchFailureException;
4
-
5 3
 /**
6 4
  * Elgg Annotations
7 5
  *
Please login to merge, or discard this patch.
engine/classes/ElggMenuBuilder.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
 	/**
28 28
 	 * Get a prepared menu array
29 29
 	 *
30
-	 * @param mixed $sort_by Method to sort the menu by. @see \ElggMenuBuilder::sort()
31
-	 * @return array
30
+	 * @param callable $sort_by Method to sort the menu by. @see \ElggMenuBuilder::sort()
31
+	 * @return ElggMenuItem[]
32 32
 	 */
33 33
 	public function getMenu($sort_by = 'text') {
34 34
 
Please login to merge, or discard this patch.
engine/classes/ElggPluginPackage.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 	 * Checks if $plugins meets the requirement by $dep.
474 474
 	 *
475 475
 	 * @param array $dep     An Elgg manifest.xml deps array
476
-	 * @param array $plugins A list of plugins as returned by elgg_get_plugins();
476
+	 * @param ElggPlugin[] $plugins A list of plugins as returned by elgg_get_plugins();
477 477
 	 * @param bool  $inverse Inverse the results to use as a conflicts.
478 478
 	 * @return bool
479 479
 	 */
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 	 * Checks if $plugins meets the requirement by $dep.
492 492
 	 *
493 493
 	 * @param array $dep     An Elgg manifest.xml deps array
494
-	 * @param array $plugins A list of plugins as returned by elgg_get_plugins();
494
+	 * @param ElggPlugin[] $plugins A list of plugins as returned by elgg_get_plugins();
495 495
 	 * @param bool  $inverse Inverse the results to use as a conflicts.
496 496
 	 * @return bool
497 497
 	 */
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
 	 * Checks if $elgg_version meets the requirement by $dep.
554 554
 	 *
555 555
 	 * @param array $dep          An Elgg manifest.xml deps array
556
-	 * @param array $elgg_version An Elgg version (either YYYYMMDDXX or X.Y.Z)
556
+	 * @param string|false $elgg_version An Elgg version (either YYYYMMDDXX or X.Y.Z)
557 557
 	 * @param bool  $inverse      Inverse the result to use as a conflicts.
558 558
 	 * @return bool
559 559
 	 */
Please login to merge, or discard this patch.
mod/discussions/start.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
  * @param string $type
239 239
  * @param string $return
240 240
  * @param array  $params
241
- * @return bool
241
+ * @return false|null
242 242
  */
243 243
 function discussion_comment_override($hook, $type, $return, $params) {
244 244
 	if (elgg_instanceof($params['entity'], 'object', 'discussion')) {
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
  * @param string $type   'object'
448 448
  * @param array  $return Allowed or not
449 449
  * @param array  $params Hook params
450
- * @return bool
450
+ * @return null|false
451 451
  */
452 452
 function discussion_reply_container_logic_override($hook, $type, $return, $params) {
453 453
 
Please login to merge, or discard this patch.
mod/likes/start.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
  * @param array  $return Current value
66 66
  * @param array  $params Hook parameters
67 67
  *
68
- * @return bool
68
+ * @return null|boolean
69 69
  */
70 70
 function likes_permissions_check_annotate($hook, $type, $return, $params) {
71 71
 	if (elgg_extract('annotation_name', $params) !== 'likes') {
Please login to merge, or discard this patch.
engine/classes/Elgg/Database/RelationshipsTable.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 *
72 72
 	 * @param int $id The relationship ID
73 73
 	 *
74
-	 * @return \stdClass|false False if no row found
74
+	 * @return \stdClass False if no row found
75 75
 	 * @access private
76 76
 	 */
77 77
 	public function getRow($id) {
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	 *                                     subject of the relationships.
216 216
 	 * @param string $type                 The type of entity related to $guid (defaults to all)
217 217
 	 *
218
-	 * @return true
218
+	 * @return boolean
219 219
 	 */
220 220
 	public function removeAll($guid, $relationship = "", $inverse_relationship = false, $type = '') {
221 221
 		$guid = (int) $guid;
Please login to merge, or discard this patch.
engine/classes/ElggDiskFilestore.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
 	 * Write data to a file.
106 106
 	 *
107 107
 	 * @param resource $f    File pointer resource
108
-	 * @param mixed    $data The data to write.
108
+	 * @param string    $data The data to write.
109 109
 	 *
110
-	 * @return bool
110
+	 * @return integer
111 111
 	 */
112 112
 	public function write($f, $data) {
113 113
 		return fwrite($f, $data);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	 * @param int      $length The number of bytes to read
121 121
 	 * @param int      $offset The number of bytes to start after
122 122
 	 *
123
-	 * @return mixed Contents of file or false on fail.
123
+	 * @return string Contents of file or false on fail.
124 124
 	 */
125 125
 	public function read($f, $length, $offset = 0) {
126 126
 		if ($offset) {
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 	 * @param string $dirroot The full path of the directory to create
286 286
 	 *
287 287
 	 * @throws IOException
288
-	 * @return true
288
+	 * @return boolean
289 289
 	 */
290 290
 	protected function makeDirectoryRoot($dirroot) {
291 291
 		if (!file_exists($dirroot)) {
Please login to merge, or discard this patch.
engine/classes/ElggFile.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 * Set the mime type of the file.
109 109
 	 *
110 110
 	 * @param string $mimetype The mimetype
111
-	 * @return bool
111
+	 * @return string
112 112
 	 */
113 113
 	public function setMimeType($mimetype) {
114 114
 		return $this->mimetype = $mimetype;
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
 	 * @note This method can be called both dynamically and statically
121 121
 	 *
122 122
 	 * @param mixed $file    The full path of the file to check. For uploaded files, use tmp_name.
123
-	 * @param mixed $default A default. Useful to pass what the browser thinks it is.
123
+	 * @param string|null $default A default. Useful to pass what the browser thinks it is.
124 124
 	 * @since 1.7.12
125 125
 	 *
126
-	 * @return mixed Detected type on success, false on failure.
126
+	 * @return string Detected type on success, false on failure.
127 127
 	 * @todo Move this out into a utility class
128 128
 	 */
129 129
 	public function detectMimeType($file = null, $default = null) {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 	 *
173 173
 	 * @param string $description The description.
174 174
 	 *
175
-	 * @return bool
175
+	 * @return boolean|null
176 176
 	 */
177 177
 	public function setDescription($description) {
178 178
 		$this->description = $description;
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	 *
217 217
 	 * @param string $data The data
218 218
 	 *
219
-	 * @return bool
219
+	 * @return integer
220 220
 	 */
221 221
 	public function write($data) {
222 222
 		return $this->getFilestore()->write($this->handle, $data);
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	 * @param int $length Amount to read.
229 229
 	 * @param int $offset The offset to start from.
230 230
 	 *
231
-	 * @return mixed Data or false
231
+	 * @return string Data or false
232 232
 	 */
233 233
 	public function read($length, $offset = 0) {
234 234
 		return $this->getFilestore()->read($this->handle, $length, $offset);
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 	/**
238 238
 	 * Gets the full contents of this file.
239 239
 	 *
240
-	 * @return mixed The file contents.
240
+	 * @return string The file contents.
241 241
 	 */
242 242
 	public function grabFile() {
243 243
 		return $this->getFilestore()->grabFile($this);
Please login to merge, or discard this patch.
engine/classes/Elgg/Database.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	 * @param callable $callback A callback function to apply to the row
216 216
 	 * @param array    $params   Query params. E.g. [1, 'steve'] or [':id' => 1, ':name' => 'steve']
217 217
 	 *
218
-	 * @return mixed A single database result object or the result of the callback function.
218
+	 * @return \stdClass A single database result object or the result of the callback function.
219 219
 	 * @throws \DatabaseException
220 220
 	 */
221 221
 	public function getDataRow($query, $callback = null, array $params = []) {
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 	 * @param string $query  The query to execute.
231 231
 	 * @param array  $params Query params. E.g. [1, 'steve'] or [':id' => 1, ':name' => 'steve']
232 232
 	 *
233
-	 * @return int|false The database id of the inserted row if a AUTO_INCREMENT field is
233
+	 * @return integer The database id of the inserted row if a AUTO_INCREMENT field is
234 234
 	 *                   defined, 0 if not, and false on failure.
235 235
 	 * @throws \DatabaseException
236 236
 	 */
@@ -721,7 +721,7 @@  discard block
 block discarded – undo
721 721
 	 * Handle magic property reads
722 722
 	 *
723 723
 	 * @param string $name Property name
724
-	 * @return mixed
724
+	 * @return string
725 725
 	 */
726 726
 	public function __get($name) {
727 727
 		if ($name === 'prefix') {
Please login to merge, or discard this patch.