Passed
Push — master ( c46ac8...07657d )
by Christian
11:51 queued 13s
created

src/Administration/Resources/app/administration/src/module/sw-category/view/sw-landing-page-detail-cms/index.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 14
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
mnd 0
bc 0
fnc 1
dl 0
loc 14
bpm 0
cpm 1
noi 2
c 0
b 0
f 0
rs 10
1
import template from './sw-landing-page-detail-cms.html.twig';
2
import './sw-landing-page-detail-cms.scss';
3
4
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...
5
6
Component.register('sw-landing-page-detail-cms', {
7
    template,
8
9
    computed: {
10
        cmsPage() {
11
            return Shopware.State.get('cmsPageState').currentPage;
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...
12
        }
13
    }
14
});
15