Resources/views/backend/view_snapshots/controller/main.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 23
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A Ext.define(ꞌShopware.apps.ViewSnapshots.controller.Mainꞌ).init 0 15 1
1
Ext.define('Shopware.apps.ViewSnapshots.controller.Main', {
0 ignored issues
show
Bug introduced by
The variable Ext seems to be never declared. If this is a global, consider adding a /** global: Ext */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
2
3
    extend: 'Ext.app.Controller',
4
5
    mainWindow: null,
6
7
    init: function() {
8
9
        var me = this;
10
        me.getStore('Snapshot').load({
11
            scope: this,
12
            callback: function() {
13
                me.mainWindow = me.getView('Window').create({
14
                    store: me.getStore('Snapshot')
15
                });
16
            }
17
        });
18
19
        me.callParent(arguments);
20
21
    }
22
   
23
});
24
 
25