Completed
Push — master ( a31174...af3b49 )
by Antonio
10s
created

src/Resources/public/js/Json/Renderer/Default.js   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 41
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
eloc 14
dl 0
loc 41
rs 10
c 2
b 0
f 0
cc 0
nc 1
mnd 0
bc 4
fnc 4
bpm 1
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A Default.js ➔ define 0 35 1
1
define(
2
    [
3
        'flagbit/JsonGenerator/Observer',
4
        'oro/translator',
5
    ],
6
    function(JsonGeneratorObserver, __) {
7
8
        /**
9
         * @class
10
         */
11
        var JsonGeneratorRendererDefault = function($editable, $container) {
12
13
            /**
14
             * @public
15
             * @type {JsonGeneratorObserver}
16
             */
17
            this.observer = new JsonGeneratorObserver();
18
19
            /**
20
             * @public
21
             * @param {Object} $data
22
             */
23
            this.render = function($data) {
0 ignored issues
show
Unused Code introduced by
The parameter $data is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
24
                var $text = document.createElement('span');
25
                $text.innerText = __('flagbit_attribute_table_no_configuration_text');
26
                $container.appendChild($text);
27
            };
28
29
            /**
30
             * @public
31
             * @returns {Object}
32
             */
33
            this.read = function() {
34
                return {};
35
            };
36
37
        };
38
39
        return JsonGeneratorRendererDefault;
40
    }
41
);
42