Passed
Push — master ( 80edaa...50f297 )
by Christian
20:30 queued 08:22
created

src/Administration/Resources/app/administration/src/module/sw-cms/elements/product-name/component/index.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 9
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 1
1
const { Component } = Shopware;
0 ignored issues
show
Bug introduced by
The variable Shopware seems to be never declared. If this is a global, consider adding a /** global: Shopware */ 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
Component.extend('sw-cms-el-product-name', 'sw-cms-el-text', {
4
    methods: {
5
        createdComponent() {
6
            this.initElementConfig('product-name');
7
        }
8
    }
9
});
10