Resources/views/backend/view_snapshots/app.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 21
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A Ext.define(ꞌShopware.apps.ViewSnapshotsꞌ).launch 0 6 1
1
Ext.define('Shopware.apps.ViewSnapshots', {
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
    extend:'Enlight.app.SubApplication',
3
    name:'Shopware.apps.ViewSnapshots',
4
    bulkLoad: true,
5
    loadPath: '{url action=load}',
6
    controllers: ['Main'],
7
    models: [ 'Snapshot' ],
8
    views: [ 'Window', 'Grid' ],
9
    stores: [ 'Snapshot' ],
10
11
    /** Main Function
12
     * @private
13
     * @return [object] mainWindow - the main application window based on Enlight.app.Window
14
     */
15
    launch: function() {
16
        var me = this;
17
        var mainController = me.getController('Main');
18
19
        return mainController.mainWindow;
20
    }
21
});