symphonycms/symphony-2

View on GitHub
symphony/assets/js/src/symphony.timeago.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function symphonyTimeAgo has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.symphonyTimeAgo = function(options) {
        var objects = this,
            settings = {
                items: 'time',
                timestamp: 'utc',
Severity: Major
Found in symphony/assets/js/src/symphony.timeago.js - About 2 hrs to fix

    Avoid too many return statements within this function.
    Open

                    return Symphony.Language.get('about {$hours} hours ago', {
                        'hours': Math.floor(time / 60)
                    });
    Severity: Major
    Found in symphony/assets/js/src/symphony.timeago.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status