diff --git a/core/modules/tracker/tracker.pages.inc b/core/modules/tracker/tracker.pages.inc index 1ef2399..93e33ea 100644 --- a/core/modules/tracker/tracker.pages.inc +++ b/core/modules/tracker/tracker.pages.inc @@ -109,17 +109,17 @@ function tracker_page($account = NULL) { ), ); if ($comment_module) { - $row['comments'] = array( - 'class' => array('comments'), + $row['comments'] = [ + 'class' => ['comments'], 'data' => $comments, 'data-history-node-last-comment-timestamp' => $node->last_comment_timestamp, - ); + ]; } - $row['last updated'] = array( - 'data' => t('@time ago', array( + $row['last updated'] = [ + 'data' => t('@time ago', [ '@time' => \Drupal::service('date.formatter')->formatTimeDiffSince($node->last_activity), - )) - ); + ]) + ]; $rows[] = $row; // Add node and node owner to cache tags. @@ -135,7 +135,7 @@ function tracker_page($account = NULL) { $page['tracker'] = array( '#rows' => $rows, - '#header' => $comment_module ? array(t('Type'), t('Title'), t('Author'), t('Comments'), t('Last updated')) : array(t('Type'), t('Title'), t('Author'), t('Last updated')), + '#header' => $comment_module ? [t('Type'), t('Title'), t('Author'), t('Comments'), t('Last updated')] : [t('Type'), t('Title'), t('Author'), t('Last updated')], '#type' => 'table', '#empty' => t('No content available.'), );