Making WordPress.org


Ignore:
Timestamp:
12/17/2018 07:35:01 AM (7 years ago)
Author:
vedjain
Message:

WCPT Application Tracker: Coding standard fixes + Removed unused props

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/javascript/tracker/source/tracker.jsx

    r7980 r7982  
    1919const timeSince = ( seconds ) => {
    2020
    21     let interval = Math.floor(seconds / 31536000);
     21    let interval = Math.floor ( seconds / 31536000 );
    2222
    23     if (interval >= 1) {
     23    if ( interval >= 1) {
    2424        return interval + " years";
    2525    }
    26     interval = Math.floor(seconds / 2592000);
    27     if (interval >= 1) {
     26    interval = Math.floor ( seconds / 2592000);
     27    if ( interval >= 1 ) {
    2828        return interval + " months";
    2929    }
    30     interval = Math.floor(seconds / 86400);
    31     if (interval >= 1) {
     30    interval = Math.floor ( seconds / 86400);
     31    if ( interval >= 1 ) {
    3232        return interval + " days";
    3333    }
    34     interval = Math.floor(seconds / 3600);
    35     if (interval >= 1) {
     34    interval = Math.floor ( seconds / 3600);
     35    if ( interval >= 1 ) {
    3636        return interval + " hours";
    3737    }
    38     interval = Math.floor(seconds / 60);
    39     if (interval >= 1) {
     38    interval = Math.floor ( seconds / 60);
     39    if ( interval >= 1 ) {
    4040        return interval + " minutes";
    4141    }
    42     return Math.floor(seconds) + " seconds";
     42    return Math.floor ( seconds ) + " seconds";
    4343};
    4444
Note: See TracChangeset for help on using the changeset viewer.