summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-02-17 01:37:36 (GMT)
committerNathaniel Catchpole2016-02-17 01:37:36 (GMT)
commite62f113026be13c9731c5f2154a78952dfaa8e9f (patch)
tree6e7c4b9bcc9c0d2e32b13460247e32882c4185b8
parent30c5c2da00a6f228bb1df564f66da7006dde65f7 (diff)
Issue #1811888 by bleen, Mile23, a_thakur, Nitesh Sethia, naveenvalecha: Add missing type hinting to Tracker module docblocks
-rw-r--r--core/modules/tracker/src/Tests/TrackerTest.php6
-rw-r--r--core/modules/tracker/tracker.module12
2 files changed, 9 insertions, 9 deletions
diff --git a/core/modules/tracker/src/Tests/TrackerTest.php b/core/modules/tracker/src/Tests/TrackerTest.php
index 425c4a1..e229427 100644
--- a/core/modules/tracker/src/Tests/TrackerTest.php
+++ b/core/modules/tracker/src/Tests/TrackerTest.php
@@ -432,12 +432,12 @@ class TrackerTest extends WebTestBase {
* indicators, as well as the "x new" replies link to the tracker.
* We do this in JavaScript to prevent breaking the render cache.
*
- * @param $node_id
+ * @param int $node_id
* A node ID, that must exist as a data-history-node-id attribute
- * @param $node_timestamp
+ * @param int $node_timestamp
* A node timestamp, that must exist as a data-history-node-timestamp
* attribute.
- * @param $node_last_comment_timestamp
+ * @param int $node_last_comment_timestamp
* A node's last comment timestamp, that must exist as a
* data-history-node-last-comment-timestamp attribute.
* @param bool $library_is_present
diff --git a/core/modules/tracker/tracker.module b/core/modules/tracker/tracker.module
index eeaa422..5f20780 100644
--- a/core/modules/tracker/tracker.module
+++ b/core/modules/tracker/tracker.module
@@ -232,11 +232,11 @@ function tracker_comment_delete(CommentInterface $comment) {
/**
* Updates indexing tables when a node is added, updated, or commented on.
*
- * @param $nid
+ * @param int $nid
* A node ID.
- * @param $uid
+ * @param int $uid
* The node or comment author.
- * @param $changed
+ * @param int $changed
* The node updated timestamp or comment timestamp.
*/
function _tracker_add($nid, $uid, $changed) {
@@ -303,11 +303,11 @@ function _tracker_calculate_changed($node) {
/**
* Cleans up indexed data when nodes or comments are removed.
*
- * @param $nid
+ * @param int $nid
* The node ID.
- * @param $uid
+ * @param int $uid
* The author of the node or comment.
- * @param $changed
+ * @param int $changed
* The last changed timestamp of the node.
*/
function _tracker_remove($nid, $uid = NULL, $changed = NULL) {