Passed
Push — master ( 34c669...9a4c09 )
by Christian
13:27 queued 13s
created

src/Administration/Resources/app/administration/src/module/sw-extension/component/sw-ratings/sw-extension-rating-modal/index.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 15
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 1
1
import template from './sw-extension-rating-modal.html.twig';
2
import './sw-extension-rating-modal.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-extension-rating-modal', {
7
    template,
8
    extendsFrom: 'sw-review-creation',
9
10
    methods: {
11
        emitClose() {
12
            this.$emit('modal-close');
13
        }
14
    }
15
});
16