Passed
Push — master ( 7e874c...f67e1e )
by Christian
14:45 queued 02:54
created

src/Administration/Resources/app/administration/src/module/sw-promotion-v2/init/services.init.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 8
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 8
rs 10
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 2
1
import PromotionCodeApiService from '../service/promotion-code.api.service';
2
3
Shopware.Service().register('promotionCodeApiService', () => {
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...
4
    return new PromotionCodeApiService(
5
        Shopware.Application.getContainer('init').httpClient,
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...
6
        Shopware.Service('loginService')
7
    );
8
});
9