open-orchestra/open-orchestra-cms-bundle

View on GitHub
BackofficeBundle/Resources/public/ecmascript/OpenOrchestra/Application/Router/Content/ContentRouter.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function listContent has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    listContent(contentTypeId, language, page) {
        if (null === page) {
            page = 1
        }
        this._displayLoader(Application.getRegion('content'));

Function _errorCallbackEdit has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _errorCallbackEdit(contentTypeId, contentId, language) {
        let noCallback = () => {
            let url = Backbone.history.generateUrl('listContent',{
                contentTypeId: contentTypeId,
                language: language

Function manageVersionsContent has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    manageVersionsContent(contentTypeId, language, contentId, page) {
        this._displayLoader(Application.getRegion('content'));

        if (null === page) {
            page = 1

There are no issues that match your filters.

Category
Status