Passed
Push — master ( 4c7da5...a55b86 )
by Ilia
09:52
created
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/tokens.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @param string $username The username
10 10
  * @param int    $expire   Minutes until token expires (default is 60 minutes)
11 11
  *
12
- * @return bool
12
+ * @return false|string
13 13
  */
14 14
 function create_user_token($username, $expire = 60) {
15 15
 	global $CONFIG;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
  * @param string $token     The Token.
71 71
  * @param int    $site_guid The ID of the site (default is current site)
72 72
  *
73
- * @return mixed The user id attached to the token if not expired or false.
73
+ * @return integer The user id attached to the token if not expired or false.
74 74
  */
75 75
 function validate_user_token($token, $site_guid) {
76 76
 	global $CONFIG;
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.
mod/wet4/lib/user_settings.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
  * Set a user's password
12 12
  * 
13
- * @return bool
13
+ * @return boolean|null
14 14
  * @since 1.8.0
15 15
  * @access private
16 16
  */
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 /**
78 78
  * Set a user's display name
79 79
  * 
80
- * @return bool
80
+ * @return null|boolean
81 81
  * @since 1.8.0
82 82
  * @access private
83 83
  */
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 /**
119 119
  * Set a user's language
120 120
  * 
121
- * @return bool
121
+ * @return null|boolean
122 122
  * @since 1.8.0
123 123
  * @access private
124 124
  */
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 /**
195 195
  * Set a user's email address
196 196
  *
197
- * @return bool
197
+ * @return null|boolean
198 198
  * @since 1.8.0
199 199
  * @access private
200 200
  */
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 /**
258 258
  * Set a user's default access level
259 259
  *
260
- * @return bool
260
+ * @return null|boolean
261 261
  * @since 1.8.0
262 262
  * @access private
263 263
  */
Please login to merge, or discard this patch.
mod/widget_manager/classes/MultiDashboard.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	/**
46 46
 	 * Returns url to the dashboard
47 47
 	 *
48
-	 * @return string|boolean
48
+	 * @return string|false
49 49
 	 */
50 50
 	function getURL() {
51 51
 		$result = false;
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 	/**
206 206
 	 * Returns the internal url
207 207
 	 *
208
-	 * @return boolean|string
208
+	 * @return string|false
209 209
 	 */
210 210
 	function getInternalUrl() {
211 211
 		$result = false;
Please login to merge, or discard this patch.
mod/widget_manager/lib/hooks.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
  * @param string $return_value current return value
158 158
  * @param array  $params       hook parameters
159 159
  *
160
- * @return array
160
+ * @return string
161 161
  */
162 162
 function widget_manager_register_widget_menu($hook_name, $entity_type, $return_value, $params) {
163 163
 	$widget = $params['entity'];
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
  * @param string $return_value current return value
249 249
  * @param array  $params       hook parameters
250 250
  *
251
- * @return array
251
+ * @return string
252 252
  */
253 253
 function widget_manager_register_extras_menu($hook_name, $entity_type, $return_value, $params) {
254 254
 	if (!elgg_is_logged_in()) {
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
  * @param string $return_value current return value
340 340
  * @param array  $params       hook parameters
341 341
  *
342
- * @return boolean
342
+ * @return boolean|string
343 343
  */
344 344
 function widget_manager_widget_layout_permissions_check($hook_name, $entity_type, $return_value, $params) {
345 345
 	$page_owner = elgg_extract("page_owner", $params);
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
  * @param string $return_value current return value
578 578
  * @param array  $params       hook parameters
579 579
  *
580
- * @return boolean
580
+ * @return string|boolean
581 581
  */
582 582
 function widget_manager_permissions_check_site_hook_handler($hook_name, $entity_type, $return_value, $params) {
583 583
 	$user = elgg_extract("user", $params);
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
  * @param string $return_value current return value
603 603
  * @param array  $params       hook parameters
604 604
  *
605
- * @return boolean
605
+ * @return string|boolean
606 606
  */
607 607
 function widget_manager_permissions_check_object_hook_handler($hook_name, $entity_type, $return_value, $params) {
608 608
 	$user = elgg_extract("user", $params);
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
  * @param bool   $return_value current return value
726 726
  * @param array  $params       hook parameters
727 727
  *
728
- * @return bool
728
+ * @return boolean|null
729 729
  */
730 730
 function widget_manager_all_widget_settings_hook_handler($hook_name, $entity_type, $return_value, $params) {
731 731
 	if (empty($params) || !is_array($params)) {
Please login to merge, or discard this patch.
vendor/phpdocumentor/reflection-docblock/src/DocBlock/TagFactory.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,6 @@
 block discarded – undo
51 51
      * interface is passed as alias then every time that interface is requested the provided service will be returned.
52 52
      *
53 53
      * @param object $service
54
-     * @param string $alias
55 54
      *
56 55
      * @return void
57 56
      */
Please login to merge, or discard this patch.
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
     /** @var string The version vector. */
44 44
     private $version = '';
45 45
 
46
+    /**
47
+     * @param string $version
48
+     */
46 49
     public function __construct($version = null, Description $description = null)
47 50
     {
48 51
         Assert::nullOrStringNotEmpty($version);
Please login to merge, or discard this patch.
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection\DocBlock\Tags;
14 14
 
15
-use phpDocumentor\Reflection\DocBlock\Tag;
16
-
17 15
 /**
18 16
  * Reflection class for a {@}example tag in a Docblock.
19 17
  */
Please login to merge, or discard this patch.